From a0c5fe0e1808ff97e96b5e553b8999502419f04b Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Mon, 9 Feb 2015 11:51:39 +0100 Subject: [PATCH] Comment out semi full screen. --- js/h5p-resizer.js | 70 +++++++++++++++++++++++------------------------ js/h5p.js | 2 +- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/js/h5p-resizer.js b/js/h5p-resizer.js index 86cb280..54ec5d8 100644 --- a/js/h5p-resizer.js +++ b/js/h5p-resizer.js @@ -84,41 +84,41 @@ } }; - /** - * Enter semi full screen. - * Expands the iframe so that it covers the whole page. - * - * @private - * @param {Object} iframe Element - * @param {Object} data Payload - * @param {Function} respond Send a response to the iframe - */ - actionHandlers.fullScreen = function (iframe, data, respond) { - iframe.style.position = 'fixed'; - iframe.style.top = iframe.style.left = 0; - iframe.style.zIndex = 101; - iframe.style.width = iframe.style.height = '100%'; - document.body.addEventListener('keyup', escape, false); - respond('fullScreen'); - }; - - /** - * Exit semi full screen. - * - * @private - * @param {Object} iframe Element - * @param {Object} data Payload - * @param {Function} respond Send a response to the iframe - */ - actionHandlers.exitFullScreen = function (iframe, data, respond) { - iframe.style.position = ''; - iframe.style.top = iframe.style.left = ''; - iframe.style.zIndex = ''; - iframe.style.width = '100%'; - iframe.style.height = ''; - document.body.removeEventListener('keyup', escape, false); - respond('exitFullScreen'); - }; + // /** + // * Enter semi full screen. + // * Expands the iframe so that it covers the whole page. + // * + // * @private + // * @param {Object} iframe Element + // * @param {Object} data Payload + // * @param {Function} respond Send a response to the iframe + // */ + // actionHandlers.fullScreen = function (iframe, data, respond) { + // iframe.style.position = 'fixed'; + // iframe.style.top = iframe.style.left = 0; + // iframe.style.zIndex = 101; + // iframe.style.width = iframe.style.height = '100%'; + // document.body.addEventListener('keyup', escape, false); + // respond('fullScreen'); + // }; + // + // /** + // * Exit semi full screen. + // * + // * @private + // * @param {Object} iframe Element + // * @param {Object} data Payload + // * @param {Function} respond Send a response to the iframe + // */ + // actionHandlers.exitFullScreen = function (iframe, data, respond) { + // iframe.style.position = ''; + // iframe.style.top = iframe.style.left = ''; + // iframe.style.zIndex = ''; + // iframe.style.width = '100%'; + // iframe.style.height = ''; + // document.body.removeEventListener('keyup', escape, false); + // respond('exitFullScreen'); + // }; // Listen for messages from iframes diff --git a/js/h5p.js b/js/h5p.js index 9567fee..95a7728 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -357,7 +357,7 @@ H5P.fullScreen = function ($element, instance, exitCallback, body) { // Create semi fullscreen. if (H5P.isFramed) { - return; // TODO: Ask parent for iframe + return; // TODO: Should we support semi-fullscreen for IE9 & 10 ? } before('h5p-semi-fullscreen');