var presentation = ["superhero film<\/word>","Marvel Comics character<\/word>","T'Challa<\/word>","crowned king of Wakanda<\/word>","his father's death<\/word>","challenged by Killmonger<\/word>","plans to abandon<\/word>","country's isolationist policies<\/word>","Black Panther<\/word>","same name<\/word>","global revolution<\/word>","Black Panther<\/strong> is a 2018 American superhero film<\/strong> based on the Marvel Comics character<\/strong> of the same name<\/strong>. In Black Panther<\/strong>, T'Challa<\/strong> is crowned king of Wakanda<\/strong> following his father's death<\/strong>, but he is challenged by Killmonger<\/strong> who plans to abandon<\/strong> the country's isolationist policies<\/strong> and begin a global revolution<\/strong>.<\/phrase>","Thousands of years ago<\/word>","five African tribes<\/word>","war over a meteorite<\/word>","ingests a heart-shaped herb<\/word>","gains superhuman abilities<\/word>","becoming the first Black Panther<\/word>","He unites all but the Jabari Tribe<\/word>","form the nation of Wakanda<\/word>","Wakandans use the vibranium<\/word>","isolate themselves<\/word>","by posing as a Third World country<\/word>","metal vibranium<\/word>","develop<\/word>","advanced technology<\/word>","Thousands of years ago<\/strong>, five African tribes<\/strong> war over a meteorite<\/strong> containing the metal vibranium<\/strong>. One warrior ingests a heart-shaped herb<\/strong> affected by the metal and gains superhuman abilities<\/strong>, becoming the first Black Panther<\/strong>. He unites all but the Jabari Tribe<\/strong> to form the nation of Wakanda<\/strong>. Over centuries, the Wakandans use the vibranium<\/strong> to develop<\/strong> advanced technology<\/strong> and isolate themselves<\/strong> from the world by posing as a Third World country<\/strong>.<\/phrase>","King T'Chaka<\/word>","visits his brother<\/word>","N'Jobu<\/word>","working undercover<\/word>","Oakland, California<\/word>","assisting black-market arms dealer<\/word>","Ulysses Klaue<\/word>","stealing vibranium from Wakanda<\/word>","reveals he is Zuri<\/word>","undercover Wakandan<\/word>","In 1992, Wakanda's King T'Chaka<\/strong> visits his brother<\/strong> N'Jobu<\/strong>, who is working undercover<\/strong> in Oakland, California<\/strong>. T'Chaka accuses N'Jobu<\/strong> of assisting black-market arms dealer<\/strong> Ulysses Klaue<\/strong> with stealing vibranium from Wakanda<\/strong>. N'Jobu<\/strong>'s partner reveals he is Zuri<\/strong>, another undercover Wakandan<\/strong>, and confirms T'Chaka's suspicions.<\/phrase>","T'Challa<\/word>","returns to Wakanda<\/word>","assume the throne<\/word>","leader of the Dora Milaje regiment<\/word>","attend his coronation ceremony<\/word>","Jabari Tribe's leader<\/word>","M'Baku<\/word>","challenges T'Challa for the crown<\/word>","persuades him to yield rather than die<\/word>","present day<\/word>","his son<\/word>","Okoye<\/word>","Nakia<\/word>","undercover assignment<\/word>","his mother<\/word>","Ramonda<\/word>","younger sister<\/word>","Shuri<\/word>","In the present day<\/strong>, following T'Chaka's death, his son<\/strong> T'Challa<\/strong> returns to Wakanda<\/strong> to assume the throne<\/strong>. He and Okoye<\/strong>, the leader of the Dora Milaje regiment<\/strong>, extract T'Challa<\/strong>'s ex-lover Nakia<\/strong> from an undercover assignment<\/strong> so she can attend his coronation ceremony<\/strong> with his mother<\/strong> Ramonda<\/strong> and younger sister<\/strong> Shuri<\/strong>. At the ceremony, the Jabari Tribe's leader<\/strong> M'Baku<\/strong> challenges T'Challa for the crown<\/strong> in ritual combat. T'Challa<\/strong> defeats M'Baku<\/strong> and persuades him to yield rather than die<\/strong>.<\/phrase>","Klaue and his accomplice<\/word>","steal a Wakandan artifact<\/word>","London museum<\/word>","T'Challa<\/word>","Okoye's lover<\/word>","W'Kabi<\/word>","urges him to bring Klaue back alive<\/word>","travel to Busan, South Korea<\/word>","Klaue plans to sell the artifact<\/word>","CIA agent<\/word>","Everett K. Ross<\/word>","Klaue attempts to flee<\/word>","reluctantly releases him to Ross' custody<\/word>","Wakanda's international image<\/word>","front for a technologically advanced civilization<\/word>","Erik attacks and extracts Klaue<\/word>","Ross is gravely injured protecting Nakia<\/word>","T'Challa takes Ross to Wakanda<\/word>","their technology can save him<\/word>","Erik Stevens<\/word>","Okoye<\/word>","Nakia<\/word>","When Klaue and his accomplice<\/strong> Erik Stevens<\/strong> steal a Wakandan artifact<\/strong> from a London museum<\/strong>, T'Challa<\/strong>'s friend and Okoye's lover<\/strong> W'Kabi<\/strong> urges him to bring Klaue back alive<\/strong>. T'Challa<\/strong>, Okoye<\/strong>, and Nakia<\/strong> travel to Busan, South Korea<\/strong>, where Klaue plans to sell the artifact<\/strong> to CIA agent<\/strong> Everett K. Ross<\/strong>. A firefight erupts, and Klaue attempts to flee<\/strong> but is caught by T'Challa<\/strong>, who reluctantly releases him to Ross' custody<\/strong>. Klaue tells Ross that Wakanda's international image<\/strong> is a front for a technologically advanced civilization<\/strong>. Erik attacks and extracts Klaue<\/strong> as Ross is gravely injured protecting Nakia<\/strong>. Rather than pursue Klaue, T'Challa takes Ross to Wakanda<\/strong>, where their technology can save him<\/strong>.<\/phrase>","Shuri heals Ross<\/word>","T'Challa<\/word>","N'Jobu<\/word>","N'Jobu planned to share<\/word>","Wakanda's technology<\/word>","people of African descent<\/word>","help them conquer their oppressors<\/word>","T'Chaka to kill him<\/word>","Zuri to lie<\/word>","N'Jobu had disappeared<\/word>","American son<\/word>","maintain the lie<\/word>","boy grew up to be Stevens<\/word>","U.S. black ops soldier<\/word>","adopted the name Killmonger<\/word>","Killmonger kills Klaue<\/word>","takes his body to Wakanda<\/word>","brought before the tribal elders<\/word>","revealing his identity<\/word>","N'Jadaka<\/word>","claim to the throne<\/word>","Killmonger challenges T'Challa<\/word>","kills Zuri<\/word>","defeats T'Challa<\/word>","hurls him over a waterfall<\/word>","Killmonger ingests the heart-shaped herb<\/word>","orders the rest incinerated<\/word>","Nakia extracts one first<\/word>","W'Kabi<\/word>","his army<\/word>","distribute shipments of Wakandan weapons<\/word>","operatives around the world<\/word>","Zuri<\/word>","Killmonger<\/word>","While Shuri heals Ross<\/strong>, T'Challa<\/strong> confronts Zuri<\/strong> about N'Jobu<\/strong>. Zuri<\/strong> explains that N'Jobu planned to share<\/strong> Wakanda's technology<\/strong> with people of African descent<\/strong> around the world to help them conquer their oppressors<\/strong>. As T'Chaka arrested N'Jobu<\/strong>, the latter attacked Zuri<\/strong> and forced T'Chaka to kill him<\/strong>. T'Chaka ordered Zuri to lie<\/strong> that N'Jobu had disappeared<\/strong> and left behind N'Jobu<\/strong>'s American son<\/strong> to maintain the lie<\/strong>. This boy grew up to be Stevens<\/strong>, a U.S. black ops soldier<\/strong> who adopted the name Killmonger<\/strong>. Meanwhile, Killmonger kills Klaue<\/strong> and takes his body to Wakanda<\/strong>. He is brought before the tribal elders<\/strong>, revealing his identity<\/strong> to be N'Jadaka<\/strong> and claim to the throne<\/strong>. Killmonger challenges T'Challa<\/strong> to ritual combat, where he kills Zuri<\/strong>, defeats T'Challa<\/strong>, and hurls him over a waterfall<\/strong> to his presumed death. Killmonger ingests the heart-shaped herb<\/strong> and orders the rest incinerated<\/strong>, but Nakia extracts one first<\/strong>. Killmonger<\/strong>, supported by W'Kabi<\/strong> and his army<\/strong>, prepares to distribute shipments of Wakandan weapons<\/strong> to operatives around the world<\/strong>.<\/phrase>","flee to the Jabari Tribe for aid<\/word>","find a comatose T'Challa<\/word>","rescued by the Jabari<\/word>","repayment<\/word>","sparing M'Baku<\/word>","Healed by Nakia's herb<\/word>","T'Challa returns to fight Killmonger<\/word>","dons his own Black Panther suit<\/word>","W'Kabi<\/word>","his army<\/word>","fight Shuri, Nakia, and the Dora Milaje<\/word>","M'Baku<\/word>","Jabari<\/word>","reinforce T'Challa<\/word>","W'Kabi and his army stand down<\/word>","Wakanda's vibranium mine<\/word>","T'Challa<\/word>","disrupts<\/word>","Killmonger's suit<\/word>","stabs him<\/word>","Killmonger refuses to be healed<\/word>","choosing to die a free man<\/word>","rather than be incarcerated<\/word>","Killmonger dies peacefully<\/word>","Nakia<\/word>","Shuri<\/word>","Ramonda<\/word>","arrive<\/word>","Okoye<\/word>","Nakia<\/strong>, Shuri<\/strong>, Ramonda<\/strong>, and Ross flee to the Jabari Tribe for aid<\/strong>. They find a comatose T'Challa<\/strong>, rescued by the Jabari<\/strong> in repayment<\/strong> for sparing M'Baku<\/strong>'s life. Healed by Nakia's herb<\/strong>, T'Challa returns to fight Killmonger<\/strong>, who dons his own Black Panther suit<\/strong>. W'Kabi<\/strong> and his army<\/strong> fight Shuri, Nakia, and the Dora Milaje<\/strong>, while Ross remotely pilots a jet and shoots down planes carrying the vibranium weapons. M'Baku<\/strong> and the Jabari<\/strong> arrive<\/strong> to reinforce T'Challa<\/strong>. Confronted by Okoye<\/strong>, W'Kabi and his army stand down<\/strong>. Fighting in Wakanda's vibranium mine<\/strong>, T'Challa<\/strong> disrupts<\/strong> Killmonger's suit<\/strong> and stabs him<\/strong>. Killmonger refuses to be healed<\/strong>, choosing to die a free man<\/strong> rather than be incarcerated<\/strong>; T'Challa<\/strong> takes him to the waterfall where they fought, where Killmonger dies peacefully<\/strong>.<\/phrase>","T'Challa establishes an outreach center<\/word>","N'Jobu<\/word>","run by Nakia and Shuri<\/word>","T'Challa<\/word>","appears before the United Nations<\/word>","reveal Wakanda's true nature<\/word>","Shuri helps Bucky Barnes with his recovery<\/word>","T'Challa establishes an outreach center<\/strong> at the building where N'Jobu<\/strong> died, to be run by Nakia and Shuri<\/strong>. In a mid-credits scene, T'Challa<\/strong> appears before the United Nations<\/strong> to reveal Wakanda's true nature<\/strong> to the world. In a post-credits scene, Shuri helps Bucky Barnes with his recovery<\/strong>.<\/phrase>"]; var currentPosition = 0; var totalPositions = 0; var timePerWord = 1500; var timePerPhraseWord = 120 var readAheadPlayerTimer; var autoPlay = true; var setMinimized = false; var wordSpeedOptions = {'Slower':2000,'Moderate':1200,'Fast':800}; var phraseSpeedOptions = {'Slower':280,'Moderate':200,'Fast':80}; var defaultWordSpeedOption = 'Moderate'; var defaultPhraseSpeedOption = 'Moderate'; var logToLTI = false; $(window).load(function(){ totalPositions = presentation.length; if (totalPositions > 0){ $('body').prepend('
'); $('body').prepend('
'); $('#read_ahead_player').prepend('
'); initializeReadAheadControls(); initializeReadAheadSlider(); initializeReadAheadSpeedOptions(); currentReadAheadControls(); resumeReadAheadPlayback(); } }); $(document).keyup(function(e){ switch(e.which) { case 37: pauseReadAheadPresentation(); priorReadAheadPresentationItem(); break; case 39: pauseReadAheadPresentation(); nextReadAheadPresentationItem(); break; default: break; } }); function initializeReadAheadControls(){ var s = ''; s += ''; s += ''; s += ''; s += '
'; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += '
'; $('#read_ahead_player').append(s); } function initializeReadAheadSlider(){ var s = ''; s += '
'; s += '
'; s += '
'; $('#read_ahead_controls').prepend(s); updateReadAheadSliderPosition(); } function initializeReadAheadSpeedOptions(){ var s = '
'; s += '
'; s += ' Word Speed
'; s += '
'; optionCount = 0; for (index in wordSpeedOptions) { optionCount++; } optionWidth = 100 / optionCount; for (index in wordSpeedOptions) { var option = wordSpeedOptions[index]; if (index == defaultWordSpeedOption) { s += ''; updateReadAheadWordSpeed(option); } else { s += ''; } } s += '
'; s += '
'; s += '
'; s += ' Phrase Speed
'; s += '
'; optionCount = 0; for (index in phraseSpeedOptions) { optionCount++; } optionWidth = 100 / optionCount; for (index in phraseSpeedOptions) { var option = phraseSpeedOptions[index]; if (index == defaultWordSpeedOption) { s += ''; updateReadAheadPhraseSpeed(option); } else { s += ''; } } s += '
'; s += '
'; s += '
'; $('#read_ahead_controls').append(s); } function updateReadAheadWordSpeed(microseconds,sender) { microseconds = microseconds != undefined && microseconds > 0 ? microseconds : 0; if (microseconds > 0) { timePerWord = microseconds; } if (sender!=undefined) { $('#slider_control_word_speed').find('a').removeClass('current_speed'); $(sender).addClass('current_speed'); } logReadAheadPlayerAction('updateReadAheadWordSpeed','Presentation',microseconds); } function updateReadAheadPhraseSpeed(microseconds,sender) { microseconds = microseconds != undefined && microseconds > 0 ? microseconds : 0; if (microseconds > 0 ) { timePerPhraseWord = microseconds; } if (sender!=undefined) { $('#slider_control_phrase_speed').find('a').removeClass('current_speed'); $(sender).addClass('current_speed'); } logReadAheadPlayerAction('updateReadAheadPhraseSpeed','Presentation',microseconds); } function updateReadAheadSliderPosition(){ var currentSliderBarWidth = 100 - (100 / totalPositions * (currentPosition + 1)); $('#readAheadSliderBar').css('width',currentSliderBarWidth+'%'); } function currentReadAheadControls(){ $('#read_ahead_player_pause_play').show(); if (currentPosition < totalPositions - 1) { $('#read_ahead_player_next_word').removeClass('disabled'); } else { $('#read_ahead_player_next_word').addClass('disabled'); } if (currentPosition > 0) { $('#read_ahead_player_previous_word').removeClass('disabled'); } else { $('#read_ahead_player_previous_word').addClass('disabled'); } } function restartReadAheadPresentation(){ currentPosition = 0; logReadAheadPlayerAction('restartReadAheadPresentation','Presentation',''); resumeReadAheadPlayback(); } function resumeReadAheadPlayback(){ $('.fa-repeat').removeClass('fa-repeat').addClass('fa-play'); $('#read_ahead_player_pause_play').each(function(){ $(this).find('.fa-play').removeClass('fa-play').addClass('fa-pause'); $(this).off('click'); $(this).attr('onclick','pauseReadAheadPresentation()'); }); logReadAheadPlayerAction('resumeReadAheadPlayback','Presentation',''); playReadAheadPresentation(); } function pauseReadAheadPresentation(){ $('#read_ahead_player_pause_play').each(function(){ $(this).find('.fa-pause').removeClass('fa-pause').addClass('fa-play'); $(this).off('click'); $(this).attr('onclick','resumeReadAheadPlayback()'); }); logReadAheadPlayerAction('pauseReadAheadPresentation','Presentation',''); read_ahead_pause(); } function endReadAheadPresentation(){ $('.fa-play').removeClass('fa-play').addClass('fa-repeat'); $('.fa-pause').removeClass('fa-pause').addClass('fa-repeat'); $('#read_ahead_player_pause_play').each(function(){ $(this).off('click'); $(this).attr('onclick','restartReadAheadPresentation()'); }); logReadAheadPlayerAction('endReadAheadPresentation','Presentation',''); logLTIEndPresentation(); } function playReadAheadPresentation(){ autoPlay=true; currentPosition--; logReadAheadPlayerAction('playReadAheadPresentation','Presentation',''); nextReadAheadPresentationItem(); } function startReadAheadStepper(timeDisplayWord){ clearInterval(readAheadPlayerTimer); readAheadPlayerTimer = setTimeout(function() { read_ahead_step(); },timeDisplayWord); } function stopReadAheadStepper(){ clearInterval(readAheadPlayerTimer); } function read_ahead_step(){ if (autoPlay) { nextReadAheadPresentationItem(); } } function read_ahead_pause(){ autoPlay=false; stopReadAheadStepper(); } function showReadAheadPresentationItem(index){ currentPosition = index; currentPresentationItem = presentation[currentPosition] != undefined ? presentation[currentPosition].trim() : ""; if (currentPresentationItem != "") { currentItemWordCount = presentation[currentPosition].replace("\n","").split(" ").length; if (currentPresentationItem.startsWith("")){ startReadAheadStepper(currentItemWordCount*timePerWord); $('#read_ahead_player_field').html('
'+currentPresentationItem+'
'); logReadAheadPlayerAction('showReadAheadPresentationItem','Word',currentPresentationItem); } else { startReadAheadStepper(currentItemWordCount*timePerPhraseWord); $('#read_ahead_player_field').html('
'+currentPresentationItem.replace("\n","
")+'
'); logReadAheadPlayerAction('showReadAheadPresentationItem','Phrase',''); } } else { if (currentPosition < totalPositions) { nextReadAheadPresentationItem(); } else { endReadAheadPresentation(); read_ahead_minimize(); } } currentReadAheadControls(); updateReadAheadSliderPosition(); saveReadAheadPosition(); } function priorReadAheadPresentationItem(){ stopReadAheadStepper(); logReadAheadPlayerAction('priorReadAheadPresentationItem','Controls',''); showReadAheadPresentationItem(currentPosition-1); } function nextReadAheadPresentationItem(){ stopReadAheadStepper(); logReadAheadPlayerAction('nextReadAheadPresentationItem','Controls',''); showReadAheadPresentationItem(currentPosition+1); } function read_ahead_playAgain(){ currentWordIndex = 0; logReadAheadPlayerAction('read_ahead_playAgain','Controls',''); playReadAheadPresentation(); } function read_ahead_minimize(){ setMinimized = true; logReadAheadPlayerAction('read_ahead_minimize','Controls',''); read_ahead_switch_min_max(); } function read_ahead_maximize(){ setMinimized = false; logReadAheadPlayerAction('read_ahead_maximize','Controls',''); read_ahead_switch_min_max(); } function read_ahead_switch_min_max(forceSwitch){ forceSwitch = forceSwitch != undefined ? forceSwitch : false; if (forceSwitch) { setMinimized = !setMinimized; } if (setMinimized) { $('#read_ahead_player_back').fadeOut(); $('#read_ahead_player').addClass('minimize'); $('.player-icons .fa-stack').removeClass('fa-lg').addClass('fa-sm'); $('.player-icons .fa-minus').removeClass('fa-minus').addClass('fa-expand'); logReadAheadPlayerAction('read_ahead_switch_min_max','Min',''); //$('#read_ahead_player_max_min').each(function(){ // $(this).off('click'); // $(this).attr('onclick','read_ahead_maximize()'); //}); } else { $('#read_ahead_player_back').fadeIn(); $('#read_ahead_player').removeClass('minimize'); $('.player-icons .fa-stack').removeClass('fa-sm').addClass('fa-lg'); $('.player-icons .fa-expand').removeClass('fa-expand').addClass('fa-minus'); logReadAheadPlayerAction('read_ahead_switch_min_max','Max',''); //$('#read_ahead_player_max_min').each(function(){ // $(this).off('click'); // $(this).attr('onclick','read_ahead_minimize()'); //}); } } function saveReadAheadPosition(){ $.ajax({ type:'POST', url:'/ajax/save_user_presentation_position.php', data: { 'id':2336, 'position': currentPosition } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); } function logLTIEndPresentation(action) { if (!logToLTI) { return; } $.ajax({ type:'POST', url:'/lti/presentationEnded.php', data: { 'documentId':2336, 'userId':0, } }) } function logReadAheadPlayerAction(action,area,details){ var d = new Date(); var t = d.getTime(); action = action != undefined ? action.trim() : 'UNKNOWN'; area = area != undefined ? area.trim() : ''; details = details != undefined ? details : ''; // If we are about to show a new word, increase the number of keywords // reinforced so we can log that for the Dashboard page. if (area == 'Word') { window.keywordCount++; } $.ajax({ type:'POST', url:'/logging/logPlayerAction.php', data: { 'documentId':2336, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }