]> git.scottworley.com Git - picsort/commitdiff
'n' and 'p' for next and previous input image
authorScott Worley <scottworley@scottworley.com>
Fri, 28 Feb 2014 03:23:45 +0000 (19:23 -0800)
committerScott Worley <scottworley@scottworley.com>
Fri, 28 Feb 2014 03:23:45 +0000 (19:23 -0800)
picsorter.js

index 567c2477a6057e8c1bbe353cbb4e116fcb39588f..3fd9e2840f6d68d840ed002e274ee6f5567096e2 100644 (file)
@@ -10,3 +10,5 @@ $(function() {
 });
 
 Mousetrap.bind('z', function() { $("#pic").toggleClass("fit_view"); });
+Mousetrap.bind('n', function() { input_index ++; setpic(); });
+Mousetrap.bind('p', function() { input_index --; setpic(); });