]> git.scottworley.com Git - picsort/commitdiff
setpic() function
authorScott Worley <scottworley@scottworley.com>
Thu, 27 Feb 2014 01:54:01 +0000 (17:54 -0800)
committerScott Worley <scottworley@scottworley.com>
Thu, 27 Feb 2014 01:54:01 +0000 (17:54 -0800)
picsorter.js

index 9923d38b413f823158c058ec29b7adb5c2c281e6..8c4f1670dd76f3c5db63c3f2ea496a502f295827 100644 (file)
@@ -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]);
 });