var presentation = ["sequel to The Addams Family<\/word>","murder him<\/word>","Wednesday<\/word>","Addams Family Values<\/word>","fantasy comedy film<\/word>","Barry Sonnenfeld<\/word>","Paul Rudnick<\/word>","Charles Addams<\/word>","Debbie Jellinsky<\/word>","serial killer<\/word>","Uncle Fester<\/word>","his inheritance<\/word>","Pugsley<\/word>","summer camp<\/word>","Addams Family Values<\/strong> is a 1993 American fantasy comedy film<\/strong> directed by Barry Sonnenfeld<\/strong> and written by Paul Rudnick<\/strong>, based on the characters created by Charles Addams<\/strong>. It is the sequel to The Addams Family<\/strong>. Addams Family Values<\/strong> follows Debbie Jellinsky<\/strong>, a serial killer<\/strong> who marries Uncle Fester<\/strong> intending to murder him<\/strong> for his inheritance<\/strong>, while teenagers Wednesday<\/strong> and Pugsley<\/strong> are sent to summer camp<\/strong>.<\/phrase>","Wednesday<\/word>","murder him<\/word>","collect their inheritances<\/word>","Wednesday becomes suspicious of her intentions<\/word>","Gomez<\/word>","Morticia Addams<\/word>","Debbie Jellinsky<\/word>","care<\/word>","newborn son<\/word>","Pubert<\/word>","older siblings<\/word>","Pugsley<\/word>","failed attempts<\/word>","serial killer<\/word>","rich bachelors and murders<\/word>","Uncle Fester<\/word>","cover<\/word>","want<\/word>","summer camp<\/word>","Gomez<\/strong> and Morticia Addams<\/strong> hire a nanny named Debbie Jellinsky<\/strong> to take care<\/strong> of their newborn son<\/strong> Pubert<\/strong> after his older siblings<\/strong> Wednesday<\/strong> and Pugsley<\/strong>'s failed attempts<\/strong> to murder him<\/strong>. Unbeknownst to them, Debbie is a serial killer<\/strong> who marries rich bachelors and murders<\/strong> them to collect their inheritances<\/strong>. After Debbie seduces Uncle Fester<\/strong>, Wednesday becomes suspicious of her intentions<\/strong>. To maintain her cover<\/strong>, Debbie tricks Gomez<\/strong> and Morticia into believing that Wednesday<\/strong> and Pugsley<\/strong> want<\/strong> to go to summer camp<\/strong>.<\/phrase>","Wednesday<\/word>","Gary and Becky Granger<\/word>","Joel<\/word>","becomes attracted to Wednesday<\/word>","Debbie and Fester become engaged<\/word>","tries to kill Fester by throwing a boombox into the bathtub<\/word>","fails<\/word>","forces him to cut ties with his family<\/word>","transformed into a blue-eyed, rosy-cheeked, blond-haired baby<\/word>","disrupted family life<\/word>","horribly depressed<\/word>","Pugsley<\/word>","Camp Chippewa<\/word>","snobbish girl<\/word>","Amanda Buckman<\/word>","macabre appearance and behavior<\/word>","fellow outcast<\/word>","their honeymoon<\/word>","Frustrated<\/word>","Pubert<\/word>","Grandmama<\/word>","Gomez<\/word>","Wednesday<\/strong> and Pugsley<\/strong> are sent to Camp Chippewa<\/strong>, managed by the chipper Gary and Becky Granger<\/strong>, where they're singled out by the counselors and popular and snobbish girl<\/strong> Amanda Buckman<\/strong> for their macabre appearance and behavior<\/strong>. Joel<\/strong>, a nerdy bookworm and fellow outcast<\/strong>, becomes attracted to Wednesday<\/strong>. Debbie and Fester become engaged<\/strong>. At their bachelor and bachelorette parties, Debbie is horrified by the Addams family's relatives. On their honeymoon<\/strong>, she tries to kill Fester by throwing a boombox into the bathtub<\/strong>, but she fails<\/strong>. Frustrated<\/strong>, Debbie forces him to cut ties with his family<\/strong>; when they try to visit Fester and Debbie at their home, they're removed from the premises. The Addams are alarmed to find that Pubert<\/strong> has transformed into a blue-eyed, rosy-cheeked, blond-haired baby<\/strong>. Grandmama<\/strong> diagnoses this as a result of his disrupted family life<\/strong> and Gomez<\/strong> becomes horribly depressed<\/strong>.<\/phrase>","Wednesday as Pocahontas<\/word>","Gary's Thanksgiving play<\/word>","refuses to participate<\/word>","Joel<\/word>","forced to watch<\/word>","Disney and family films<\/word>","Wednesday<\/word>","agrees to take part<\/word>","stages a coup<\/word>","their fellow outcast campers<\/word>","sets the camp on fire<\/word>","Wednesday and Joel share their first kiss<\/word>","camp<\/word>","Pugsley<\/word>","Harmony Hut<\/word>","escape<\/word>","At camp<\/strong>, the counselors cast Wednesday as Pocahontas<\/strong> in Gary's Thanksgiving play<\/strong>. When she refuses to participate<\/strong>, she, Pugsley<\/strong> and Joel<\/strong> are sent to the camp<\/strong>'s \"Harmony Hut<\/strong>,\" where they're forced to watch<\/strong> several upbeat, heartwarming Disney and family films<\/strong>. Afterwards, Wednesday<\/strong> forges cheerfulness and agrees to take part<\/strong>. During the performance, she returns to her old self, stages a coup<\/strong> with the help of her brother and Joel<\/strong> along with the rest of their fellow outcast campers<\/strong>, captures Amanda, Gary and Becky and sets the camp on fire<\/strong>. The Addams siblings escape<\/strong> via a camp<\/strong> van and Wednesday and Joel share their first kiss<\/strong>.<\/phrase>","Debbie tries to kill Fester by blowing up their mansion<\/word>","he survives<\/word>","she was only interested in his money<\/word>","helps Fester escape<\/word>","Fester apologizes to Gomez<\/word>","Wednesday and Pugsley return<\/word>","she ties the family to electric chairs<\/word>","returned-to-normal<\/word>","Pubert escapes<\/word>","Pubert manipulates the wires and reverses the current<\/word>","electrocuting her instead<\/word>","Upstairs<\/word>","switch<\/word>","Debbie tries to kill Fester by blowing up their mansion<\/strong>, but he survives<\/strong>. She then pulls a gun and reveals to him she was only interested in his money<\/strong>; Thing drives Debbie's car into her and helps Fester escape<\/strong>. Fester apologizes to Gomez<\/strong> upon his return to the Addams' house, and Wednesday and Pugsley return<\/strong>, reuniting the family. Debbie takes another car and drives to Fester's house, where she ties the family to electric chairs<\/strong>, explaining - while the Addamses listen with sympathy and compassion - that she killed her parents and previous husbands for incredibly selfish and materialistic reasons. Upstairs<\/strong>, the returned-to-normal<\/strong> Pubert escapes<\/strong> from his crib and, via a series of improbable events, is propelled into the room where the family is being held. Debbie throws the switch<\/strong> to electrocute them, but Pubert manipulates the wires and reverses the current<\/strong>, electrocuting her instead<\/strong> and incinerating her into a pile of ash and credit cards.<\/phrase>","Pubert's first-birthday party<\/word>","Fester laments Debbie's loss<\/word>","smitten with Cousin Itt and Margaret's nanny, Dementia<\/word>","Wednesday<\/word>","Joel<\/word>","scare her husband to death<\/word>","grabs him<\/word>","hand<\/word>","Months later at Pubert's first-birthday party<\/strong>, Fester laments Debbie's loss<\/strong>, but soon becomes smitten with Cousin Itt and Margaret's nanny, Dementia<\/strong>. In the Addams family graveyard, Wednesday<\/strong> tells Joel<\/strong> that Debbie was a sloppy killer and she would instead scare her husband to death<\/strong>. As Joel<\/strong> lays flowers on Debbie's grave, a hand<\/strong> (presumably Thing) erupts from the earth and grabs him<\/strong>; he screams and Wednesday<\/strong> smiles.<\/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':1997, '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':1997, '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':1997, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }