var presentation = ["1989<\/word>","mother<\/word>","previous signs of pregnancy<\/word>","Sir Reginald Hargreeves<\/word>","save the world<\/word>","seemingly has no superpowers<\/word>","violin<\/word>","autobiography<\/word>","Vanya Hargreeves<\/word>","forty-three children<\/word>","same day<\/word>","adoptive siblings<\/word>","her life<\/word>","ordinary member<\/word>","Umbrella Academy<\/word>","Vanya Hargreeves<\/strong> is one of the forty-three children<\/strong> who were all born on the same day<\/strong> in 1989<\/strong>, to a mother<\/strong> without any previous signs of pregnancy<\/strong>. The baby was one of seven adopted by Sir Reginald Hargreeves<\/strong> with the intention of training them to save the world<\/strong>. Unlike her six adoptive siblings<\/strong>, Vanya seemingly has no superpowers<\/strong>. She had a talent for violin<\/strong>, and when she was an adult wrote an autobiography<\/strong> about her life<\/strong> as the ordinary member<\/strong> of The Umbrella Academy<\/strong>.<\/phrase>","most powerful of the entire academy<\/word>","harness sound<\/word>","convert it into energy<\/word>","to be too great and destructive<\/word>","ever be let out<\/word>","suppress them<\/word>","medication<\/word>","suppress her emotional state<\/word>","she was ordinary<\/word>","subtly alter reality by lying<\/word>","lie<\/word>","possessed powers<\/word>","Sir Reginald<\/word>","her emotions<\/word>","her ability<\/word>","her sister<\/word>","Allison<\/word>","own power<\/word>","However, Vanya's life was a lie<\/strong>. She not only possessed powers<\/strong> but, ironically, was arguably the most powerful of the entire academy<\/strong>. Early on, Sir Reginald<\/strong> discovered that her emotions<\/strong> were linked to her ability<\/strong> to harness sound<\/strong> and convert it into energy<\/strong>. Despite trying to teach her to control them, he deemed Vanya's powers to be too great and destructive<\/strong> to ever be let out<\/strong>. As a result, Sir Reginald<\/strong> worked to cover them up and suppress them<\/strong>. She was placed on medication<\/strong> to suppress her emotional state<\/strong>, and Sir Reginald<\/strong> made her sister<\/strong>, Allison<\/strong>, convince her that she was ordinary<\/strong> by using her own power<\/strong> to subtly alter reality by lying<\/strong>.<\/phrase>","truth about her powers<\/word>","Sir Reginald's journal<\/word>","gain revenge on the Academy<\/word>","Vanya's powers became fully unleashed<\/word>","incidentally triggered the apocalypse<\/word>","Leonard Peabody<\/word>","subsequent rampage<\/word>","Vanya learned the truth about her powers<\/strong> when Leonard Peabody<\/strong> came across Sir Reginald's journal<\/strong> and manipulated her to gain revenge on the Academy<\/strong>. After all the revelations and the way she was treated by her family, Vanya's powers became fully unleashed<\/strong> and, in her subsequent rampage<\/strong>, she incidentally triggered the apocalypse<\/strong>.<\/phrase>","transporting them all away<\/word>","before the apocalypse can kill them<\/word>","Dallas, Texas<\/word>","live with her family<\/word>","amnesia<\/word>","Five<\/word>","time travel<\/word>","Sissy Cooper<\/word>","her home<\/word>","Five<\/strong> succeeds in transporting them all away<\/strong> before the apocalypse can kill them<\/strong>.Five<\/strong>'s ability to time travel<\/strong> is not perfect, however, and Vanya finds herself in Dallas, Texas<\/strong> during 1963. Shortly after arriving, she is hit by a car by Sissy Cooper<\/strong>, who takes her into her home<\/strong> and allows her to live with her family<\/strong> while she is suffering amnesia<\/strong> from the accident.<\/phrase>","newspaper<\/word>","nobody comes looking for Vanya<\/word>","numerous months<\/word>","Carl Cooper<\/word>","numerous advertisements<\/word>","Vanya spends numerous months<\/strong> on the ranch trying to figure out who she is and where she came from, and Sissy's husband, Carl Cooper<\/strong>, puts numerous advertisements<\/strong> in the newspaper<\/strong> to try and get answers for Vanya; they are unsuccessful, however, and nobody comes looking for Vanya<\/strong>.<\/phrase>","develop romantic feelings<\/word>","affair<\/word>","dream of taking Harlan away<\/word>","threatens to put Harlan into a home<\/word>","doesn't leave the ranch<\/word>","eventually begin<\/word>","While on the ranch, she grows closer with Sissy, and the two develop romantic feelings<\/strong> for one another, and eventually begin<\/strong> having an affair<\/strong> behind Carl's back. The two dream of taking Harlan away<\/strong> and leaving the ranch for good, but Sissy is unable to pull herself away from Carl, much to Vanya's dismay. Carl eventually finds out about the relationship and threatens to put Harlan into a home<\/strong> if she doesn't leave the ranch<\/strong> - and Sissy - behind for good.<\/phrase>","communicate with<\/word>","close<\/word>","Harlan<\/word>","her time<\/word>","only people<\/word>","argue<\/word>","Vanya grows increasingly close<\/strong> with Sissy's son, Harlan<\/strong>, during her time<\/strong> staying with the Coopers. She becomes one of the only people<\/strong> that Harlan<\/strong> will communicate with<\/strong>, and eventually, Harlan<\/strong> begins to feel the tensions between Sissy and Vanya when they argue<\/strong> over Carl.<\/phrase>","Harlan runs away<\/word>","bottom of a lake<\/word>","drowned<\/word>","uses her abilities<\/word>","unable to fully control<\/word>","rescue Harlan<\/word>","he is not breathing<\/word>","transferring her energy into Harlan's body<\/word>","constant arguing<\/word>","full extent<\/word>","surprise<\/word>","Feeling unnerved by the constant arguing<\/strong>, Harlan runs away<\/strong> from the ranch when Vanya and Sissy are arguing. Vanya chases after him and finds him at the bottom of a lake<\/strong> having drowned<\/strong> minutes earlier. She uses her abilities<\/strong> - of which she is unable to fully control<\/strong>, nor knows the full extent<\/strong> of - to part the water and rescue Harlan<\/strong>. She is distraught to see that he is not breathing<\/strong>, but is able to bring him back by transferring her energy into Harlan's body<\/strong>, much to her surprise<\/strong>.<\/phrase>","unaware<\/word>","extensive family somewhere<\/word>","Luther is the first to approach Vanya<\/word>","unable to recall anything<\/word>","Vanya is unaware<\/strong> that she has an extensive family somewhere<\/strong>, and is unaware<\/strong> of the part she plays in the family. Luther is the first to approach Vanya<\/strong>, but when he finds out that she is unable to recall anything<\/strong>, he leaves, citing that he was returning a wallet left at the bar by Carl, however it is clear that Vanya realizes there is much more to the story.<\/phrase>","Five is the next to find Vanya<\/word>","explains her history<\/word>","she triggered the apocalypse<\/word>","part of something bigger<\/word>","help Five on his attempts<\/word>","rightful place within the timeline<\/word>","Five<\/word>","lie<\/word>","Umbrella Academy<\/word>","second apocalypse<\/word>","Five is the next to find Vanya<\/strong>, and explains her history<\/strong>, but alludes to her that she triggered the apocalypse<\/strong> in 2019 that ended the world. This revelation drives a wedge between Five<\/strong> and Vanya, who believes that everything Five<\/strong> has told her has been a lie<\/strong>. When Vanya meets the rest of the Umbrella Academy<\/strong>, she finally realizes that she is a part of something bigger<\/strong>, and is forced to help Five on his attempts<\/strong> to avert the second apocalypse<\/strong> and return them to their rightful place within the timeline<\/strong>.<\/phrase>","Ben is able to save Vanya<\/word>","face off against the Commission<\/word>","save Harlan<\/word>","her memories<\/word>","Russian spy<\/word>","second apocalypse<\/word>","Umbrella Academy<\/word>","Still without her memories<\/strong>, however, and believed to be a Russian spy<\/strong>, Vanya nearly triggers a second apocalypse<\/strong> while being interrogated by the FBI. Ben is able to save Vanya<\/strong> and the Umbrella Academy<\/strong> prepare to face off against the Commission<\/strong> and to save Harlan<\/strong>.<\/phrase>","receives visions<\/word>","Harlan struggling in pain<\/word>","save him<\/word>","Vanya transferring her energy to Harlan<\/word>","Umbrella Academy<\/word>","Harlan<\/word>","After being saved herself, Vanya receives visions<\/strong> of Harlan struggling in pain<\/strong> while screaming out her name, and she realizes that she must save him<\/strong> before returning to 2019. She and the rest of the Umbrella Academy<\/strong> return to Sissy's farm, where Vanya finds Harlan<\/strong> experiencing strange, but familiar, outbursts of power; outbursts that have come as a result of Vanya transferring her energy to Harlan<\/strong>.<\/phrase>","save Harlan<\/word>","off guard<\/word>","Commission<\/word>","save her family<\/word>","takes back the energy<\/word>","allowing him to return back to a normal life<\/word>","attack<\/word>","her abilities<\/word>","Harlan<\/word>","Vanya tries to save Harlan<\/strong>, but is caught off guard<\/strong> by an attack<\/strong> by the Temps Commission<\/strong>. She is forced to user her abilities<\/strong> to save her family<\/strong> and kills hundreds of Temps Commission<\/strong> agents in one blast. She returns to Harlan<\/strong> where she takes back the energy<\/strong> she had previously given him, allowing him to return back to a normal life<\/strong>.<\/phrase>","successfully defeat<\/word>","Commission<\/word>","return to their timeline<\/word>","Handler<\/word>","Vanya and her family successfully defeat<\/strong> the Handler<\/strong> and the Commission<\/strong> and are able to return to their timeline<\/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':1747, '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':1747, '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':1747, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }