setTimeout(function() { $("#message").addClass("fade"); }, 1);
}
-function say_exposure() {
- var e = (exposure / 4) - 3.5;
- say((e >= 0 ? "+" : "") + e);
-}
-
function toggle_zoom() {
if (zoom) {
zoom = "";
say("Undeleted");
}
+function change_exposure(amount) {
+ exposure += amount;
+ setpic();
+ var display_exposure = (exposure / 4) - 3.5;
+ say((display_exposure >= 0 ? "+" : "") + display_exposure);
+}
+
$(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(); });
-Mousetrap.bind('d', function() { exposure --; say_exposure(); setpic(); });
+Mousetrap.bind('b', function() { change_exposure(1); });
+Mousetrap.bind('d', function() { change_exposure(-1); });
Mousetrap.bind('x', mark_deleted);
Mousetrap.bind('X', mark_not_deleted);