From e949568bf54cc1377f87798c0838e00c82db5b64 Mon Sep 17 00:00:00 2001 From: David Russell Date: Wed, 17 Jan 2018 14:40:10 +0700 Subject: [PATCH] Updated PITCHME.yaml published policy, menus now closed by default. --- .../views/frags/SlideshowReveal.scala.html | 2 -- .../reveal.js/3.5.0/plugin/menu/menu-mod.js | 17 ----------------- .../reveal.js/3.6.0/plugin/menu/menu-mod.js | 17 ----------------- 3 files changed, 36 deletions(-) diff --git a/app/com/gitpitch/views/frags/SlideshowReveal.scala.html b/app/com/gitpitch/views/frags/SlideshowReveal.scala.html index d39bec5..90d6b3d 100644 --- a/app/com/gitpitch/views/frags/SlideshowReveal.scala.html +++ b/app/com/gitpitch/views/frags/SlideshowReveal.scala.html @@ -176,11 +176,9 @@ }; function manageMenuPolicy() { - @if(ssm.published()) { if(RevealMenu && RevealMenu.isOpen()) { RevealMenu.toggle(); } - } } function upgradeAnchors() { diff --git a/public/libs/reveal.js/3.5.0/plugin/menu/menu-mod.js b/public/libs/reveal.js/3.5.0/plugin/menu/menu-mod.js index 28b6cbe..1c355a4 100644 --- a/public/libs/reveal.js/3.5.0/plugin/menu/menu-mod.js +++ b/public/libs/reveal.js/3.5.0/plugin/menu/menu-mod.js @@ -745,23 +745,6 @@ var RevealMenu = window.RevealMenu || (function(){ }); } - /* - * The menu should be opened by default only when the - * following set conditions are met: - * - * 1. Presentation not open in speaker notes window. - * 2. Presentation not embedded within an iFrame. - * 1. Presentation displayed within window.width > 1023px. - * - * Note, "receiver" on window.location indicates the - * presentation is open in the speaker-notes window. - */ - if(!window.location.search.match(/receiver/gi) && - (window.top === window.self) && - (window.innerWidth > 1023)) { - openMenu(); - } - initialised = true; } diff --git a/public/libs/reveal.js/3.6.0/plugin/menu/menu-mod.js b/public/libs/reveal.js/3.6.0/plugin/menu/menu-mod.js index 28b6cbe..1c355a4 100644 --- a/public/libs/reveal.js/3.6.0/plugin/menu/menu-mod.js +++ b/public/libs/reveal.js/3.6.0/plugin/menu/menu-mod.js @@ -745,23 +745,6 @@ var RevealMenu = window.RevealMenu || (function(){ }); } - /* - * The menu should be opened by default only when the - * following set conditions are met: - * - * 1. Presentation not open in speaker notes window. - * 2. Presentation not embedded within an iFrame. - * 1. Presentation displayed within window.width > 1023px. - * - * Note, "receiver" on window.location indicates the - * presentation is open in the speaker-notes window. - */ - if(!window.location.search.match(/receiver/gi) && - (window.top === window.self) && - (window.innerWidth > 1023)) { - openMenu(); - } - initialised = true; }