From ecb5b4ef4385a77d8ec7f436c6b8c2e106c21023 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Thu, 27 Feb 2014 19:21:31 -0800 Subject: [PATCH] Press 'z' to toggle zoom --- picsorter.css | 4 ++++ picsorter.html | 2 ++ picsorter.js | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 picsorter.css diff --git a/picsorter.css b/picsorter.css new file mode 100644 index 0000000..d6cd666 --- /dev/null +++ b/picsorter.css @@ -0,0 +1,4 @@ +.fit_view { + max-width: 100%; + max-height: 100%; +} diff --git a/picsorter.html b/picsorter.html index 98943de..a6bbaa9 100644 --- a/picsorter.html +++ b/picsorter.html @@ -1,6 +1,8 @@ + + diff --git a/picsorter.js b/picsorter.js index c87882c..567c247 100644 --- a/picsorter.js +++ b/picsorter.js @@ -8,3 +8,5 @@ function setpic() { $(function() { setpic(); }); + +Mousetrap.bind('z', function() { $("#pic").toggleClass("fit_view"); }); -- 2.44.1