From: Scott Worley Date: Thu, 27 Feb 2014 01:54:01 +0000 (-0800) Subject: setpic() function X-Git-Url: http://git.scottworley.com/picsort/commitdiff_plain/97c26a9cc9e8bda3e572eebeadf6a3beb8788e4b?ds=sidebyside;hp=73f54bcce477142814590333a06fffb010fcb0f6 setpic() function --- diff --git a/picsorter.js b/picsorter.js index 9923d38..8c4f167 100644 --- a/picsorter.js +++ b/picsorter.js @@ -1,5 +1,9 @@ var exposure = 20; +function setpic(pic) { + $("#pic")[0].src = exposure + "/" + pic; +} + $( document ).ready(function() { - $("#pic")[0].src = exposure + "/" + files[0]; + setpic(files[0]); });