var presentation = ["Bumblebee<\/word>","science fiction action film<\/word>","sixth installment<\/word>","Transformers film series<\/word>","Bumblebee<\/strong> is a 2018 American science fiction action film<\/strong> centered on the Transformers character of the same name. It is the sixth installment<\/strong> of the live-action Transformers film series<\/strong>.<\/phrase>","Cybertron<\/word>","Autobot<\/word>","resistance<\/word>","Optimus Prime<\/word>","verge of losing<\/word>","civil war<\/word>","Decepticons<\/word>","prepares to evacuate the planet<\/word>","Decepticon force<\/word>","Starscream<\/word>","Soundwave<\/word>","Shockwave<\/word>","Autobot scout<\/word>","B-127<\/word>","Earth<\/word>","escape pod<\/word>","set up<\/word>","base of operations<\/word>","crash-lands<\/word>","California<\/word>","disrupting<\/word>","training exercise<\/word>","Sector 7<\/word>","secret government agency<\/word>","monitors<\/word>","extraterrestrial activity<\/word>","Colonel Jack Burns<\/word>","presumes<\/word>","B-127 to be a hostile invader<\/word>","ambushed<\/word>","Decepticon Seeker<\/word>","Blitzwing<\/word>","B-127 refuses<\/word>","reveal Optimus's whereabouts<\/word>","Blitzwing tears out his voice box<\/word>","damages his memory<\/word>","destroys Blitzwing<\/word>","B-127 flees<\/word>","Volkswagen Beetle<\/word>","On the planet Cybertron<\/strong>, the Autobot<\/strong> resistance<\/strong>, led by Optimus Prime<\/strong>, is on the verge of losing<\/strong> the civil war<\/strong> against the Decepticons<\/strong>, and prepares to evacuate the planet<\/strong>. A Decepticon force<\/strong>, led by Starscream<\/strong>, Soundwave<\/strong>, and Shockwave<\/strong>, intercepts them during the evacuation, and Optimus sends Autobot scout<\/strong> B-127<\/strong> to Earth<\/strong> in an escape pod<\/strong>, in order to set up<\/strong> a base of operations<\/strong> where the Autobots can regroup. B-127<\/strong> reaches Earth<\/strong> and crash-lands<\/strong> in California<\/strong>, disrupting<\/strong> a training exercise<\/strong> by Sector 7<\/strong>, a secret government agency<\/strong> that monitors<\/strong> extraterrestrial activity<\/strong> on Earth<\/strong>. Colonel Jack Burns<\/strong> presumes<\/strong> B-127 to be a hostile invader<\/strong> and orders his men to attack. B-127<\/strong> scans a Willys MB jeep and flees to a mine, where he is ambushed<\/strong> by Decepticon Seeker<\/strong> Blitzwing<\/strong>. When B-127 refuses<\/strong> to reveal Optimus's whereabouts<\/strong>, Blitzwing tears out his voice box<\/strong> and damages his memory<\/strong> core; yet B-127<\/strong> stabs and destroys Blitzwing<\/strong> with one of his own missiles. B-127 flees<\/strong> from the soldiers, scans a nearby 1967 Volkswagen Beetle<\/strong> and collapses from his injuries.<\/phrase>","Charlie Watson<\/word>","emotionally traumatized<\/word>","death of her father<\/word>","resentful<\/word>","mother Sally's new boyfriend<\/word>","Volkswagen Beetle<\/word>","gives it to her<\/word>","18th-birthday present<\/word>","Charlie unknowingly<\/word>","activates a homing signal<\/word>","Decepticons<\/word>","Shatter<\/word>","Dropkick<\/word>","Decepticons head to Earth<\/word>","acquire<\/word>","Earth vehicle forms<\/word>","Sector 7<\/word>","pretending to be peacekeepers<\/word>","persuade them<\/word>","capture B-127<\/word>","In 1987, teenager Charlie Watson<\/strong> is emotionally traumatized<\/strong> by the death of her father<\/strong>, and resentful<\/strong> of her mother Sally's new boyfriend<\/strong> Ron. Charlie finds a yellow Volkswagen Beetle<\/strong> in a scrapyard belonging to Hank, who gives it to her<\/strong> as an 18th-birthday present<\/strong>. When trying to start it, Charlie unknowingly<\/strong> activates a homing signal<\/strong> that is detected by Decepticons<\/strong> Shatter<\/strong> and Dropkick<\/strong> as they interrogate and slice down Cliffjumper on one of Saturn's moons. The Decepticons head to Earth<\/strong>, and acquire<\/strong> Earth vehicle forms<\/strong>. They meet Sector 7<\/strong>, pretending to be peacekeepers<\/strong>, and persuade them<\/strong> to help capture B-127<\/strong>, despite Burns' objections.<\/phrase>","Charlie attempts to fix the Beetle<\/word>","transforms into B-127<\/word>","nicknames<\/word>","Bumblebee<\/word>","unlocks a message from Optimus<\/word>","urging Bumblebee to defend Earth<\/word>","restores some of his memories<\/word>","discovered<\/word>","Charlie's neighbor<\/word>","Memo<\/word>","Bumblebee begins using songs from the radio<\/word>","communicate<\/word>","Bumblebee accidentally destroys<\/word>","Charlie's home<\/word>","Sector 7<\/word>","Sally blames Charlie<\/word>","Charlie finally expresses<\/word>","her pain over her father's death<\/word>","Decepticons<\/word>","Bumblebee is captured<\/word>","While Charlie attempts to fix the Beetle<\/strong>, it transforms into B-127<\/strong>, whom she befriends and nicknames<\/strong> \"Bumblebee<\/strong>\". She then unintentionally unlocks a message from Optimus<\/strong> urging Bumblebee to defend Earth<\/strong> in the other Autobots' absence, which restores some of his memories<\/strong>. They are discovered<\/strong> by Charlie's neighbor<\/strong> Memo<\/strong>, who agrees to protect their secret due to his feelings for Charlie, and Bumblebee begins using songs from the radio<\/strong> to communicate<\/strong>. Left alone, Bumblebee accidentally destroys<\/strong> Charlie's home<\/strong> and causes an energy spike that attracts Sector 7<\/strong>'s attention. When Sally blames Charlie<\/strong> for the destruction, Charlie finally expresses<\/strong> her pain over her father's death<\/strong> and angrily leaves with Bumblebee<\/strong> and Memo<\/strong>, only to be intercepted by Sector 7<\/strong> and the Decepticons<\/strong>. Bumblebee is captured<\/strong> while Charlie and Memo<\/strong> are returned home.<\/phrase>","Memo<\/word>","follow Burns<\/word>","Sector 7<\/word>","Bumblebee<\/word>","being held<\/word>","Shatter<\/word>","Dropkick<\/word>","torture Bumblebee<\/word>","activate the message from Optimus<\/word>","Autobots are coming to Earth<\/word>","Bumblebee for dead after revealing their plan to<\/word>","bring<\/word>","Decepticons<\/word>","Earth<\/word>","Burns to the truth<\/word>","Dr. Powell is killed<\/word>","Charlie convinces her brother Otis to cover for her and Memo<\/strong> as they follow Burns<\/strong> to the Sector 7<\/strong> outpost where Bumblebee<\/strong> is being held<\/strong>. Shatter<\/strong> and Dropkick<\/strong> torture Bumblebee<\/strong> and activate the message from Optimus<\/strong>, discovering that the Autobots are coming to Earth<\/strong>. They shoot and leave Bumblebee for dead after revealing their plan to<\/strong> bring<\/strong> the rest of the Decepticons<\/strong> to Earth<\/strong>. After alerting Burns to the truth<\/strong> about the Decepticons<\/strong>, Dr. Powell is killed<\/strong> by Dropkick<\/strong>.<\/phrase>","Charlie electroshocks<\/word>","Bumblebee<\/word>","restoring his memories<\/word>","Memo<\/word>","prevent<\/word>","Decepticons<\/word>","contacting<\/word>","Cybertron<\/word>","Shatter<\/word>","shoots down Burns' helicopter<\/word>","saved by Bumblebee<\/word>","Dropkick<\/word>","rips him apart<\/word>","Charlie deactivates<\/word>","Decepticon beacon<\/word>","Bumblebee destroys a dam wall<\/word>","destroy Shatter<\/word>","Golden Gate Bridge<\/word>","Bumblebee has a greater purpose<\/word>","Earth<\/word>","says goodbye<\/word>","Charlie reunites with her family<\/word>","Charlie electroshocks<\/strong> Bumblebee<\/strong> back to life, restoring his memories<\/strong>, causing him to attack and drive off Burns' obstruction. After escaping the pursuing military with the help of Memo<\/strong> and her family, Charlie and Bumblebee<\/strong> attempt to prevent<\/strong> the Decepticons<\/strong> from contacting<\/strong> Cybertron<\/strong> using a radio tower at a nearby harbor. Shatter<\/strong> shoots down Burns' helicopter<\/strong> when he also tries to intervene, but he is saved by Bumblebee<\/strong>. Bumblebee<\/strong> binds Dropkick<\/strong> with a chain, and rips him apart<\/strong> when he transforms. Charlie deactivates<\/strong> the Decepticon beacon<\/strong>, only to be pursued by Shatter<\/strong>. Bumblebee destroys a dam wall<\/strong>, triggering a flood that causes a cargo ship to crush and destroy Shatter<\/strong>. Burns gives Bumblebee<\/strong> and Charlie time to escape before the army arrives. Charlie and Bumblebee<\/strong> arrive on a cliff overlooking the Golden Gate Bridge<\/strong>, where Charlie, realizing that Bumblebee has a greater purpose<\/strong> on Earth<\/strong>, says goodbye<\/strong>. Bumblebee<\/strong> takes on a new 1977 Chevrolet Camaro form and drives off, and Charlie reunites with her family<\/strong> and Memo<\/strong>.<\/phrase>","Bumblebee<\/word>","reunites with Optimus<\/word>","praises Bumblebee<\/word>","keeping Earth safe<\/word>","Earth<\/word>","Charlie finally finishes<\/word>","repairing the Corvette<\/word>","she and her father were working on<\/word>","Now using his new name, Bumblebee<\/strong> reunites with Optimus<\/strong>, who praises Bumblebee<\/strong> for keeping Earth safe<\/strong> as they watch more Autobots arrive through Earth<\/strong>'s atmosphere. Meanwhile, Charlie finally finishes<\/strong> repairing the Corvette<\/strong> she and her father were working on<\/strong>, and takes the classic car for a drive.<\/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':3070, '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':3070, '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':3070, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }