Copy Code

Your Site Name

Lesson Two

Content Area

Heading 1

Heading 2

Heading 3

Heading 4

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Bullet List

  • List item one
  • List item two
  • List item three

Numbered List

  1. List item one
  2. List item two
  3. List item three

STEP 1: Add this code to Site Footer Code section on your Thinkific site.

This will enable the course player to receive Javascript messages from your multimedia lesson/


<!-- plaYEAH! Magic Multimedia Lesson --><script src="https://cdn.jsdelivr.net/gh/robgalvinco/[email protected]/playeah/event-manager.min.js"></script>

          

STEP 2: Add this code to your HTML that you are importing into the Multimedia lesson

You should place this code snippet in the <HEAD> section above other scripts.

This will expose functions that can be called from your HTML/Javascript.


<script>
   
        function hide_cc() {
            /* hide thinkific course player complete and continue button*/
            window.parent.postMessage('hide_complete', '*');
        }
        function show_cc() {
            /* show thinkific course player complete and continue button*/
            window.parent.postMessage('show_complete', '*');
        }
        function click_cc() {
            /* click thinkific course player complete and continue button*/
            window.parent.postMessage('click_complete', '*');
        }
        function click_ic() {
            /* click thinkific course player mark incomplete button*/
            window.parent.postMessage('click_incomplete', '*');
        }
        function hide_tcp() {
            /* hide thinkific course player sidenav */
            window.parent.postMessage('hide_tcp_chapters', '*');
        }
        function show_tcp() {
            /* shows thinkific course player sidenav */
            window.parent.postMessage('show_tcp_chapters', '*');
        }
        
    

</script>
          

STEP 3: Call the functions above when you want to trigger them

This part you will need to figure out depending on the platform you are using. Essentially you will have to call the corresponding Javascript functions when you want to control things pm the course player

Try a sample

  • 💥Download a sample ZIP file
  • 💥Create a multimedia lesson and import this zip file
  • 💥Click the buttons in the HTML lesson to see how the course player responds

<html>
<head>
    
    <script>
        function hide_cc() {
            /* hide thinkific course player complete and continue button*/
            window.parent.postMessage('hide_complete', '*');
        }
        function show_cc() {
            /* show thinkific course player complete and continue button*/
            window.parent.postMessage('show_complete', '*');
        }
        function click_cc() {
            /* click thinkific course player complete and continue button*/
            window.parent.postMessage('click_complete', '*');
        }
        function click_ic() {
            /* click thinkific course player mark incomplete button*/
            window.parent.postMessage('click_incomplete', '*');
        }
        function hide_tcp() {
            /* hide thinkific course player sidenav */
            window.parent.postMessage('hide_tcp_chapters', '*');
        }
        function show_tcp() {
            /* shows thinkific course player sidenav */
            window.parent.postMessage('show_tcp_chapters', '*');
        }
        
    </script>
</head>
<body>
    <h1> Multimedia Lesson Sample </h1>
    <p> Controlling the complete and continue button, great for SCORM/Captivate based lessons</body>
    <div><button onclick="hide_cc()">Hide Completed and continue button</button></div>
    <div></div><button onclick="show_cc()">Show Completed and continue button</button></div>
    <div></div><button onclick="click_cc()">Click Completed and continue button</button></div>
    <div></div><button onclick="click_ic()">Click Mark Incompleted button</button></div>
    <div></div><button onclick="hide_tcp()">Hide course player nav</button></div>
    <div></div><button onclick="show_tcp()">Show course player nav</button></div>
</body>
</html>