var presentation = ["Aquaman<\/word>","superhero film<\/word>","DC Comics character<\/word>","sixth film<\/word>","DC Extended Universe<\/word>","lead the underwater kingdom<\/word>","Atlantis<\/word>","stop his half-brother<\/word>","King Orm<\/word>","uniting<\/word>","seven underwater kingdoms<\/word>","surface world<\/word>","Aquaman<\/strong> is a 2018 American superhero film<\/strong> based on the DC Comics character<\/strong> of the same name. It is the sixth film<\/strong> in the DC Extended Universe<\/strong>. It follows Aquaman<\/strong>, who sets out to lead the underwater kingdom<\/strong> of Atlantis<\/strong> and stop his half-brother<\/strong>, King Orm<\/strong> from uniting<\/strong> the seven underwater kingdoms<\/strong> against the surface world<\/strong>.<\/phrase>","lighthouse keeper<\/word>","Thomas Curry<\/word>","rescues<\/word>","Atlanna<\/word>","queen of the underwater kingdom<\/word>","Atlantis<\/word>","fall in love<\/word>","have a son named Arthur<\/word>","power to communicate<\/word>","sea creatures<\/word>","Atlantean soldiers<\/word>","sent to retrieve Atlanna<\/word>","fled her arranged marriage<\/word>","forced to abandon her family<\/word>","returns to Atlantis<\/word>","entrusting her advisor<\/word>","Nuidis Vulko<\/word>","train Arthur<\/word>","Arthur rejects Atlantis<\/word>","Atlanna was executed<\/word>","loving a human<\/word>","having a half-breed son<\/word>","Maine<\/word>","In 1985 Maine<\/strong>, lighthouse keeper<\/strong> Thomas Curry<\/strong> rescues<\/strong> Atlanna<\/strong>, the queen of the underwater kingdom<\/strong> of Atlantis<\/strong>, during a storm. They fall in love<\/strong> and have a son named Arthur<\/strong>, who has the power to communicate<\/strong> with sea creatures<\/strong>. When Atlantean soldiers<\/strong> are sent to retrieve Atlanna<\/strong>, who fled her arranged marriage<\/strong> in Atlantis<\/strong>, she is forced to abandon her family<\/strong> and returns to Atlantis<\/strong>, entrusting her advisor<\/strong>, Nuidis Vulko<\/strong>, to train Arthur<\/strong>. Becoming a skilled warrior, Arthur rejects Atlantis<\/strong> upon learning that Atlanna was executed<\/strong> for loving a human<\/strong> and having a half-breed son<\/strong>.<\/phrase>","present day<\/word>","after the death of Steppenwolf<\/word>","confronts pirates<\/word>","leader<\/word>","Jesse Kane<\/word>","killed<\/word>","his son David<\/word>","vows revenge<\/word>","Orm Marius<\/word>","King of Atlantis<\/word>","Arthur's half-brother<\/word>","attempts to convince<\/word>","King Nereus of Xebel<\/word>","unite Atlantis<\/word>","attack<\/word>","surface world<\/word>","if Orm unites all four kingdoms<\/word>","receive the title<\/word>","Ocean Master<\/word>","commander<\/word>","most powerful force<\/word>","Nereus to join forces<\/word>","In the present day<\/strong>, sometime after the death of Steppenwolf<\/strong>, Arthur confronts pirates<\/strong> hijacking a Russian submarine. Their leader<\/strong>, Jesse Kane<\/strong>, is killed<\/strong> in after failing to kill Arthur. And his son David<\/strong> vows revenge<\/strong>. Orm Marius<\/strong>, King of Atlantis<\/strong> and Arthur's half-brother<\/strong>, attempts to convince<\/strong> King Nereus of Xebel<\/strong> to help unite Atlantis<\/strong> and attack<\/strong> the surface world<\/strong> for polluting the oceans. Nereus notes that if Orm unites all four kingdoms<\/strong>, he will receive the title<\/strong> of Ocean Master<\/strong>, commander<\/strong> of the most powerful force<\/strong> on the planet. A Russian submarine attacks and is destroyed by Orm, convincing Nereus to join forces<\/strong> to defend the oceans.<\/phrase>","Nereus' daughter<\/word>","Mera<\/word>","betrothed to Orm<\/word>","refuses to aid them<\/word>","ask Arthur for help<\/word>","He declines<\/word>","Mera earns his trust<\/word>","saving Thomas<\/word>","Arthur reluctantly accompanies Mera<\/word>","rendezvous with Vulko<\/word>","find the Trident of Atlan<\/word>","magic artifact<\/word>","Atlantis' first ruler<\/word>","reclaim his rightful place as king<\/word>","ambushed<\/word>","Arthur is captured<\/word>","tsunami<\/word>","Nereus' daughter<\/strong> Mera<\/strong>, betrothed to Orm<\/strong>, refuses to aid them<\/strong> and journeys to the surface to ask Arthur for help<\/strong>. He declines<\/strong>, but Mera earns his trust<\/strong> by saving Thomas<\/strong> from a tsunami<\/strong> summoned by Orm. Arthur reluctantly accompanies Mera<\/strong> to a rendezvous with Vulko<\/strong>, who urges Arthur to find the Trident of Atlan<\/strong>, a magic artifact<\/strong> of Atlantis' first ruler<\/strong>, to reclaim his rightful place as king<\/strong>. They are ambushed<\/strong> by Orm's men, and Arthur is captured<\/strong>.<\/phrase>","presented to Orm<\/word>","blames him<\/word>","Atlanna's death<\/word>","offers Arthur<\/word>","opportunity to leave forever<\/word>","Arthur challenges him to a duel<\/word>","Orm gains the upper hand<\/word>","nearly kills Arthur<\/word>","Mera rescues him<\/word>","Mera<\/word>","Kingdom of the Deserters<\/word>","hidden under<\/word>","Sahara desert<\/word>","Sicily, Italy<\/word>","retrieve the trident's coordinates<\/word>","Arthur is chained and presented to Orm<\/strong>, who blames him<\/strong> and the surface for Atlanna's death<\/strong>. He offers Arthur<\/strong> an opportunity to leave forever<\/strong>, but Arthur challenges him to a duel<\/strong> in a ring of underwater lava. Orm gains the upper hand<\/strong> and nearly kills Arthur<\/strong> before Mera rescues him<\/strong>. Arthur and Mera<\/strong> journey to the fallen Kingdom of the Deserters<\/strong> hidden under<\/strong> the Sahara desert<\/strong>, where the trident was forged, and unlock a holographic message that leads them to Sicily, Italy<\/strong>, where they retrieve the trident's coordinates<\/strong>.<\/phrase>","Orm meets David<\/word>","submarine that attacked<\/word>","hired by Orm<\/word>","stage an attack<\/word>","win Nereus' support<\/word>","Orm gives David<\/word>","prototype Atlantean battle suit<\/word>","imprisons Vulko<\/word>","coerces<\/word>","Kingdom of the Fishermen<\/word>","pledge their allegiance to him<\/word>","killing their king<\/word>","He declines<\/word>","forcing the queen and princess<\/word>","assemble their forces<\/word>","Orm meets David<\/strong>, revealing that the submarine that attacked<\/strong> was the one hijacked by David, hired by Orm<\/strong> to stage an attack<\/strong> from the surface to win Nereus' support<\/strong>. Orm gives David<\/strong> a prototype Atlantean battle suit<\/strong> to kill Arthur, imprisons Vulko<\/strong>, and coerces<\/strong> the Atlantean Kingdom of the Fishermen<\/strong> to pledge their allegiance to him<\/strong> by killing their king<\/strong> after He declines<\/strong> and forcing the queen and princess<\/strong>, who is next in line for the throne, to assemble their forces<\/strong> out of fear.<\/phrase>","David rechristens himself as Black Manta<\/word>","ambushes Arthur and Mera<\/word>","injuring Arthur<\/word>","Mera<\/word>","nurses Arthur's wounds<\/word>","seek the trident<\/word>","embrace his destiny as king<\/word>","fend off<\/word>","amphibious monsters<\/word>","wormhole<\/word>","transports them<\/word>","uncharted sea<\/word>","center of the Earth<\/word>","reunited with Atlanna<\/word>","sacrificed to the Trench<\/word>","survived and escaped<\/word>","An armored David rechristens himself as Black Manta<\/strong> and ambushes Arthur and Mera<\/strong> in Sicily, grievously injuring Arthur<\/strong> before he is thrown off a cliff. Mera<\/strong> nurses Arthur's wounds<\/strong> as they seek the trident<\/strong> and encourages him to embrace his destiny as king<\/strong>. At their destination, Arthur and Mera<\/strong> fend off<\/strong> amphibious monsters<\/strong> of the Trench, and a wormhole<\/strong> transports them<\/strong> to an uncharted sea<\/strong> at the center of the Earth<\/strong>. They are reunited with Atlanna<\/strong>, who, 20 years earlier, was sacrificed to the Trench<\/strong> for having Arthur but had survived and escaped<\/strong> to the uncharted sea<\/strong>, alive and well.<\/phrase>","Arthur faces the Karathen<\/word>","mythical leviathan<\/word>","keeper of the trident<\/word>","voices his determination<\/word>","protect<\/word>","Atlantis<\/word>","reclaiming the trident<\/word>","grants him control<\/word>","seven seas<\/word>","Orm and his allies lead an army<\/word>","crustacean forces<\/word>","Kingdom of the Brine<\/word>","Orm declares himself Ocean Master<\/word>","Mera<\/word>","lead an army of marine creatures<\/word>","Orm's followers embrace Arthur<\/word>","true king upon<\/word>","Arthur defeats Orm<\/word>","spares his life<\/word>","Orm accepts his fate<\/word>","discovering<\/word>","Arthur has rescued their mother<\/word>","Atlanna reunites with Thomas<\/word>","Arthur ascends to the throne<\/word>","Mera by his side<\/word>","Arthur faces the Karathen<\/strong>, a mythical leviathan<\/strong> and keeper of the trident<\/strong>, and voices his determination<\/strong> to protect<\/strong> both Atlantis<\/strong> and the surface, proving his worth and reclaiming the trident<\/strong>, which grants him control<\/strong> over the seven seas<\/strong>. Orm and his allies lead an army<\/strong> against the crustacean forces<\/strong> of the Kingdom of the Brine<\/strong> to complete Orm's preparations. As Orm declares himself Ocean Master<\/strong>, Arthur and Mera<\/strong>, with the assistance of Karathen and the Trench, lead an army of marine creatures<\/strong> against him. Orm's followers embrace Arthur<\/strong> as the true king upon<\/strong> learning he wields Atlan's trident. Arthur defeats Orm<\/strong> in combat but spares his life<\/strong>, and Orm accepts his fate<\/strong> after discovering<\/strong> that Arthur has rescued their mother<\/strong>. Atlanna reunites with Thomas<\/strong>, while Arthur ascends to the throne<\/strong> with Mera by his side<\/strong>.<\/phrase>","mid-credits scene<\/word>","David is rescued<\/word>","Dr. Stephen Shin<\/word>","marine scientist<\/word>","conspiracy theorist<\/word>","obsessed with Atlantis<\/word>","agrees to lead Shin<\/word>","exchange for help<\/word>","revenge on Arthur<\/word>","In a mid-credits scene<\/strong>, David is rescued<\/strong> by Dr. Stephen Shin<\/strong>, a marine scientist<\/strong> and conspiracy theorist<\/strong> obsessed with Atlantis<\/strong>, and agrees to lead Shin<\/strong> there in exchange for help<\/strong> in his revenge on Arthur<\/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':2791, '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':2791, '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':2791, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }