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