]> git.scottworley.com Git - picsort/blame - picsorter.js
'n' and 'p' for next and previous input image
[picsort] / picsorter.js
CommitLineData
73f54bcc 1var exposure = 20;
ed9d7c54 2var input_index = 0;
73f54bcc 3
ed9d7c54
SW
4function setpic() {
5 $("#pic").attr("src", exposure + "/" + files[input_index]);
97c26a9c
SW
6}
7
5d9946cb 8$(function() {
ed9d7c54 9 setpic();
e18c13a6 10});
ecb5b4ef
SW
11
12Mousetrap.bind('z', function() { $("#pic").toggleClass("fit_view"); });
51b05914
SW
13Mousetrap.bind('n', function() { input_index ++; setpic(); });
14Mousetrap.bind('p', function() { input_index --; setpic(); });