]> git.scottworley.com Git - picsort/commitdiff
Don't start on a deleted picture.
authorScott Worley <scottworley@scottworley.com>
Fri, 28 Feb 2014 07:22:20 +0000 (23:22 -0800)
committerScott Worley <scottworley@scottworley.com>
Fri, 28 Feb 2014 07:22:20 +0000 (23:22 -0800)
picsorter.js

index e44c22cad9abb5c79b5bdb1a23f9135b14a93fef..abb590dbfd5b50a3a938a7bbf5ba6b0d77fcaf05 100644 (file)
@@ -1,12 +1,14 @@
-var exposure = 20;
-var input_index = 0;
-var zoom = "sm/";
-
 if (!("picsorter_deleted" in localStorage)) {
   localStorage.picsorter_deleted = JSON.stringify({});
 }
 var picsorter_deleted = JSON.parse(localStorage.picsorter_deleted);
 
+var exposure = 20;
+var zoom = "sm/";
+var input_index = -1;
+move_to_nondeleted(1);
+
+
 function setpic() {
   $("#pic").attr("src", zoom + exposure + "/" + files[input_index]);
 }