Add close button to SCORM

Yesterday a client ask me for a small change to the Moodle SCORM activity. They create their SCORM content using Storyline and load it using a popup window. Once the activity has been completed, a standard message as below is shown to the user.

scorm_1.png

This requires a user to click the X in the top right corner to close the popup window. In some instances their users are closing the browser and not just the popup window.

They asked for a Close button on the page that would only close the popup window.

scorm_3.jpg

The fix is pretty simple, but unfortunately does require a change to each SCORM package.

Edit the goodbye.html page in the lms directory and add in a line of html. This will add a button to the screen, and when clicked, will close the popup.

scorm_2.jpg

 

Code from goodbye.html, with the change in bold.

<html><body bgcolor=”#ffffff”>
<center>
<br><br><br><br><font face=”Open Sans, articulate, tahoma, arial” size=”3″ color: “#333333”>
The content has ended. You may close this window.
</font>

<p>
<input type=”button” onclick=”parent.window.close();” value=”Close [x]” />
</p>

</center>
</body></html>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s