X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/mod/scorm
home
/
cbholdings
/
pasukulu
/
mod
/
scorm
/
📁
..
📄
aicc.php
(23.74 KB)
📁
backup
📁
classes
📄
datamodel.php
(4.36 KB)
📁
datamodels
📁
db
📄
deprecatedlib.php
(4.99 KB)
📄
grade.php
(1.59 KB)
📄
index.php
(4.37 KB)
📁
lang
📄
lib.php
(64.7 KB)
📄
loadSCO.php
(6.51 KB)
📄
locallib.php
(95.26 KB)
📄
mod_form.php
(26.06 KB)
📄
module.js
(40.32 KB)
📁
pix
📄
player.js
(1.23 KB)
📄
player.php
(12.23 KB)
📄
prereqs.php
(3.21 KB)
📄
renderer.php
(8.45 KB)
📁
report
📄
report.php
(3.61 KB)
📄
reportsettings_form.php
(2.12 KB)
📄
request.js
(9.93 KB)
📄
settings.php
(8.76 KB)
📄
styles.css
(5.19 KB)
📁
templates
📁
tests
📄
upgrade.txt
(1.52 KB)
📄
version.php
(1.15 KB)
📄
view.js
(3.61 KB)
📄
view.php
(7.49 KB)
Editing: view.js
M.mod_scormform = {}; M.mod_scormform.init = function(Y) { var scormform = Y.one('#scormviewform'); var cwidth = scormplayerdata.cwidth; var cheight = scormplayerdata.cheight; var poptions = scormplayerdata.popupoptions; var launch = scormplayerdata.launch; var currentorg = scormplayerdata.currentorg; var sco = scormplayerdata.sco; var scorm = scormplayerdata.scorm; var launch_url = M.cfg.wwwroot + "/mod/scorm/player.php?a=" + scorm + "¤torg=" + currentorg + "&scoid=" + sco + "&sesskey=" + M.cfg.sesskey + "&display=popup"; var course_url = scormplayerdata.courseurl; var winobj = null; poptions = poptions + ',resizable=yes'; // Added for IE (MDL-32506). if ((cwidth == 100) && (cheight == 100)) { poptions = poptions + ',width=' + screen.availWidth + ',height=' + screen.availHeight + ',left=0,top=0'; } else { if (cwidth <= 100) { cwidth = Math.round(screen.availWidth * cwidth / 100); } if (cheight <= 100) { cheight = Math.round(screen.availHeight * cheight / 100); } poptions = poptions + ',width=' + cwidth + ',height=' + cheight; } // Hide the form and toc if it exists - we don't want to allow multiple submissions when a window is open. var scormload = function () { if (scormform) { scormform.hide(); } var scormtoc = Y.one('#toc'); if (scormtoc) { scormtoc.hide(); } // Hide the intro and display a message to the user if the window is closed. var scormintro = Y.one('#intro'); scormintro.setHTML('<a href="' + course_url + '">' + M.util.get_string('popuplaunched', 'scorm') + '</a>'); } // When pop-up is closed return to course homepage. var scormunload = function () { // Onunload is called multiple times in the SCORM window - we only want to handle when it is actually closed. setTimeout(function() { if (winobj.closed) { window.location = course_url; } }, 800) } var scormredirect = function (winobj) { Y.on('load', scormload, winobj); Y.on('unload', scormunload, winobj); // Check to make sure pop-up has been launched - if not display a warning, // this shouldn't happen as the pop-up here is launched on user action but good to make sure. setTimeout(function() { if (!winobj) { var scormintro = Y.one('#intro'); scormintro.setHTML(M.util.get_string('popupsblocked', 'scorm')); }}, 800); } // Set mode and newattempt correctly. var setlaunchoptions = function(mode) { if (mode) { launch_url += '&mode=' + (mode ? mode : 'normal'); } else { launch_url += '&mode=normal'; } var newattempt = Y.one('#scormviewform #a'); launch_url += (newattempt && newattempt.get('checked') ? '&newattempt=on' : ''); } if (launch == true) { setlaunchoptions(); winobj = window.open(launch_url,'Popup', poptions); this.target = 'Popup'; scormredirect(winobj); winobj.opener = null; } // Listen for view form submit and generate popup on user interaction. if (scormform) { scormform.delegate('click', function(e) { setlaunchoptions(e.currentTarget.getAttribute('value')); winobj = window.open(launch_url, 'Popup', poptions); this.target = 'Popup'; scormredirect(winobj); winobj.opener = null; e.preventDefault(); }, 'button[name=mode]'); } }
Upload File
Create Folder