var presentation = ["stop-motion animated musical fantasy film<\/word>","Corpse Bride<\/word>","Tim Burton<\/word>","Mike Johnson<\/word>","Victorian era village<\/word>","England<\/word>","Johnny Depp<\/word>","Helena Bonham Carter<\/word>","Emily<\/word>","titular bride<\/word>","Corpse Bride<\/strong> (also known as Tim Burton<\/strong>'s Corpse Bride<\/strong>) is a 2005 stop-motion animated musical fantasy film<\/strong> directed by Mike Johnson<\/strong> and Tim Burton<\/strong>. The plot is set in a fictional Victorian era village<\/strong> in England<\/strong>. Johnny Depp<\/strong> leads the cast as the voice of Victor, while Helena Bonham Carter<\/strong> voices Emily<\/strong>, the titular bride<\/strong>.<\/phrase>","social class of Victor's parents<\/word>","restore the wealth of Victoria's family<\/word>","both fall in love with each other<\/word>","wedding rehearsal<\/word>","forgetting his vows<\/word>","he practices his vows<\/word>","wedding ring on a root<\/word>","rises from the grave<\/word>","claiming that she is now Victor's wife<\/word>","Emily was pitilessly murdered<\/word>","secretly eloped with him<\/word>","Desperate to reunite with Victoria<\/word>","whole story<\/word>","place<\/word>","ambiguous circumstances<\/word>","European village<\/word>","Victor Van Dort<\/word>","fish merchants<\/word>","Victoria Everglot<\/word>","neglected daughter<\/word>","impoverished aristocrats<\/word>","arranged marriage<\/word>","simultaneously raise<\/word>","accidentally setting<\/word>","dress<\/word>","nearby forest<\/word>","dead woman<\/word>","Emily<\/word>","Land of the Dead<\/word>","unnamed perpetrator<\/word>","Land of the Living<\/word>","The whole story<\/strong> takes place<\/strong> in ambiguous circumstances<\/strong>, apparently in a small European village<\/strong> in the 1700s or 1800s. Victor Van Dort<\/strong>, the son of wealthy fish merchants<\/strong>, and Victoria Everglot<\/strong>, the neglected daughter<\/strong> of impoverished aristocrats<\/strong>, prepare for their arranged marriage<\/strong>, which will simultaneously raise<\/strong> the social class of Victor's parents<\/strong> and restore the wealth of Victoria's family<\/strong>. Although both fall in love with each other<\/strong>, Victor ruins their wedding rehearsal<\/strong> by forgetting his vows<\/strong> and acting clumsily, accidentally setting<\/strong> Mrs. Everglot's dress<\/strong> afire. Fleeing to a nearby forest<\/strong> in embarrassment, he practices his vows<\/strong> with a tree and places his wedding ring on a root<\/strong>. However, the root is revealed to be the finger of a dead woman<\/strong> named Emily<\/strong>, who rises from the grave<\/strong> claiming that she is now Victor's wife<\/strong>, and spirits him away to the Land of the Dead<\/strong>. During his time with her, Victor learns that Emily was pitilessly murdered<\/strong> years ago by an unnamed perpetrator<\/strong> on the night she secretly eloped with him<\/strong>, bringing with her some family belongings, which he stole. Desperate to reunite with Victoria<\/strong>, Victor tricks Emily<\/strong> into returning to the Land of the Living<\/strong> by claiming he wants her to meet his parents.<\/phrase>","ruler of the underworld<\/word>","reunites with Victoria<\/word>","wish to marry her as soon as possible<\/word>","Emily discovers them<\/word>","drags Victor back to the Land of the Dead<\/word>","decide to marry her<\/word>","wedding rehearsal<\/word>","Emily<\/word>","Elder Gutknecht<\/word>","temporary passage<\/word>","Land of the Living<\/word>","presumed-wealthy visitor<\/word>","Lord Barkis Bittern<\/word>","Emily<\/strong> brings Victor to the see Elder Gutknecht<\/strong>, the kindly ruler of the underworld<\/strong>, who grants them temporary passage<\/strong> to the Land of the Living<\/strong>. Victor asks Emily<\/strong> to wait in the forest before he reunites with Victoria<\/strong> and confesses his wish to marry her as soon as possible<\/strong>. Before the pair can share a kiss, Emily discovers them<\/strong> and drags Victor back to the Land of the Dead<\/strong>, feeling betrayed and hurt. Victoria quickly tries to tell her parents of Victor's situation, but neither believe her and assume he has left her. Against her will, they decide to marry her<\/strong> to a presumed-wealthy visitor<\/strong> named Lord Barkis Bittern<\/strong>, who appeared at the wedding rehearsal<\/strong>.<\/phrase>","Victoria's impending marriage to Barkis<\/word>","Victor decides to marry Emily<\/word>","repeat his wedding vows<\/word>","drink a deadly poison<\/word>","head up to the Land of Living<\/word>","temporary panic<\/word>","joyous reunion<\/word>","Barkis exposes his intentions<\/word>","marry Victoria for her supposed wealth<\/word>","reject him<\/word>","Emily to stop<\/word>","denying Victoria a chance to live happily with him<\/word>","Emily<\/word>","Land of the Living<\/word>","After reconciling with Emily<\/strong>, Victor learns of Victoria's impending marriage to Barkis<\/strong> from his family's newly deceased coachman. Upset over this news, Victor decides to marry Emily<\/strong>, learning that this will require him to repeat his wedding vows<\/strong> in the Land of the Living<\/strong> and drink a deadly poison<\/strong> in order to join her in death. The dead swiftly prepare for the ceremony and head up to the Land of Living<\/strong>, where the town erupts into a temporary panic<\/strong> upon their arrival until everyone recognizes their loved ones among the dead, and they have a joyous reunion<\/strong>. In the chaos caused by their arrival, a panicked Barkis exposes his intentions<\/strong> to marry Victoria for her supposed wealth<\/strong>, leading her to reject him<\/strong>. Victoria arrives at Victor and Emily<\/strong>'s wedding as Victor completes his vows and prepares to drink the poison, only for Emily to stop<\/strong> him when she realizes she is denying Victoria a chance to live happily with him<\/strong>.<\/phrase>","rekindle Victor and Victoria's relationship<\/word>","Barkis arrives to kidnap Victoria<\/word>","recognize him<\/word>","previous fianc\u00e9 and murderer<\/word>","rescue Victoria<\/word>","unwittingly drinks the poison<\/word>","causing him to die<\/word>","take retribution against him<\/word>","frees Victor of his vow to marry her<\/word>","allowing him to marry Victoria<\/word>","fade away into hundreds of butterflies<\/word>","Emily<\/word>","Just as Emily<\/strong> tries to rekindle Victor and Victoria's relationship<\/strong>, Barkis arrives to kidnap Victoria<\/strong>, causing Emily<\/strong> to recognize him<\/strong> as her previous fianc\u00e9 and murderer<\/strong>. Victor duels with Barkis to rescue Victoria<\/strong>, whereupon Emily<\/strong> intercedes to save Victor's life. Barkis mockingly toasts Emily<\/strong> for dying unwed and unwittingly drinks the poison<\/strong> that Victor nearly took, causing him to die<\/strong>, which allows the dead \u2013 who cannot interfere in the affairs of the living \u2013 to take retribution against him<\/strong> for his crimes. Emily<\/strong>, now released from her torment, frees Victor of his vow to marry her<\/strong> and returns his ring to him, allowing him to marry Victoria<\/strong>. As she exits the church, she throws her wedding bouquet to Victoria, and then proceeds to fade away into hundreds of butterflies<\/strong> in the moonlight as Victor and Victoria watch on in each other's embrace.<\/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':1994, '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':1994, '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':1994, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }