aboutsummaryrefslogtreecommitdiff
path: root/plugin/zoom-js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2012-10-28 23:55:19 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2012-10-28 23:55:19 -0400
commite87d68923169cdff32c2ddf97981d2c7ac9efd2f (patch)
treed6834de349f03b0ac0123ff34ac0cfec20f45a13 /plugin/zoom-js
parentaf2a8b053d27ed5c97256d29ab4f06a6bcece6b7 (diff)
downloadperl-software-in-gnu-guix-e87d68923169cdff32c2ddf97981d2c7ac9efd2f.tar
perl-software-in-gnu-guix-e87d68923169cdff32c2ddf97981d2c7ac9efd2f.tar.gz
content now re-renders after alt+click zoom (closes #195)
Diffstat (limited to 'plugin/zoom-js')
-rw-r--r--plugin/zoom-js/zoom.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugin/zoom-js/zoom.js b/plugin/zoom-js/zoom.js
index 0ca3875..6b29f56 100644
--- a/plugin/zoom-js/zoom.js
+++ b/plugin/zoom-js/zoom.js
@@ -111,6 +111,13 @@ var zoom = (function(){
}
level = scale;
+
+ if( level !== 1 && document.documentElement.classList ) {
+ document.documentElement.classList.add( 'zoomed' );
+ }
+ else {
+ document.documentElement.classList.remove( 'zoomed' );
+ }
}
/**