Magic Multimedia Lesson
This superpower allows you to control the complete and continue button from your Storyline code
Last updated
This superpower allows you to control the complete and continue button from your Storyline code
Last updated
In order to use this, you must understand how to call a Javascript function from within your authoring tool (Storyline, etc). Please do not contact support for instructions on how to do this from within your tool. What is being provided here is a way for your multimedia lesson html to be able to issue a Javascript message to a snippet of code from plaYEAH! that will be listening for certain messages to perform operations like hiding or clicking the complete and continue button.
1) Open your .story file to the slide that has the button you want to activate the JavaScript code and select the button. You must use a button to activate the JavaScript
2) **** In the Triggers panel, create a new trigger.
3) Choose Execute JavaScript in the JavaScript popup window and choose your button (if it isn’t already chosen.)
Click on the JavaScript link that appears in the box and copy/paste the following (this will turn off the “Complete” button):
4) Save your trigger and move it above any other triggers for the button that already exist.
5) Save your slide.
6) Open the slide that contains the button you want to use to turn the “Complete” button back on. Repeat the process, but this time the JavaScript you will use is:
1) Export your Storyline document for Web by clicking Publish > Web. Find your exported files. Within the exported files folder that is created you will see a story.html file. Open this file using a text editor. I use Atom, but here is a list you might want to choose from.
Do not use MS Word or any other kind of word processing program: Sublime Text Atom Notepad++ CoffeeCup – The HTML Editor TextMate Vim UltraEdit Coda BBEdit Komodo Edit Visual Studio Code Brackets CodeShare
Once you have your story.html open, copy/paste the following code after and before at the top of the file. Save your file.
This code should go before any other JavaScript code that you might see, but after </style>. For Example:
\
Log into your Thinkific account.
In the left sidebar, click on “Settings” In the panel that appears, choose the tab that says “Code & Analytics”
Copy/paste the following code into the footer and choose
Save
``