MDL-51916 mod_scorm: allow html5 scorm content fullscreen
authorDan Marsden <dan@danmarsden.com>
Fri, 27 Nov 2015 08:27:38 +0000 (21:27 +1300)
committerDan Marsden <dan@danmarsden.com>
Fri, 27 Nov 2015 08:27:38 +0000 (21:27 +1300)
mod/scorm/module.js
mod/scorm/version.php

index dad0f0a..287bccb 100644 (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);
             }
index 7fbaf20..22ee5e6 100644 (file)
@@ -24,7 +24,7 @@
 
 defined('MOODLE_INTERNAL') || die();
 
-$plugin->version   = 2015111600;    // The current module version (Date: YYYYMMDDXX).
+$plugin->version   = 2015112700;    // The current module version (Date: YYYYMMDDXX).
 $plugin->requires  = 2015111000;    // Requires this Moodle version.
 $plugin->component = 'mod_scorm';   // Full name of the plugin (used for diagnostics).
 $plugin->cron      = 300;