diff options
author | Wu Cheng-Han | 2016-08-15 11:30:12 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-08-15 11:30:12 +0800 |
commit | 058c35730b3b8b0d3572c6e96093f760c402b727 (patch) | |
tree | 43471e7ee449a7b304ffeb0de9f12cfc1aaad358 /public/js | |
parent | 29d198def9e4d0c930625d646567e84cc81e512c (diff) |
Update to hide scrollbar (but scrollable) in the slide mode
Diffstat (limited to '')
-rw-r--r-- | public/js/slide.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/public/js/slide.js b/public/js/slide.js index bdd8b3be..5b0f9bd0 100644 --- a/public/js/slide.js +++ b/public/js/slide.js @@ -110,3 +110,7 @@ Reveal.addEventListener('ready', function (event) { }, 0); }); Reveal.addEventListener('slidechanged', renderSlide); + +var isMacLike = navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i) ? true : false; + +if (!isMacLike) $('.container').addClass('hidescrollbar'); |