var presentation = ["Lilo & Stitch<\/word>","two eccentric and mischievous individuals<\/word>","Lilo<\/word>","raised by her 19-year-old sister<\/word>","Nani<\/word>","their parents died<\/word>","blue extraterrestrial animal-like creature<\/word>","Experiment 626<\/word>","adopted by Lilo<\/word>","as her dog<\/word>","renamed Stitch<\/word>","cause chaos<\/word>","destruction<\/word>","uses Lilo to avoid being captured by<\/word>","develop a close bond<\/word>","ohana<\/word>","extended family<\/word>","Stitch to reconsider<\/word>","keep his family together<\/word>","science fiction comedy-drama film<\/word>","Walt Disney Feature Animation<\/word>","Walt Disney Pictures<\/word>","film<\/word>","Hawaiian girl<\/word>","car accident<\/word>","Stitch<\/word>","mad scientist creator<\/word>","intergalactic federation<\/word>","Hawaiian concept<\/word>","later defy<\/word>","destructive purpose<\/word>","order<\/word>","Lilo & Stitch<\/strong> is a 2002 American animated science fiction comedy-drama film<\/strong> produced by Walt Disney Feature Animation<\/strong> and released by Walt Disney Pictures<\/strong>. The film<\/strong>'s story revolves around two eccentric and mischievous individuals<\/strong>, a six-year-old Hawaiian girl<\/strong> named Lilo<\/strong> Pelekai, who is raised by her 19-year-old sister<\/strong> Nani<\/strong> after their parents died<\/strong> in a car accident<\/strong>, and a blue extraterrestrial animal-like creature<\/strong> called Experiment 626<\/strong>, who is adopted by Lilo<\/strong> as her dog<\/strong> and renamed Stitch<\/strong>. Stitch<\/strong>, who is genetically engineered by his mad scientist creator<\/strong> to cause chaos<\/strong> and destruction<\/strong>, initially uses Lilo to avoid being captured by<\/strong> an intergalactic federation<\/strong>, but the two individuals develop a close bond<\/strong> through the Hawaiian concept<\/strong> of ohana<\/strong>, or extended family<\/strong>. This bond causes Stitch to reconsider<\/strong> and later defy<\/strong> his intended destructive purpose<\/strong> in order<\/strong> to keep his family together<\/strong>.<\/phrase>","Dr. Jumba Jookiba<\/word>","arrested<\/word>","illegal genetic experimentation<\/word>","Experiment 626<\/word>","unparalleled strength<\/word>","intelligence<\/word>","cause chaos<\/word>","sentences 626 to banishment<\/word>",", 626 is able to escape<\/word>","flees toward Earth<\/word>","The Councilwoman then sends Jumba and Agent Pleakley<\/word>","Earth expert<\/word>","capture 626<\/word>","landing on Hawaii<\/word>","626 is knocked unconscious<\/word>","taken in by an animal shelter<\/word>","extraterrestrial mad scientist<\/word>","Galactic Federation<\/word>","blue sentient alien<\/word>","Grand Councilwoman<\/word>","remote asteroid<\/word>","three trucks<\/word>","Dr. Jumba Jookiba<\/strong>, an extraterrestrial mad scientist<\/strong>, is arrested<\/strong> by the Galactic Federation<\/strong> for illegal genetic experimentation<\/strong>, as evidenced by a small blue sentient alien<\/strong> named Experiment 626<\/strong>, who has unparalleled strength<\/strong> and intelligence<\/strong> but also a propensity to cause chaos<\/strong>. The Grand Councilwoman<\/strong> sentences 626 to banishment<\/strong> on a remote asteroid<\/strong>. However, 626 is able to escape<\/strong> with his wits and strength and randomly flees toward Earth<\/strong>. The Councilwoman then sends Jumba and Agent Pleakley<\/strong>, the Council's Earth expert<\/strong>, to capture 626<\/strong>. Upon landing on Hawaii<\/strong>, 626 is knocked unconscious<\/strong> by three trucks<\/strong> and is taken in by an animal shelter<\/strong>.<\/phrase>","Kaua\u02bbi, Hawaii<\/word>","Nani<\/word>","works as a waitress<\/word>","Nani is able to take adequate care<\/word>","disobedient<\/word>","lonely<\/word>","Lilo<\/word>","Lilo has been ostracized<\/word>","hula classmates<\/word>","let her adopt a dog<\/word>","keen interest in 626<\/word>","impersonating a dog<\/word>","Lilo renames 626 Stitch<\/word>","young woman<\/word>","social worker<\/word>","Cobra Bubbles<\/word>","concern<\/word>","younger sister<\/word>","animal shelter<\/word>","Meanwhile, on Kaua\u02bbi, Hawaii<\/strong>, a young woman<\/strong> named Nani<\/strong> Pelekai works as a waitress<\/strong>. One day, social worker<\/strong> Cobra Bubbles<\/strong> expresses increasing concern<\/strong> whether Nani is able to take adequate care<\/strong> of her rambunctious, disobedient<\/strong>, and lonely<\/strong> younger sister<\/strong>, Lilo<\/strong>. Since Lilo has been ostracized<\/strong> by her hula classmates<\/strong>, Nani<\/strong> decides to let her adopt a dog<\/strong>. At an animal shelter<\/strong>, Lilo<\/strong> immediately takes a keen interest in 626<\/strong>, who is impersonating a dog<\/strong>. In spite of Nani<\/strong>'s doubts, Lilo renames 626 Stitch<\/strong>, and shows him around the island.<\/phrase>","restaurant where Nani works<\/word>","Jumba and Pleakley try to capture Stitch<\/word>","blamed on Stitch<\/word>","results in Nani getting fired<\/word>","unless she finds another job<\/word>","Lilo<\/word>","Stitch's antics<\/word>","ruin Nani's chances of finding work<\/word>","fail<\/word>","indescribable chaos<\/word>","next day<\/word>","Cobra Bubbles<\/word>","place<\/word>","foster family<\/word>","That evening, at the restaurant where Nani works<\/strong>, Jumba and Pleakley try to capture Stitch<\/strong>, but fail<\/strong>. The indescribable chaos<\/strong> is blamed on Stitch<\/strong>, which results in Nani getting fired<\/strong>. The next day<\/strong>, Cobra Bubbles<\/strong> warns her that unless she finds another job<\/strong>, he will have to place<\/strong> Lilo<\/strong> with a foster family<\/strong>. However, Stitch's antics<\/strong>, which occur in the course of his evasion of his two pursuers, persistently ruin Nani's chances of finding work<\/strong>.<\/phrase>","Nani's friend<\/word>","Lilo<\/word>","enjoy a day of surfing<\/word>","Nani, Lilo, and Stitch<\/word>","ride a huge wave<\/word>","Jumba makes one final effort to capture Stitch<\/word>","causing Stitch to unintentionally pull Lilo underwater<\/word>","They survive<\/word>","Cobra witnesses this event<\/word>","Nani<\/word>","Lilo has to be taken away<\/word>","unless Nani finds another job<\/word>","Stitch runs off<\/word>","David<\/word>","Stitch<\/word>","beach fun<\/word>","trouble<\/word>","Nani's friend<\/strong> David<\/strong> invites her, Lilo<\/strong>, and Stitch<\/strong> to enjoy a day of surfing<\/strong> and beach fun<\/strong>. While Nani, Lilo, and Stitch<\/strong> ride a huge wave<\/strong>, Jumba makes one final effort to capture Stitch<\/strong> from underwater, causing Stitch to unintentionally pull Lilo underwater<\/strong>. They survive<\/strong>, but Cobra witnesses this event<\/strong> and tells Nani<\/strong> that, although she means well, Lilo has to be taken away<\/strong> unless Nani finds another job<\/strong>. Seeing how much trouble<\/strong> he has caused, a remorseful Stitch runs off<\/strong> into the night.<\/phrase>","Councilwoman fires Jumba and Pleakley<\/word>","Nani<\/word>","job opportunity<\/word>","encounters Jumba<\/word>","chases him back to Nani's house<\/word>","fight ensues<\/word>","blows up the house<\/word>","Cobra arrives to collect Lilo<\/word>","take her away<\/word>","next morning<\/word>","oversized militant captain<\/word>","Captain Gantu<\/word>","David<\/word>","Stitch<\/word>","The next morning<\/strong>, the Councilwoman fires Jumba and Pleakley<\/strong> from their assignment and gives it to the galaxy's oversized militant captain<\/strong>, Captain Gantu<\/strong>. Meanwhile, David<\/strong> informs Nani<\/strong> of a job opportunity<\/strong>, which she excitedly rushes off to pursue. Stitch<\/strong>, hiding in the nearby woods, encounters Jumba<\/strong>, who chases him back to Nani's house<\/strong>. A fight ensues<\/strong> which blows up the house<\/strong>; Cobra arrives to collect Lilo<\/strong> and take her away<\/strong>.<\/phrase>","Nani and Cobra argue<\/word>","Lilo runs away into the woods<\/word>","finds Stitch<\/word>","reveals his alien identity<\/word>","captured by Gantu<\/word>","Stitch manages to escape<\/word>","confronted by Nani<\/word>","Jumba and Pleakley capture Stitch<\/word>","Nani demands that they help her rescue Lilo<\/word>","Nani breaks down<\/word>","Stitch reminds her about ohana<\/word>","Lilo<\/word>","convinces Jumba to help rescue Lilo<\/word>","Nani<\/word>","board Jumba's personal spaceship<\/word>","chase after Gantu<\/word>","rescuing Lilo<\/word>","explain<\/word>","Stitch<\/word>","As Nani and Cobra argue<\/strong>, Lilo runs away into the woods<\/strong> and finds Stitch<\/strong>, who reveals his alien identity<\/strong> just before they are captured by Gantu<\/strong>. Stitch manages to escape<\/strong> from Gantu's ship and is confronted by Nani<\/strong>. Before he can explain<\/strong>, Jumba and Pleakley capture Stitch<\/strong> themselves. Nani demands that they help her rescue Lilo<\/strong>, but Jumba and Pleakley insists they only came for Stitch<\/strong>. When Nani breaks down<\/strong>, Stitch reminds her about ohana<\/strong>, a term for family he learned from Lilo<\/strong> earlier, and convinces Jumba to help rescue Lilo<\/strong>. Jumba, Pleakley, Stitch<\/strong>, and Nani<\/strong> all board Jumba's personal spaceship<\/strong> and chase after Gantu<\/strong>, rescuing Lilo<\/strong>.<\/phrase>","arrives on Earth<\/word>","take Stitch into custody<\/word>","forced to retire Gantu<\/word>","putting Lilo in danger<\/word>","tells the Councilwoman<\/word>","how he found his broken family<\/word>","Lilo<\/word>","Stitch is her pet under local law<\/word>","taking him away<\/word>","stealing<\/word>","decrees that Stitch will live in a peaceful exile on Earth<\/word>","entrusted to the care of Lilo and Nani<\/word>","Grand Councilwoman<\/word>","Stitch<\/word>","Back on the shore, the Grand Councilwoman<\/strong> arrives on Earth<\/strong> preparing to take Stitch into custody<\/strong> and is forced to retire Gantu<\/strong> for putting Lilo in danger<\/strong> and blames Jumba for the mess. Before Stitch<\/strong> goes into the spaceship, he tells the Councilwoman<\/strong> of how he found his broken family<\/strong> and how much it means to them. Lilo<\/strong> then insists that, because Stitch is her pet under local law<\/strong>, taking him away<\/strong> would be tantamount to stealing<\/strong>. The Grand Councilwoman<\/strong> is so impressed with Stitch<\/strong>'s newfound civility and empathy that she goes against the prior decision of the Federation and decrees that Stitch will live in a peaceful exile on Earth<\/strong>. He will be entrusted to the care of Lilo and Nani<\/strong>, and the Councilwoman asks Cobra, who is revealed to be a former CIA agent that she previously met in 1973, to watch over them.<\/phrase>","Lilo<\/word>","Nani<\/word>","newfound friends<\/word>","rebuild their house<\/word>","Jumba and Pleakley become members of Nani, Lilo, and Stitch's family<\/word>","build a new life together<\/word>","Lilo<\/strong>, Nani<\/strong>, and their newfound friends<\/strong> rebuild their house<\/strong>, and Jumba and Pleakley become members of Nani, Lilo, and Stitch's family<\/strong>, and they all build a new life together<\/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':2288, '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':2288, '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':2288, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }