Is it possible to define a “On Click” action to display the project in Fullscreen Mode? In “Adjust Variable” I cannot find those commands, neither anywhere in the Software Manual. Maybe there exist any useful JavaScript Code which I could use.
Alternatively it would be helpful to hide the progress bar in the Toolbar and to use only the “Display Mode Button”. But i would prefer a customized button, because i dont want to use the toolbar.
Background: We are currently investigating how to embed a project in a website with a header, navigation etc. The project size is to small in this case.
It requires coding in JavaScript. Basically, you need to add an On Click event to the button, and add an Execute JavaScript action with following code:
var containerElement = prez.container;
if (containerElement.requestFullscreen) {
containerElement.requestFullscreen();
} else if (containerElement.mozRequestFullScreen) {
containerElement.mozRequestFullScreen();
} else if (containerElement.webkitRequestFullscreen) {
containerElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
} else if (containerElement.msRequestFullscreen) {
containerElement.msRequestFullscreen();
}