Skip to content

Commit

Permalink
MDL-51916 mod_scorm: allow html5 scorm content fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Nov 27, 2015
1 parent c18acb8 commit bba1a4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mod/scorm/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion mod/scorm/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit bba1a4a

Please sign in to comment.