1 // Initialize impress.js
5 var helpdiv = window.document.getElementById('hovercraft-help');
7 if (window.top!=window.self) {
8 // This is inside an iframe, so don't show the help.
9 helpdiv.className = "disabled";
12 // Install a funtion to toggle help on and off.
13 var help = function() {
14 if(helpdiv.className == 'hide')
15 helpdiv.className = 'show';
17 helpdiv.className = 'hide';
19 console().registerKeyEvent([72], help, window);
21 // The help is by default shown. Hide it after five seconds.
22 setTimeout(function () {
23 var helpdiv = window.document.getElementById('hovercraft-help');
24 if(helpdiv.className != 'show')
25 helpdiv.className = 'hide';
31 console().init(cssFile='css/impressConsole.css');
33 var impressattrs = document.getElementById('impress').attributes
34 if (impressattrs.hasOwnProperty('auto-console') && impressattrs['auto-console'].value.toLowerCase() === 'true') {
35 consoleWindow = console().open();