X-Git-Url: http://git.scottworley.com/picsort/blobdiff_plain/97c26a9cc9e8bda3e572eebeadf6a3beb8788e4b..ed9d7c54c1259e961660336edac95a511fa0be8f:/picsorter.js diff --git a/picsorter.js b/picsorter.js index 8c4f167..c87882c 100644 --- a/picsorter.js +++ b/picsorter.js @@ -1,9 +1,10 @@ var exposure = 20; +var input_index = 0; -function setpic(pic) { - $("#pic")[0].src = exposure + "/" + pic; +function setpic() { + $("#pic").attr("src", exposure + "/" + files[input_index]); } -$( document ).ready(function() { - setpic(files[0]); +$(function() { + setpic(); });