Merge branch 'master' of github.com:h5p/h5p-php-library
commit
66928f397e
|
@ -67,7 +67,11 @@ H5P.init = function (target) {
|
|||
|
||||
// Determine if we can use full screen
|
||||
if (H5P.canHasFullScreen === undefined) {
|
||||
H5P.canHasFullScreen = (H5P.isFramed && H5P.externalEmbed !== false) ? ((document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled || document.msFullscreenEnabled) ? true : false) : true;
|
||||
// Restricts fullscreen when embedded.
|
||||
// (embedded doesn't support semi-fullscreen solution)
|
||||
H5P.canHasFullScreen = (H5P.isFramed && H5P.externalEmbed !== false) ? ((document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled) ? true : false) : true;
|
||||
// We should consider document.msFullscreenEnabled when they get their
|
||||
// element sizing corrected. Ref. https://connect.microsoft.com/IE/feedback/details/838286/ie-11-incorrectly-reports-dom-element-sizes-in-fullscreen-mode-when-fullscreened-element-is-within-an-iframe
|
||||
}
|
||||
|
||||
// H5Ps added in normal DIV.
|
||||
|
@ -1636,7 +1640,7 @@ H5P.createTitle = function(rawTitle, maxLength) {
|
|||
|
||||
// Cache in preloaded
|
||||
if (content.contentUserData === undefined) {
|
||||
content.contentUserData = preloaded = {};
|
||||
content.contentUserData = preloadedData = {};
|
||||
}
|
||||
if (preloadedData[subContentId] === undefined) {
|
||||
preloadedData[subContentId] = {};
|
||||
|
|
Loading…
Reference in New Issue