var presentation = ["Parks and Recreation<\/word>","Shoe Polishing Stand<\/word>","Pawnee City Hall<\/word>","Burt Macklin<\/word>","Andy Dwyer<\/word>","April Ludgate<\/word>","successful musician<\/word>","Mouse Rat<\/word>","formerly ran<\/word>","alter egos<\/word>","Kip Hackman<\/word>","Johnny Karate<\/word>","Jonathan Karate<\/word>","Sargent Thunderfist MD<\/word>","Chris Pratt<\/word>","Andy Dwyer<\/strong> is a fictional character in the NBC comedy Parks and Recreation<\/strong>. He is married to April Ludgate<\/strong>, is a successful musician<\/strong> in the band Mouse Rat<\/strong>, and formerly ran<\/strong> the Shoe Polishing Stand<\/strong> in Pawnee City Hall<\/strong>. His alter egos<\/strong> are Burt Macklin<\/strong>, Kip Hackman<\/strong>, Johnny Karate<\/strong>, Jonathan Karate<\/strong>, and Sargent Thunderfist MD<\/strong>. He is portrayed by Chris Pratt<\/strong>.<\/phrase>","boyfriend<\/word>","nursing<\/word>","lazy<\/word>","spoiled<\/word>","unemployed<\/word>","his rock band<\/word>","Andy Dwyer<\/word>","Ann Perkins<\/word>","lead singer and guitarist<\/word>","numerous names<\/word>","Scarecrow Boat<\/word>","Mouse Rat<\/word>","At the start of the series, Andy Dwyer<\/strong> is the boyfriend<\/strong> of Ann Perkins<\/strong>. The two had been living together for three years, but Ann matured faster than Andy did and, while Ann entered into a career in nursing<\/strong>, Andy remained lazy<\/strong> and spoiled<\/strong>. Andy is unemployed<\/strong>, but is the lead singer and guitarist<\/strong> for his rock band<\/strong>, which has gone through numerous names<\/strong> including Scarecrow Boat<\/strong>, and more recently, Mouse Rat<\/strong>.<\/phrase>","pit<\/word>","breaks his legs<\/word>","call Leslie's attention to the pit<\/word>","He falls into the pit<\/strong> behind Ann's house and breaks his legs<\/strong>. This causes Ann to call Leslie's attention to the pit<\/strong>, which sparks Leslie's desire to have the pit<\/strong> filled and turned into something new.<\/phrase>","lied to her<\/word>","keep spoiling him<\/word>","breaks up with Andy<\/word>","kicks him out of their house<\/word>","Eventually, Ann learns that Andy lied to her<\/strong> about how long he needed casts on his legs so that she would keep spoiling him<\/strong>. This infuriates Ann, and she breaks up with Andy<\/strong> and kicks him out of their house<\/strong>.<\/phrase>","pit<\/word>","failed attempts<\/word>","reconcile<\/word>","injured<\/word>","considers suing the town<\/word>","settle out of court<\/word>","shoe-shiner<\/word>","Pawnee City Hall<\/word>","second time<\/word>","part<\/word>","his settlement<\/word>","Andy moves into a tent pitched in the pit<\/strong> and watches Ann, claiming to be protecting her. He made many failed attempts<\/strong> to reconcile<\/strong> with Ann. Andy is injured<\/strong> in the pit<\/strong> a second time<\/strong> when Leslie arranges to have it filled with dirt, unaware Andy is inside at the time. Andy considers suing the town<\/strong> with the hopes of getting money and winning Ann back, but Leslie convinces him to settle out of court<\/strong> in exchange for the pit<\/strong> being filled in. Leslie gives Andy a job as the shoe-shiner<\/strong> at the Pawnee City Hall<\/strong> as part<\/strong> of his settlement<\/strong>.<\/phrase>","Parks Department intern<\/word>","unaware of her feelings<\/word>","Burt Macklin<\/word>","their age difference<\/word>","April Ludgate<\/word>","crush<\/word>","Greg Pikitis<\/word>","first appearance<\/word>","his alias<\/word>","April Ludgate<\/strong>, the Parks Department intern<\/strong>, has developed a crush<\/strong> on Andy, but he is so far unaware of her feelings<\/strong> toward him. In \"Greg Pikitis<\/strong>\", Andy makes his first appearance<\/strong> as his alias<\/strong>, Burt Macklin<\/strong> from the FBI, while attempting to interrogate a teenage prankster named Greg Pikitis<\/strong>. Toward the end of the season 2, Andy begins to reciprocate April's feelings, but their age difference<\/strong> causes a wedge between them.<\/phrase>","April finally agrees to go out with him<\/word>","season finale<\/word>","residual feelings<\/word>","In the season finale<\/strong>, Andy admits to April that he likes her and asks her out, but she turns him down due to what she perceives as his residual feelings<\/strong> for Ann. When Andy is hospitalized, April finally agrees to go out with him<\/strong> and then kisses him. Unfortunately, Ann kissed Andy earlier and when Andy tells her this, she storms off.<\/phrase>","new boyfriend<\/word>","vows to win her back<\/word>","encourages him to visit her<\/word>","April Ludgate<\/word>","Eduardo<\/word>","Flu Season<\/word>","April Ludgate<\/strong>, still angry with Andy for having kissed Ann, returns from a vacation with her new boyfriend<\/strong> Eduardo<\/strong>. A disappointed Andy vows to win her back<\/strong>. In \"Flu Season<\/strong>\", he fills in as Ron's assistant at work. Despite his attempts not to get involved in other people's personal affairs, Ron confides in Andy that April is in the hospital and encourages him to visit her<\/strong>.<\/phrase>","stopping her from moving to Indianapolis<\/word>","finally forgives Andy<\/word>","Media Blitz<\/word>","Throughout \"Media Blitz<\/strong>\", he struggles to do everything April hates with the hopes of stopping her from moving to Indianapolis<\/strong>. After Ron encourages April to stop stringing Andy along, she finally forgives Andy<\/strong> and kisses him.<\/phrase>","she loves him<\/word>","I love you too<\/word>","expressing love<\/word>","April and Andy's Fancy Party<\/word>","secret wedding<\/word>","Harvest Festival<\/word>","Awesome-sauce<\/word>","In \"Harvest Festival<\/strong>\", April tells Andy she loves him<\/strong>, but is displeased when Andy replies, \"Awesome-sauce<\/strong>!\" instead of \"I love you too<\/strong>.\" She later learns, however, that this is Andy's way of expressing love<\/strong>. In \"April and Andy's Fancy Party<\/strong>\", Andy and April invite all their friends and family to a dinner party, which turns out to be their secret wedding<\/strong>.<\/phrase>","improve himself<\/word>","decides to take college classes<\/word>","Intro to Women's Studies<\/word>","Smallest Park<\/word>","In \"Smallest Park<\/strong>\", at Ron and April's encouragement, Andy wants to improve himself<\/strong> and decides to take college classes<\/strong>. He mentions that he never graduated college because he \"never 'attended' it.\" He decides upon \"Intro to Women's Studies<\/strong>.\"<\/phrase>","what they want to do with their lives<\/word>","find himself a new career<\/word>","dream jobs<\/word>","police officer<\/word>","At the end of season 4, April and Andy are attempting to figure out what they want to do with their lives<\/strong>. Andy is determined to find himself a new career<\/strong>. April realizes that his list of dream jobs<\/strong> all have to do with law enforcement, and encourages him to try to become a police officer<\/strong>.<\/phrase>","ambition<\/word>","police officer<\/word>","passing the police academy entrance exams<\/word>","police exam<\/word>","passing his written test<\/word>","failing his personality test<\/word>","During the fifth season, Andy continues to pursue his ambition<\/strong> to become a police officer<\/strong>, routinely seeking help from others to better his chances of passing the police academy entrance exams<\/strong>. During his police exam<\/strong>, Andy ends up passing his written test<\/strong> with a perfect score, but failing his personality test<\/strong> since he answers all the questions very personally and not in a cop's mindset. Afterwards he is depressed since he is not fit to be a cop.<\/phrase>","nephew's birthday<\/word>","knack for children's entertainment<\/word>","Craig Middlebrooks<\/word>","perform<\/word>","Johnny Karate<\/word>","When Craig Middlebrooks<\/strong> asks him to perform<\/strong> for his nephew's birthday<\/strong>, Andy discovers he has a knack for children's entertainment<\/strong>, and April encourages him to pursue it as a career path under the name \"Johnny Karate<\/strong>.\"<\/phrase>","hosting a kids' TV show<\/word>","Johnny Karate<\/word>","It's 2017 and Andy is now hosting a kids' TV show<\/strong> as his Johnny Karate<\/strong> persona. Years after 2017, Andy has two children with his wife April.<\/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':1732, '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':1732, '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':1732, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }