var presentation = ["Captain America: The Winter Soldier<\/word>","superhero film<\/word>","Marvel Comics character<\/word>","sequel to Captain America: The First Avenger<\/word>","conspiracy<\/word>","within the spy agency<\/word>","S.H.I.E.L.D.<\/word>","Winter Soldier<\/word>","Captain America<\/word>","Marvel Studios<\/word>","Walt Disney Studios Motion Pictures<\/word>","film<\/word>","Black Widow<\/word>","Falcon<\/word>","mysterious assassin<\/word>","Captain America: The Winter Soldier<\/strong> is a 2014 American superhero film<\/strong> based on the Marvel Comics character<\/strong> Captain America<\/strong>, produced by Marvel Studios<\/strong> and distributed by Walt Disney Studios Motion Pictures<\/strong>. It is the sequel to Captain America: The First Avenger<\/strong>. In the film<\/strong>, Captain America<\/strong> joins forces with Black Widow<\/strong> and Falcon<\/strong> to uncover a conspiracy<\/strong> within the spy agency<\/strong> S.H.I.E.L.D.<\/strong> while facing a mysterious assassin<\/strong> known as the Winter Soldier<\/strong>.<\/phrase>","Washington, D.C.<\/word>","S.H.I.E.L.D.<\/word>","S.H.I.E.L.D.'s counter-terrorism<\/word>","S.T.R.I.K.E. team<\/word>","from pirates<\/word>","Rogers returns to the Triskelion<\/word>","S.H.I.E.L.D.'s headquarters<\/word>","spy satellites<\/word>","preemptively eliminate threats<\/word>","Fury becomes suspicious about Insight<\/word>","S.H.I.E.L.D. official<\/word>","Secretary of Internal Security<\/word>","Alexander Pierce<\/word>","delay the project<\/word>","Two years<\/word>","Battle of New York<\/word>","Steve Rogers<\/word>","espionage agency<\/word>","Director Nick Fury<\/word>","contemporary society<\/word>","Agent Natasha Romanoff<\/word>","Agent Rumlow<\/word>","free hostages<\/word>","Georges Batroc<\/word>","Project Insight<\/word>","three Helicarriers<\/word>","Two years<\/strong> after the Battle of New York<\/strong>, Steve Rogers<\/strong> works in Washington, D.C.<\/strong>, for the espionage agency<\/strong> S.H.I.E.L.D.<\/strong> under Director Nick Fury<\/strong>, while adjusting to contemporary society<\/strong>. Rogers and Agent Natasha Romanoff<\/strong> are sent with S.H.I.E.L.D.'s counter-terrorism<\/strong> S.T.R.I.K.E. team<\/strong>, led by Agent Rumlow<\/strong>, to free hostages<\/strong> aboard a S.H.I.E.L.D.<\/strong> vessel from pirates<\/strong> led by Georges Batroc<\/strong>. Mid-mission, Rogers discovers Romanoff has another agenda: to extract data from the ship's computers for Fury. Rogers returns to the Triskelion<\/strong>, S.H.I.E.L.D.'s headquarters<\/strong>, to confront Fury and is briefed about Project Insight<\/strong>-- three Helicarriers<\/strong> linked to spy satellites<\/strong>, designed to preemptively eliminate threats<\/strong>. Unable to decrypt the data recovered by Romanoff, Fury becomes suspicious about Insight<\/strong> and asks senior S.H.I.E.L.D. official<\/strong> and Secretary of Internal Security<\/strong> Alexander Pierce<\/strong> to delay the project<\/strong>.<\/phrase>","rendezvous<\/word>","Fury is ambushed<\/word>","Winter Soldier<\/word>","Fury escapes to Rogers' apartment<\/word>","S.H.I.E.L.D. is compromised<\/word>","Fury is gunned down by the Winter Soldier<\/word>","Fury is pronounced dead<\/word>","Pierce summons Rogers to the Triskelion<\/word>","Rogers withholds Fury's information<\/word>","Pierce brands him a fugitive<\/word>","secret S.H.I.E.L.D. bunker<\/word>","activate a supercomputer<\/word>","S.H.I.E.L.D. was founded after World War II<\/word>","infiltrated and secretly operated<\/word>","sowing global chaos<\/word>","pair narrowly escape death<\/word>","S.H.I.E.L.D. missile destroys the bunker<\/word>","Pierce is Hydra's leader within S.H.I.E.L.D.<\/word>","Maria Hill<\/word>","mysterious assassin<\/word>","flash<\/word>","next day<\/word>","discover<\/word>","New Jersey<\/word>","preserved consciousness<\/word>","Arnim Zola<\/word>","Hydra<\/word>","On his way to rendezvous<\/strong> with Maria Hill<\/strong>, Fury is ambushed<\/strong> by assailants led by a mysterious assassin<\/strong> called the Winter Soldier<\/strong>. Fury escapes to Rogers' apartment<\/strong>, and warns Rogers that S.H.I.E.L.D. is compromised<\/strong>. Fury is gunned down by the Winter Soldier<\/strong>, before handing Rogers a flash<\/strong> drive containing data from the ship. Fury is pronounced dead<\/strong> during surgery, and Hill recovers the body. The next day<\/strong>, Pierce summons Rogers to the Triskelion<\/strong>. When Rogers withholds Fury's information<\/strong>, Pierce brands him a fugitive<\/strong>. Hunted by S.T.R.I.K.E., Rogers meets with Romanoff. Using data in the flash<\/strong> drive, they discover<\/strong> a secret S.H.I.E.L.D. bunker<\/strong> in New Jersey<\/strong>, where they activate a supercomputer<\/strong> containing the preserved consciousness<\/strong> of Arnim Zola<\/strong>. Zola reveals that ever since S.H.I.E.L.D. was founded after World War II<\/strong>, Hydra<\/strong> has infiltrated and secretly operated<\/strong> within its ranks, sowing global chaos<\/strong> with the objective of making humanity surrender its freedom in exchange for security. The pair narrowly escape death<\/strong> when a S.H.I.E.L.D. missile destroys the bunker<\/strong>, and realize that Pierce is Hydra's leader within S.H.I.E.L.D.<\/strong><\/phrase>","enlist the help<\/word>","USAF pararescueman<\/word>","S.H.I.E.L.D. agent<\/word>","Hydra mole<\/word>","Zola developed a data-mining algorithm<\/word>","identify individuals becoming threats to Hydra<\/word>","sweep the globe<\/word>","eliminate these individuals<\/word>","ambushed by the Winter Soldier<\/word>","Rogers recognizes the Winter Soldier<\/word>","Bucky Barnes<\/word>","childhood best friend<\/word>","supposedly fell to his death<\/word>","captured<\/word>","experimented upon after WWII<\/word>","Sam Wilson<\/word>","Falcon<\/word>","Jasper Sitwell<\/word>","Helicarriers<\/word>","satellite-guided guns<\/word>","Rogers and Romanoff enlist the help<\/strong> of former USAF pararescueman<\/strong> Sam Wilson<\/strong>, whom Rogers befriended, and acquire his powered Falcon<\/strong> wingpack. Deducing that S.H.I.E.L.D. agent<\/strong> Jasper Sitwell<\/strong> is a Hydra mole<\/strong>, they force him to divulge that Zola developed a data-mining algorithm<\/strong> that can identify individuals becoming threats to Hydra<\/strong>. The Insight Helicarriers<\/strong> will sweep the globe<\/strong>, using satellite-guided guns<\/strong> to eliminate these individuals<\/strong>. Rogers, Romanoff, and Wilson are ambushed by the Winter Soldier<\/strong>, who kills Sitwell. During the fight, Rogers recognizes the Winter Soldier<\/strong> as Bucky Barnes<\/strong>, his childhood best friend<\/strong> who supposedly fell to his death<\/strong> on a mission, but was actually captured<\/strong> and experimented upon after WWII<\/strong>. Hill manages to extract the trio to a safehouse where Fury, who had faked his death, is waiting with plans to sabotage the Helicarriers<\/strong> by replacing their controller chips.<\/phrase>","Helicarriers' launch<\/word>","Hydra's plot<\/word>","unlock S.H.I.E.L.D.'s database<\/word>","leak classified information<\/word>","exposing Hydra to the public<\/word>","replace the controller chips<\/word>","Winter Soldier<\/word>","fights Rogers<\/word>","Rogers fends him off<\/word>","Rogers refuses to fight the Winter Soldier<\/word>","reach his friend<\/word>","Rogers is thrown out into the Potomac River<\/word>","Winter Soldier rescues the unconscious Rogers<\/word>","disappearing into the woods<\/word>","World Security Council<\/word>","arrive<\/word>","Triskelion<\/word>","Helicarriers<\/word>","attempt<\/word>","After the World Security Council<\/strong> members arrive<\/strong> for the Helicarriers' launch<\/strong>, Rogers broadcasts Hydra's plot<\/strong> to everyone at the Triskelion<\/strong>. Romanoff, disguised as one of the Council members, disarms Pierce. Fury arrives and forces Pierce to unlock S.H.I.E.L.D.'s database<\/strong> so that Romanoff can leak classified information<\/strong>, exposing Hydra to the public<\/strong>. Following a struggle, Fury kills Pierce. Meanwhile, Rogers and Wilson storm two Helicarriers<\/strong> and replace the controller chips<\/strong>, but the Winter Soldier<\/strong> destroys Wilson's suit and fights Rogers<\/strong> on the third. Rogers fends him off<\/strong> and replaces the final chip, allowing Hill to take control and have the vessels destroy each other. Rogers refuses to fight the Winter Soldier<\/strong> in an attempt<\/strong> to reach his friend<\/strong>, but as the ship collides with the Triskelion<\/strong>, Rogers is thrown out into the Potomac River<\/strong>. The Winter Soldier rescues the unconscious Rogers<\/strong> before disappearing into the woods<\/strong>.<\/phrase>","S.H.I.E.L.D.<\/word>","Romanoff appears before a Senate subcommittee<\/word>","Fury, under the cover of his apparent death<\/word>","pursuit of Hydra's remaining cells<\/word>","Rogers and Wilson decide to find the Winter Soldier<\/word>","Eastern Europe<\/word>","Hydra<\/word>","Triskelion<\/word>","With S.H.I.E.L.D.<\/strong> in disarray, Romanoff appears before a Senate subcommittee<\/strong>, while Fury, under the cover of his apparent death<\/strong>, heads to Eastern Europe<\/strong> in pursuit of Hydra's remaining cells<\/strong>. Rogers and Wilson decide to find the Winter Soldier<\/strong>, while Rumlow, who was a double agent for Hydra<\/strong>, is hospitalized following the Triskelion<\/strong>'s destruction.<\/phrase>","Hydra lab<\/word>","age of miracles has begun<\/word>","scientists examine an energy-filled scepter<\/word>","two test subjects<\/word>","one with superhuman speed<\/word>","other with telekinetic powers<\/word>","post-credits scene<\/word>","Barnes visits his own memorial<\/word>","Smithsonian Institution<\/word>","Baron Wolfgang von Strucker<\/word>","In a mid-credits scene, Baron Wolfgang von Strucker<\/strong>, at a Hydra lab<\/strong>, proclaims that the age of miracles has begun<\/strong> as scientists examine an energy-filled scepter<\/strong> and two test subjects<\/strong>; one with superhuman speed<\/strong>, the other with telekinetic powers<\/strong>. In a post-credits scene<\/strong>, Barnes visits his own memorial<\/strong> at the Smithsonian Institution<\/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':2323, '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':2323, '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':2323, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }