display_filename = zoom + files[input_index];
}
var $pic = $("#pic");
+ $pic.on("load", function() {
+ $pic.removeClass("rot90 rot180 rot270");
+ if ("rotate" in picinfo[files[input_index]]) {
+ $pic.addClass("rot" + picinfo[files[input_index]].rotate);
+ }
+ });
$pic.attr("src", display_filename);
- $pic.removeClass("rot90 rot180 rot270");
- if ("rotate" in picinfo[files[input_index]]) {
- $pic.addClass("rot" + picinfo[files[input_index]].rotate);
- }
}
function say(message) {
Mousetrap.bind('X', mark_not_deleted);
Mousetrap.bind('r', rotate);
Mousetrap.bind('c', function() { $("#name").show().focus(); return false; });
+Mousetrap.bind('%', function() { say((100 * input_index / files.length).toFixed(2) + "%"); });