var presentation = ["Big Hero 6<\/word>","3D computer animated superhero film<\/word>","Marvel Comics<\/word>","late brother's healthcare provider robot<\/word>","forms a superhero team<\/word>","combat a masked villain<\/word>","Walt Disney Animation Studios<\/word>","superhero team<\/word>","same name<\/word>","film<\/word>","Hiro Hamada<\/word>","young robotics prodigy<\/word>","Baymax<\/word>","Big Hero 6<\/strong> is a 2014 American 3D computer animated superhero film<\/strong> produced by Walt Disney Animation Studios<\/strong>. It is loosely based on the superhero team<\/strong> of the same name<\/strong> by Marvel Comics<\/strong>. The film<\/strong> tells the story of Hiro Hamada<\/strong>, a young robotics prodigy<\/strong>, and Baymax<\/strong>, his late brother's healthcare provider robot<\/strong>, who forms a superhero team<\/strong> to combat a masked villain<\/strong>.<\/phrase>","14-year-old high school graduate<\/word>","robotics genius<\/word>","San Fransokyo<\/word>","gambling in robot fights<\/word>","redirect Hiro<\/word>","San Fransokyo Institute of Technology<\/word>","Hiro meets Tadashi's friends<\/word>","Hiro decides to apply to the university<\/word>","signs up for the school's showcase<\/word>","presents his project<\/word>","microbots<\/word>","link together<\/word>","Hiro declines an offer<\/word>","market the microbots<\/word>","Callaghan accepts him into the school<\/word>","massive fire suddenly breaks out in the showcase hall<\/word>","Tadashi rushes in to save Callaghan<\/word>","only person left inside<\/word>","building explodes moments later<\/word>","Hiro Hamada<\/word>","futuristic city<\/word>","free time<\/word>","older brother<\/word>","Tadashi<\/word>","research lab<\/word>","Go Go<\/word>","Wasabi<\/word>","Honey Lemon<\/word>","Fred<\/word>","Baymax<\/word>","inflatable healthcare robot<\/word>","Professor Robert Callaghan<\/word>","head<\/word>","robotics program<\/word>","tiny robots<\/word>","any arrangement<\/word>","neurocranial transmitter<\/word>","Alistair Krei<\/word>","CEO of Krei Tech<\/word>","Hiro Hamada<\/strong> is a 14-year-old high school graduate<\/strong>, and robotics genius<\/strong> living in the futuristic city<\/strong> of San Fransokyo<\/strong> who spends much of his free time<\/strong> gambling in robot fights<\/strong>. To redirect Hiro<\/strong>, his older brother<\/strong> Tadashi<\/strong> takes him to the research lab<\/strong> at the San Fransokyo Institute of Technology<\/strong>, where Hiro meets Tadashi's friends<\/strong> - Go Go<\/strong>, Wasabi<\/strong>, Honey Lemon<\/strong>, and Fred<\/strong> - Baymax<\/strong>, the inflatable healthcare robot<\/strong> that Tadashi<\/strong> created, and Professor Robert Callaghan<\/strong>, the head<\/strong> of the university's robotics program<\/strong>. Amazed, Hiro decides to apply to the university<\/strong>. To enroll, he signs up for the school's showcase<\/strong> and presents his project<\/strong>, microbots<\/strong>, swarms of tiny robots<\/strong> that can link together<\/strong> in any arrangement<\/strong> imaginable using a neurocranial transmitter<\/strong>. At the fair, Hiro declines an offer<\/strong> from Alistair Krei<\/strong>, CEO of Krei Tech<\/strong>, to market the microbots<\/strong>, and Callaghan accepts him into the school<\/strong>. As the Hamada family leaves to celebrate Hiro's success, a massive fire suddenly breaks out in the showcase hall<\/strong> and Tadashi rushes in to save Callaghan<\/strong>, the only person left inside<\/strong>. The building explodes moments later<\/strong>.<\/phrase>","Hiro, mourning Tadashi's death<\/word>","reactivates Baymax<\/word>","find Hiro's only remaining microbot<\/word>","follow it to an abandoned warehouse<\/word>","mass-producing the microbots<\/word>","attacks them with the microbot swarms<\/word>","fire that claimed his brother<\/word>","may not have been accidental<\/word>","started by the man in the kabuki mask<\/word>","theft of the microbots<\/word>","Seeking vengeance<\/word>","equips Baymax<\/word>","armor<\/word>","track the masked man to the docks<\/word>","masked man chases the group<\/word>","Fred's mansion<\/word>","combat the villain<\/word>","discover<\/word>","man<\/word>","Kabuki mask<\/word>","escape<\/word>","cover<\/word>","battle chip<\/word>","various karate moves<\/word>","Go Go<\/word>","Wasabi<\/word>","Honey Lemon<\/word>","Fred<\/word>","arrive<\/word>","call<\/word>","Baymax<\/word>","six escape<\/word>","decide<\/word>","form<\/word>","high-tech superhero team<\/word>","Two weeks later, Hiro, mourning Tadashi's death<\/strong>, inadvertently reactivates Baymax<\/strong>. The two find Hiro's only remaining microbot<\/strong> and follow it to an abandoned warehouse<\/strong>. There they discover<\/strong> that someone has been mass-producing the microbots<\/strong>. A man<\/strong> wearing a Kabuki mask<\/strong> attacks them with the microbot swarms<\/strong>. After they escape<\/strong>, Hiro suspects that the fire that claimed his brother<\/strong> may not have been accidental<\/strong> and in fact started by the man in the kabuki mask<\/strong> to cover<\/strong> the theft of the microbots<\/strong>. Seeking vengeance<\/strong>, Hiro equips Baymax<\/strong> with armor<\/strong> and a battle chip<\/strong> containing various karate moves<\/strong> and they track the masked man to the docks<\/strong>. Go Go<\/strong>, Wasabi<\/strong>, Honey Lemon<\/strong>, and Fred<\/strong> arrive<\/strong>, responding to a call<\/strong> from Baymax<\/strong>, and the masked man chases the group<\/strong>. The six escape<\/strong> to Fred's mansion<\/strong>, where they decide<\/strong> to form<\/strong> a high-tech superhero team<\/strong> to combat the villain<\/strong>.<\/phrase>","group tracks the masked man<\/word>","suspect to be Krei<\/word>","an abandoned Krei Tech laboratory<\/word>","test pilot was lost in an accident<\/word>","group subdues him<\/word>","knocks off his mask<\/word>","revealing him to be Callaghan<\/word>","Enraged at the discovery that Tadashi had died in vain<\/word>","Hiro removes Baymax's healthcare chip<\/word>","orders him to kill Callaghan<\/word>","Honey re-installs the healthcare chip<\/word>","preventing Baymax<\/word>","Callaghan barely escapes<\/word>","Hiro leaves with Baymax<\/word>","intent on avenging Tadashi<\/word>","teleportation research<\/word>","masked man attacks<\/word>","Tadashi<\/word>","kill order<\/word>","The group tracks the masked man<\/strong>, whom they suspect to be Krei<\/strong>, to an abandoned Krei Tech laboratory<\/strong> that was used for teleportation research<\/strong> until a test pilot was lost in an accident<\/strong>. The masked man attacks<\/strong>, but the group subdues him<\/strong> and knocks off his mask<\/strong>, revealing him to be Callaghan<\/strong>, who shielded himself from the explosion that killed Tadashi<\/strong>. Enraged at the discovery that Tadashi had died in vain<\/strong>, Hiro removes Baymax's healthcare chip<\/strong> and orders him to kill Callaghan<\/strong>. Honey re-installs the healthcare chip<\/strong> at the last second, preventing Baymax<\/strong> from carrying out the kill order<\/strong>. Callaghan barely escapes<\/strong>, recovering the mask as he does so, and Hiro leaves with Baymax<\/strong>, intent on avenging Tadashi<\/strong>.<\/phrase>","Hiro repairs the robot<\/word>","tries to remove the healthcare chip<\/word>","Baymax blocks his access port<\/word>","convincing Hiro<\/word>","video of Tadashi<\/word>","numerous tests during Baymax's development<\/word>","demonstration of Tadashi's benevolence and legacy<\/word>","Hiro remorsefully apologizes<\/word>","reassure him<\/word>","they will catch Callaghan the right way<\/word>","Back home, Hiro repairs the robot<\/strong>'s damaged scanners and tries to remove the healthcare chip<\/strong> again, but Baymax blocks his access port<\/strong>, convincing Hiro<\/strong> with video of Tadashi<\/strong> running numerous tests during Baymax's development<\/strong> as a demonstration of Tadashi's benevolence and legacy<\/strong>. Hiro remorsefully apologizes<\/strong> to his friends, who reassure him<\/strong> they will catch Callaghan the right way<\/strong>.<\/phrase>","Video footage<\/word>","laboratory accident<\/word>","lost test pilot<\/word>","Callaghan's daughter<\/word>","Callaghan is seeking revenge on Krei<\/word>","Callaghan interrupts Krei<\/word>","attempts to destroy his headquarters<\/word>","team deprives Callaghan of his microbots and the mask<\/word>","Baymax detects Abigail alive inside<\/word>","leaps into the portal with Hiro to rescue her<\/word>","find Abigail in hyper-sleep<\/word>","Baymax is struck by debris<\/word>","sacrifice himself<\/word>","Baymax activates his armor's rocket fist<\/word>","asks Hiro if he is satisfied with his care<\/word>","deactivate him<\/word>","Hiro tearfully agrees<\/word>","Baymax fires his rocket fist<\/word>","propelling Hiro and Abigail back through the portal<\/word>","Abigail is taken to the hospital<\/word>","Callaghan is forcibly arrested<\/word>","Abigail<\/word>","Video footage<\/strong> from the laboratory accident<\/strong> reveals that the lost test pilot<\/strong> was Callaghan's daughter<\/strong>, Abigail<\/strong>, meaning that Callaghan is seeking revenge on Krei<\/strong>. Callaghan interrupts Krei<\/strong> at a public event and attempts to destroy his headquarters<\/strong> using Krei's teleportation portal. After a lengthy battle, the team deprives Callaghan of his microbots and the mask<\/strong>, saving Krei, but the portal remains active. Baymax detects Abigail alive inside<\/strong> and leaps into the portal with Hiro to rescue her<\/strong>. They find Abigail in hyper-sleep<\/strong>, but Baymax is struck by debris<\/strong> on the way back out, disabling his thrusters. With no other option but to sacrifice himself<\/strong>, Baymax activates his armor's rocket fist<\/strong> and asks Hiro if he is satisfied with his care<\/strong> in order to deactivate him<\/strong>. Hiro tearfully agrees<\/strong> and Baymax fires his rocket fist<\/strong> before deactivating, propelling Hiro and Abigail back through the portal<\/strong> before it closes. Abigail is taken to the hospital<\/strong> while the remorseful Callaghan is forcibly arrested<\/strong>.<\/phrase>","Hiro discovers Baymax's health care chip<\/word>","rebuilds Baymax's body<\/word>","keeps his memories and emotions<\/word>","he and Hiro share a hug<\/word>","university awards Hiro a grant<\/word>","dedicates a building in Tadashi's honor<\/word>","Hiro, Baymax and their friends<\/word>","continue protecting the city<\/word>","Some time later, Hiro discovers Baymax's health care chip<\/strong> clenched in the rocket fist. He rebuilds Baymax's body<\/strong>, who keeps his memories and emotions<\/strong> due to his health care chip, and he and Hiro share a hug<\/strong>. The university awards Hiro a grant<\/strong> and dedicates a building in Tadashi's honor<\/strong>, and Hiro, Baymax and their friends<\/strong> continue protecting the city<\/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':2306, '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':2306, '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':2306, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }