var presentation = ["Fast & Furious: Supercharged<\/word>","Fast & Furious film franchise<\/word>","Hollywood version<\/word>","Universal Studios Hollywood<\/word>","Universal Studios Florida<\/word>","part<\/word>","Studio Tour<\/word>","Fast & Furious: Supercharged<\/strong> is an attraction at Universal Studios Hollywood<\/strong> and Universal Studios Florida<\/strong>. The attraction is based on the Fast & Furious film franchise<\/strong>. The Hollywood version<\/strong>, opened on June 25, 2015 as part<\/strong> of the Studio Tour<\/strong>.<\/phrase>","tram makes its way<\/word>","Wisteria Lane<\/word>","apologizing<\/word>","interrupted by Luke Hobbs<\/word>","garage<\/word>","given an introduction<\/word>","party is interrupted<\/word>","escorts the partygoers out of the room<\/word>","stop Roman<\/word>","Dominic Toretto and Letty appear<\/word>","followed by Hobbs<\/word>","takes Novak away<\/word>","alert the team<\/word>","trouble is ahead<\/word>","riders put on their 3D glasses<\/word>","begins the chase<\/word>","Owen Shaw appears<\/word>","seek revenge on Dominic<\/word>","leading a chase<\/word>","Studio Tour<\/word>","Dodge Charger<\/word>","beige house<\/word>","tour guide<\/word>","unplanned event<\/word>","safe location<\/word>","Owen Shaw<\/word>","his gang<\/word>","high-valued witness<\/word>","Roman Pearce<\/word>","Letty Ortiz<\/word>","Agent Novak<\/word>","parking lot underground<\/word>","As the tram makes its way<\/strong> past Wisteria Lane<\/strong> during Universal's Studio Tour<\/strong>, to the left is a black Dodge Charger<\/strong> next to a beige house<\/strong>. The tour guide<\/strong>, who is apologizing<\/strong> for the unplanned event<\/strong>, is interrupted by Luke Hobbs<\/strong>, telling guests that they will be sent to a safe location<\/strong>. This is because Owen Shaw<\/strong> and his gang<\/strong> are after a high-valued witness<\/strong> on the tram. The tram enters the garage<\/strong> and is given an introduction<\/strong> to Roman Pearce<\/strong> and Letty Ortiz<\/strong>, two of the franchise's characters. The tram drives further into the garage<\/strong>, where a party is interrupted<\/strong> by Agent Novak<\/strong>, who escorts the partygoers out of the room<\/strong>. Agent Novak<\/strong> wants to stop Roman<\/strong>, but Dominic Toretto and Letty appear<\/strong>, followed by Hobbs<\/strong>, who has a bigger gun and takes Novak away<\/strong>. Screeching cars in the background alert the team<\/strong> that trouble is ahead<\/strong>. The riders put on their 3D glasses<\/strong>. The team makes way for their vehicles and begins the chase<\/strong> in a parking lot underground<\/strong>, where Owen Shaw appears<\/strong> to seek revenge on Dominic<\/strong>, leading a chase<\/strong> outside on the freeway.<\/phrase>","Florida's ride<\/word>","stand-alone ride<\/word>","garage<\/word>","Dom's Charger<\/word>","full of cars from the films<\/word>","pictures of the characters<\/word>","greeted by a live actor<\/word>","Mia Toretto calls<\/word>","Dom has won another street race<\/word>","celebrating<\/word>","Sullivan's garage<\/word>","guests are invited<\/word>","he has party buses to take the guests there<\/word>","Tej's war room<\/word>","Tej calls<\/word>","buses are ready<\/word>","called by Dom<\/word>","FBI are honing in on their location<\/word>","following them<\/word>","Tej then calls Hobbs<\/word>","informs him of the plot<\/word>","reminds guests<\/word>","turn off their phones<\/word>","Shaw can't track them<\/word>","Guest enter the loading area<\/word>","wanted posters for Shaw<\/word>","Guests board the buses<\/word>","head for the party<\/word>","ride follows<\/word>","same pattern<\/word>","Hollywood version<\/word>","exception of<\/word>","inserted shots of Tej and Mia<\/word>","enter<\/word>","San Francisco<\/word>","park<\/word>","queue<\/word>","Tej<\/word>","Owen Shaw<\/word>","his gang<\/word>","While similar to Hollywood's, Florida's ride<\/strong> is a stand-alone ride<\/strong>. Guests enter<\/strong> from the San Francisco<\/strong> area of the park<\/strong>. The facade is meant to represent a garage<\/strong> with Dom's Charger<\/strong> parked outside. The queue<\/strong> winds through the garage<\/strong> which is full of cars from the films<\/strong>. Guests enter<\/strong> a room with pictures of the characters<\/strong> and a television screen. Guests are greeted by a live actor<\/strong> who tells them about the garage<\/strong>. Mia Toretto calls<\/strong> and tells guests that Dom has won another street race<\/strong> and is celebrating<\/strong> at Sullivan's garage<\/strong> and that guests are invited<\/strong>. Tej<\/strong> appears and tells them that he has party buses to take the guests there<\/strong>. Guests then enter<\/strong> Tej's war room<\/strong> where they are greeted by another cast member who explains everything in the room. Tej calls<\/strong> and says that the buses are ready<\/strong>, but is called by Dom<\/strong> who tells him that the FBI are honing in on their location<\/strong>. To make matters worse, Owen Shaw<\/strong> is following them<\/strong>. Tej then calls Hobbs<\/strong> who informs him of the plot<\/strong> and reminds guests<\/strong> to turn off their phones<\/strong> so Shaw can't track them<\/strong>. Guest enter the loading area<\/strong> past wanted posters for Shaw<\/strong> and his gang<\/strong>. Guests board the buses<\/strong> and head for the party<\/strong>. The ride follows<\/strong> the same pattern<\/strong> as the Hollywood version<\/strong> with the exception of<\/strong> the 3D and inserted shots of Tej and Mia<\/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':2948, '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':2948, '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':2948, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }