MDL-51916 mod_scorm: allow html5 scorm content fullscreen

This commit is contained in:
Dan Marsden 2015-11-27 21:27:38 +13:00
parent c18acb8997
commit bba1a4a6e3
2 changed files with 4 additions and 1 deletions

View file

@ -156,6 +156,9 @@ M.mod_scorm.init = function(Y, nav_display, navposition_left, navposition_top, h
var obj = document.createElement('iframe');
obj.setAttribute('id', 'scorm_object');
obj.setAttribute('type', 'text/html');
obj.setAttribute('allowfullscreen', 'allowfullscreen');
obj.setAttribute('webkitallowfullscreen', 'webkitallowfullscreen');
obj.setAttribute('mozallowfullscreen', 'mozallowfullscreen');
if (!window_name && node.title != null) {
obj.setAttribute('src', url_prefix + node.title);
}