]> git.scottworley.com Git - picsort/blobdiff - picsorter.js
'n' and 'p' for next and previous input image
[picsort] / picsorter.js
index c87882c0fcec29b81a36eb521f0b024e7d1a9c2d..3fd9e2840f6d68d840ed002e274ee6f5567096e2 100644 (file)
@@ -8,3 +8,7 @@ function setpic() {
 $(function() {
   setpic();
 });
+
+Mousetrap.bind('z', function() { $("#pic").toggleClass("fit_view"); });
+Mousetrap.bind('n', function() { input_index ++; setpic(); });
+Mousetrap.bind('p', function() { input_index --; setpic(); });