diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-10-28 23:55:19 -0400 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-10-28 23:55:19 -0400 |
commit | e87d68923169cdff32c2ddf97981d2c7ac9efd2f (patch) | |
tree | d6834de349f03b0ac0123ff34ac0cfec20f45a13 /plugin/zoom-js | |
parent | af2a8b053d27ed5c97256d29ab4f06a6bcece6b7 (diff) | |
download | fosdem-2018-presentation-e87d68923169cdff32c2ddf97981d2c7ac9efd2f.tar fosdem-2018-presentation-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.js | 7 |
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' ); + } } /** |