From ed9d7c54c1259e961660336edac95a511fa0be8f Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Thu, 27 Feb 2014 11:39:13 -0800 Subject: [PATCH] Keep an input_index --- picsorter.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/picsorter.js b/picsorter.js index c51b51e..c87882c 100644 --- a/picsorter.js +++ b/picsorter.js @@ -1,9 +1,10 @@ var exposure = 20; +var input_index = 0; -function setpic(pic) { - $("#pic").attr("src", exposure + "/" + pic); +function setpic() { + $("#pic").attr("src", exposure + "/" + files[input_index]); } $(function() { - setpic(files[0]); + setpic(); }); -- 2.44.1