Skip to content

Commit

Permalink
deploy: 912c7df
Browse files Browse the repository at this point in the history
  • Loading branch information
its-ChaTTy committed Aug 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent bfa6893 commit 6d4ed0a
Showing 372 changed files with 1,986 additions and 1,832 deletions.
45 changes: 45 additions & 0 deletions 367/APIWrapper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// SCORM API Wrapper
var findAPITries = 0;
var API = null;

function findAPI(win) {
while ((win.API == null) && (win.parent != null) && (win.parent != win)) {
findAPITries++;
if (findAPITries > 7) {
return null;
}
win = win.parent;
}
return win.API;
}

function getAPI() {
var theAPI = findAPI(window);
if ((theAPI == null) && (window.opener != null) && (typeof(window.opener) != "undefined")) {
theAPI = findAPI(window.opener);
}
if (theAPI == null) {
alert("Unable to find an API adapter");
}
return theAPI;
}

function initializeAPI() {
API = getAPI();
if (API != null) {
API.LMSInitialize("");
}
}

function terminateAPI() {
if (API != null) {
API.LMSFinish("");
}
}

function setProgress(progress) {
if (API != null) {
API.LMSSetValue("cmi.core.lesson_status", progress);
API.LMSCommit("");
}
}
40 changes: 40 additions & 0 deletions 367/SCORMFunctions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// SCORM Functions
function loadPage() {
initializeAPI();
console.log("SCORM API initialized.");
}

function unloadPage() {
terminateAPI();
console.log("SCORM API terminated.");
}

function loadChapter(chapter) {
loadPage();

var completionStatus = API.LMSGetValue("cmi.core.lesson_status");

if (completionStatus === "completed") {
document.getElementById("completion-status").innerText = "This chapter has been completed.";
document.getElementById("complete-button").style.display = "none";
} else {
document.getElementById("completion-status").innerText = "This chapter has not been completed.";
document.getElementById("reset-button").style.display = "none";
}
}

function completeChapter(chapter) {
setProgress("completed");
alert(chapter + " completed! Progress recorded.");
document.getElementById("completion-status").innerText = "This chapter has been completed.";
document.getElementById("complete-button").style.display = "none";
document.getElementById("reset-button").style.display = "block";
}

function resetChapter(chapter) {
setProgress("incomplete");
alert(chapter + " reset to incomplete.");
document.getElementById("completion-status").innerText = "This chapter has not been completed.";
document.getElementById("complete-button").style.display = "block";
document.getElementById("reset-button").style.display = "none";
}
2 changes: 1 addition & 1 deletion 367/_sources/lectures/TWP52_en.rst.txt
Original file line number Diff line number Diff line change
@@ -306,7 +306,7 @@ Review


.. raw:: html
:file: ../../scorm_package/index.html
:file: ../../scorm_package/chapter1.html

.. disqus::
:shortname: pyzombis
45 changes: 45 additions & 0 deletions 367/_static/APIWrapper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// SCORM API Wrapper
var findAPITries = 0;
var API = null;

function findAPI(win) {
while ((win.API == null) && (win.parent != null) && (win.parent != win)) {
findAPITries++;
if (findAPITries > 7) {
return null;
}
win = win.parent;
}
return win.API;
}

function getAPI() {
var theAPI = findAPI(window);
if ((theAPI == null) && (window.opener != null) && (typeof(window.opener) != "undefined")) {
theAPI = findAPI(window.opener);
}
if (theAPI == null) {
alert("Unable to find an API adapter");
}
return theAPI;
}

function initializeAPI() {
API = getAPI();
if (API != null) {
API.LMSInitialize("");
}
}

function terminateAPI() {
if (API != null) {
API.LMSFinish("");
}
}

function setProgress(progress) {
if (API != null) {
API.LMSSetValue("cmi.core.lesson_status", progress);
API.LMSCommit("");
}
}
40 changes: 40 additions & 0 deletions 367/_static/SCORMFunctions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// SCORM Functions
function loadPage() {
initializeAPI();
console.log("SCORM API initialized.");
}

function unloadPage() {
terminateAPI();
console.log("SCORM API terminated.");
}

function loadChapter(chapter) {
loadPage();

var completionStatus = API.LMSGetValue("cmi.core.lesson_status");

if (completionStatus === "completed") {
document.getElementById("completion-status").innerText = "This chapter has been completed.";
document.getElementById("complete-button").style.display = "none";
} else {
document.getElementById("completion-status").innerText = "This chapter has not been completed.";
document.getElementById("reset-button").style.display = "none";
}
}

function completeChapter(chapter) {
setProgress("completed");
alert(chapter + " completed! Progress recorded.");
document.getElementById("completion-status").innerText = "This chapter has been completed.";
document.getElementById("complete-button").style.display = "none";
document.getElementById("reset-button").style.display = "block";
}

function resetChapter(chapter) {
setProgress("incomplete");
alert(chapter + " reset to incomplete.");
document.getElementById("completion-status").innerText = "This chapter has not been completed.";
document.getElementById("complete-button").style.display = "block";
document.getElementById("reset-button").style.display = "none";
}
2 changes: 1 addition & 1 deletion 367/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '979652b028afa0d18fcb457e2f489071bff9a9c1-Scorm',
VERSION: '73f24da05aeb65e9fbd77249a1ae4e00c8fd8e11-Scorm',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
10 changes: 5 additions & 5 deletions 367/challenges/Reto01.html
Original file line number Diff line number Diff line change
@@ -4,14 +4,14 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Reto Ahorcado &#8212; PyZombis Scorm@979652b</title>
<title>Reto Ahorcado &#8212; PyZombis Scorm@73f24da</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/CodeChat.css" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
<link rel="stylesheet" type="text/css" href="../_static/webgldemo.css?v=B36B48D" />
<link rel="stylesheet" type="text/css" href="../_static/webglinteractive.css?v=910DF1E1" />
<link rel="stylesheet" type="text/css" href="../_static/accessibility.css?v=50109A2C" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css" />
<link rel="stylesheet" type="text/css" href="../_static/theme-overrides.css?v=2DAFE138" />

@@ -21,11 +21,11 @@
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/animationbase.js?v=A043C3A7"></script>
<script src="../_static/html4css1.css?v=4533ACD3"></script>
<script src="../_static/matrixeq.js?v=D64CFA5A"></script>
<script src="../_static/webglinteractive.js?v=2B768384"></script>
<script src="../_static/FileSaver.min.js?v=8408C997"></script>
<script src="../_static/animationbase.js?v=A043C3A7"></script>
<script src="../_static/matrixeq.js?v=D64CFA5A"></script>
<script src="../_static/runtime.bundle.js?v=e9212b0c23d64327d840"></script>
<script src="../_static/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_jquery-ui_jquery-ui_js-node_-e60694.bundle.js?v=02c928219c61d5ca913a"></script>
<script src="../_static/runestone.bundle.js?v=b1b68110e1d2451692d0"></script>
@@ -92,7 +92,7 @@

<a class="navbar-brand" href="../index.html" aria-label="index-page">

PyZombis Scorm@979652b
PyZombis Scorm@73f24da
</a>
</div>
</div>
10 changes: 5 additions & 5 deletions 367/challenges/Reto01_en.html
Original file line number Diff line number Diff line change
@@ -4,14 +4,14 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hangman Challenge &#8212; PyZombis Scorm@979652b</title>
<title>Hangman Challenge &#8212; PyZombis Scorm@73f24da</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/CodeChat.css" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
<link rel="stylesheet" type="text/css" href="../_static/webgldemo.css?v=B36B48D" />
<link rel="stylesheet" type="text/css" href="../_static/webglinteractive.css?v=910DF1E1" />
<link rel="stylesheet" type="text/css" href="../_static/accessibility.css?v=50109A2C" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css" />
<link rel="stylesheet" type="text/css" href="../_static/theme-overrides.css?v=2DAFE138" />

@@ -21,11 +21,11 @@
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/animationbase.js?v=A043C3A7"></script>
<script src="../_static/html4css1.css?v=4533ACD3"></script>
<script src="../_static/matrixeq.js?v=D64CFA5A"></script>
<script src="../_static/webglinteractive.js?v=2B768384"></script>
<script src="../_static/FileSaver.min.js?v=8408C997"></script>
<script src="../_static/animationbase.js?v=A043C3A7"></script>
<script src="../_static/matrixeq.js?v=D64CFA5A"></script>
<script src="../_static/runtime.bundle.js?v=e9212b0c23d64327d840"></script>
<script src="../_static/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_jquery-ui_jquery-ui_js-node_-e60694.bundle.js?v=02c928219c61d5ca913a"></script>
<script src="../_static/runestone.bundle.js?v=b1b68110e1d2451692d0"></script>
@@ -92,7 +92,7 @@

<a class="navbar-brand" href="../index.html" aria-label="index-page">

PyZombis Scorm@979652b
PyZombis Scorm@73f24da
</a>
</div>
</div>
10 changes: 5 additions & 5 deletions 367/challenges/Reto02.html
Original file line number Diff line number Diff line change
@@ -4,14 +4,14 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Reto Pergamino &#8212; PyZombis Scorm@979652b</title>
<title>Reto Pergamino &#8212; PyZombis Scorm@73f24da</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/CodeChat.css" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
<link rel="stylesheet" type="text/css" href="../_static/webgldemo.css?v=B36B48D" />
<link rel="stylesheet" type="text/css" href="../_static/webglinteractive.css?v=910DF1E1" />
<link rel="stylesheet" type="text/css" href="../_static/accessibility.css?v=50109A2C" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css" />
<link rel="stylesheet" type="text/css" href="../_static/theme-overrides.css?v=2DAFE138" />

@@ -21,11 +21,11 @@
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/animationbase.js?v=A043C3A7"></script>
<script src="../_static/html4css1.css?v=4533ACD3"></script>
<script src="../_static/matrixeq.js?v=D64CFA5A"></script>
<script src="../_static/webglinteractive.js?v=2B768384"></script>
<script src="../_static/FileSaver.min.js?v=8408C997"></script>
<script src="../_static/animationbase.js?v=A043C3A7"></script>
<script src="../_static/matrixeq.js?v=D64CFA5A"></script>
<script src="../_static/runtime.bundle.js?v=e9212b0c23d64327d840"></script>
<script src="../_static/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_jquery-ui_jquery-ui_js-node_-e60694.bundle.js?v=02c928219c61d5ca913a"></script>
<script src="../_static/runestone.bundle.js?v=b1b68110e1d2451692d0"></script>
@@ -93,7 +93,7 @@

<a class="navbar-brand" href="../index.html" aria-label="index-page">

PyZombis Scorm@979652b
PyZombis Scorm@73f24da
</a>
</div>
</div>
10 changes: 5 additions & 5 deletions 367/challenges/Reto03.html
Original file line number Diff line number Diff line change
@@ -4,14 +4,14 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Reto Pygame -Tirador de zombies &#8212; PyZombis Scorm@979652b</title>
<title>Reto Pygame -Tirador de zombies &#8212; PyZombis Scorm@73f24da</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/CodeChat.css" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
<link rel="stylesheet" type="text/css" href="../_static/webgldemo.css?v=B36B48D" />
<link rel="stylesheet" type="text/css" href="../_static/webglinteractive.css?v=910DF1E1" />
<link rel="stylesheet" type="text/css" href="../_static/accessibility.css?v=50109A2C" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css" />
<link rel="stylesheet" type="text/css" href="../_static/theme-overrides.css?v=2DAFE138" />

@@ -21,11 +21,11 @@
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/animationbase.js?v=A043C3A7"></script>
<script src="../_static/html4css1.css?v=4533ACD3"></script>
<script src="../_static/matrixeq.js?v=D64CFA5A"></script>
<script src="../_static/webglinteractive.js?v=2B768384"></script>
<script src="../_static/FileSaver.min.js?v=8408C997"></script>
<script src="../_static/animationbase.js?v=A043C3A7"></script>
<script src="../_static/matrixeq.js?v=D64CFA5A"></script>
<script src="../_static/runtime.bundle.js?v=e9212b0c23d64327d840"></script>
<script src="../_static/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_jquery-ui_jquery-ui_js-node_-e60694.bundle.js?v=02c928219c61d5ca913a"></script>
<script src="../_static/runestone.bundle.js?v=b1b68110e1d2451692d0"></script>
@@ -92,7 +92,7 @@

<a class="navbar-brand" href="../index.html" aria-label="index-page">

PyZombis Scorm@979652b
PyZombis Scorm@73f24da
</a>
</div>
</div>
10 changes: 5 additions & 5 deletions 367/challenges/Reto03_en.html
Original file line number Diff line number Diff line change
@@ -4,14 +4,14 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pygame Challenge - Zombie Shooter &#8212; PyZombis Scorm@979652b</title>
<title>Pygame Challenge - Zombie Shooter &#8212; PyZombis Scorm@73f24da</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/CodeChat.css" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
<link rel="stylesheet" type="text/css" href="../_static/webgldemo.css?v=B36B48D" />
<link rel="stylesheet" type="text/css" href="../_static/webglinteractive.css?v=910DF1E1" />
<link rel="stylesheet" type="text/css" href="../_static/accessibility.css?v=50109A2C" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
<link rel="stylesheet" type="text/css" href="../_static/bootstrap-sphinx.css" />
<link rel="stylesheet" type="text/css" href="../_static/theme-overrides.css?v=2DAFE138" />

@@ -21,11 +21,11 @@
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/animationbase.js?v=A043C3A7"></script>
<script src="../_static/html4css1.css?v=4533ACD3"></script>
<script src="../_static/matrixeq.js?v=D64CFA5A"></script>
<script src="../_static/webglinteractive.js?v=2B768384"></script>
<script src="../_static/FileSaver.min.js?v=8408C997"></script>
<script src="../_static/animationbase.js?v=A043C3A7"></script>
<script src="../_static/matrixeq.js?v=D64CFA5A"></script>
<script src="../_static/runtime.bundle.js?v=e9212b0c23d64327d840"></script>
<script src="../_static/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_jquery-ui_jquery-ui_js-node_-e60694.bundle.js?v=02c928219c61d5ca913a"></script>
<script src="../_static/runestone.bundle.js?v=b1b68110e1d2451692d0"></script>
@@ -92,7 +92,7 @@

<a class="navbar-brand" href="../index.html" aria-label="index-page">

PyZombis Scorm@979652b
PyZombis Scorm@73f24da
</a>
</div>
</div>
Loading

0 comments on commit 6d4ed0a

Please sign in to comment.