mirror of
https://github.com/gitpitch/gitpitch.git
synced 2024-04-18 07:30:55 +08:00
Updated PITCHME.yaml published policy, menus now closed by default.
This commit is contained in:
parent
60e1477732
commit
e949568bf5
|
@ -176,11 +176,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
function manageMenuPolicy() {
|
function manageMenuPolicy() {
|
||||||
@if(ssm.published()) {
|
|
||||||
if(RevealMenu && RevealMenu.isOpen()) {
|
if(RevealMenu && RevealMenu.isOpen()) {
|
||||||
RevealMenu.toggle();
|
RevealMenu.toggle();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function upgradeAnchors() {
|
function upgradeAnchors() {
|
||||||
|
|
|
@ -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;
|
initialised = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
initialised = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user