]>
Commit | Line | Data |
---|---|---|
1 | var exposure = 20; | |
2 | var input_index = 0; | |
3 | ||
4 | function setpic() { | |
5 | $("#pic").attr("src", exposure + "/" + files[input_index]); | |
6 | } | |
7 | ||
8 | $(function() { | |
9 | setpic(); | |
10 | }); | |
11 | ||
12 | Mousetrap.bind('z', function() { $("#pic").toggleClass("fit_view"); }); | |
13 | Mousetrap.bind('n', function() { input_index ++; setpic(); }); | |
14 | Mousetrap.bind('p', function() { input_index --; setpic(); }); |