From: Scott Worley Date: Fri, 28 Feb 2014 03:21:31 +0000 (-0800) Subject: Press 'z' to toggle zoom X-Git-Url: http://git.scottworley.com/picsort/commitdiff_plain/ecb5b4ef4385a77d8ec7f436c6b8c2e106c21023?ds=sidebyside Press 'z' to toggle zoom --- 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"); });