]> git.scottworley.com Git - picsort/commitdiff
Press 'z' to toggle zoom
authorScott Worley <scottworley@scottworley.com>
Fri, 28 Feb 2014 03:21:31 +0000 (19:21 -0800)
committerScott Worley <scottworley@scottworley.com>
Fri, 28 Feb 2014 03:21:31 +0000 (19:21 -0800)
picsorter.css [new file with mode: 0644]
picsorter.html
picsorter.js

diff --git a/picsorter.css b/picsorter.css
new file mode 100644 (file)
index 0000000..d6cd666
--- /dev/null
@@ -0,0 +1,4 @@
+.fit_view {
+  max-width: 100%;
+  max-height: 100%;
+}
index 98943de246d1a802b0f68e11ec040d466a3acf33..a6bbaa9bc21065dce4290e10dc3032b42871233e 100644 (file)
@@ -1,6 +1,8 @@
 <html>
   <head>
 <html>
   <head>
+    <link rel="stylesheet" href="picsorter.css" type="text/css" />
     <script src="jquery-2.1.0.js"></script>
     <script src="jquery-2.1.0.js"></script>
+    <script src="mousetrap-1.4.6.js"></script>
     <script src="picstosort.js"></script>
     <script src="picsorter.js"></script>
   </head>
     <script src="picstosort.js"></script>
     <script src="picsorter.js"></script>
   </head>
index c87882c0fcec29b81a36eb521f0b024e7d1a9c2d..567c2477a6057e8c1bbe353cbb4e116fcb39588f 100644 (file)
@@ -8,3 +8,5 @@ function setpic() {
 $(function() {
   setpic();
 });
 $(function() {
   setpic();
 });
+
+Mousetrap.bind('z', function() { $("#pic").toggleClass("fit_view"); });