var exposure = 20;
var zoom = "sm/";
var input_index = -1;
-move_to_nondeleted(1);
function setpic() {
input_index += direction;
} while (picinfo[files[input_index]].deleted);
say(input_index);
+ setpic();
}
function mark_deleted() {
}
$(function() {
- setpic();
+ move_to_nondeleted(1);
});
Mousetrap.bind('z', toggle_zoom);
Mousetrap.bind('Z', function() { $("#pic").toggleClass("fit_view"); });
-Mousetrap.bind('n', function() { move_to_nondeleted(1); setpic(); });
-Mousetrap.bind('p', function() { move_to_nondeleted(-1); setpic(); });
+Mousetrap.bind('n', function() { move_to_nondeleted(1); });
+Mousetrap.bind('p', function() { move_to_nondeleted(-1); });
Mousetrap.bind('N', function() { input_index ++; say(input_index); setpic(); });
Mousetrap.bind('P', function() { input_index --; say(input_index); setpic(); });
Mousetrap.bind('b', function() { exposure ++; say_exposure(); setpic(); });