From 058c35730b3b8b0d3572c6e96093f760c402b727 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Mon, 15 Aug 2016 11:30:12 +0800 Subject: Update to hide scrollbar (but scrollable) in the slide mode --- public/js/slide.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'public/js') 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'); -- cgit v1.2.3