var presentation = ["Parks and Recreation<\/word>","dark sense of humor<\/word>","Ron Swanson's assistant<\/word>","intern<\/word>","April Ludgate-Dwyer<\/word>","dark side<\/word>","apathetic college student<\/word>","Aubrey Plaza<\/word>","April Ludgate-Dwyer<\/strong> is a fictional character in the NBC comedy Parks and Recreation<\/strong> who has a fascination with \"the dark side<\/strong>.\" At the beginning of the series, she is an apathetic college student<\/strong> with a rather dark sense of humor<\/strong> and is Ron Swanson's assistant<\/strong>. She is employed by the Pawnee Department of Parks and Recreation<\/strong>, and was originally hired as an intern<\/strong>. She is portrayed by Aubrey Plaza<\/strong>.<\/phrase>","intern<\/word>","Parks and Recreation<\/word>","extremely disinterested<\/word>","college student<\/word>","April Ludgate is a college student<\/strong> who starts out working as an intern<\/strong> in the Pawnee Parks and Recreation<\/strong> department. April is extremely disinterested<\/strong> in the job and acts very dryly and sarcastically around her co-workers. She is often annoyed by her fellow parks department workers.<\/phrase>","ex-boyfriend<\/word>","remains unaware of her feelings<\/word>","develop<\/word>","crush<\/word>","Andy Dwyer<\/word>","Ann Perkins<\/word>","city hall<\/word>","Shoe Polishing Stand<\/word>","smile<\/word>","April begins to develop<\/strong> a crush<\/strong> on Andy Dwyer<\/strong>, the ex-boyfriend<\/strong> of Ann Perkins<\/strong> who works in city hall<\/strong> and is seen hanging around Andy's Shoe Polishing Stand<\/strong> frequently. Andy is able to make April smile<\/strong>, which is something she rarely does. April flirts with Andy, but Andy remains unaware of her feelings<\/strong> toward him.<\/phrase>","remain close to Andy<\/word>","Ron's assistant<\/word>","The Set Up<\/word>","intern<\/word>","time<\/word>","full-time position<\/word>","Pawnee City Hall<\/word>","In order to remain close to Andy<\/strong>, April volunteers to work as Ron's assistant<\/strong> in \"The Set Up<\/strong>,\" ending her time<\/strong> as an intern<\/strong> and establishing herself a full-time position<\/strong> at the Pawnee City Hall<\/strong>.<\/phrase>","reciprocate her feelings<\/word>","their age difference<\/word>","point<\/word>","Toward the end of season 4 Andy and April's relationship begins to grow to the point<\/strong> that he begins to reciprocate her feelings<\/strong> but their age difference<\/strong> continues to be a wedge between them.<\/phrase>","asks her out<\/word>","does not want to get involved with him<\/word>","hospitalized<\/word>","season finale<\/word>","lasting feelings<\/word>","In the season finale<\/strong>, Andy tells April that he likes her and asks her out<\/strong>, but she tells him she does not want to get involved with him<\/strong> due to what she perceives as his lasting feelings<\/strong> for Ann. When Andy is hospitalized<\/strong>, she comes to him and says that she wants to go out with him and then kisses him. Unfortunately, Ann kissed Andy earlier and when Andy tells her this, she leaves.<\/phrase>","Go Big or Go Home<\/word>","make Andy jealous<\/word>","flu<\/word>","Flu Season<\/word>","bug Ann<\/word>","her hospital stay<\/word>","Venezuela<\/word>","budget problem<\/word>","Eduardo<\/word>","Dave Matthews Band<\/word>","In \"Go Big or Go Home<\/strong>,\" April reveals she's spent the last 3 months in Venezuela<\/strong> while the government was shut down in Pawnee due to the budget problem<\/strong>. While she was there, she met her new boyfriend Eduardo<\/strong>. At first, Andy is upset and hates Eduardo<\/strong>, but then the two get along and bond over Dave Matthews Band<\/strong>. Since she was hoping to use Eduardo<\/strong> to make Andy jealous<\/strong>, this infuriates April and she breaks up with him. April catches the flu<\/strong> in the episode \"Flu Season<\/strong>\" and proceeds to bug Ann<\/strong> throughout her hospital stay<\/strong> due to Ann kissing Andy.<\/phrase>","Chris Traeger's assistant<\/word>","least favorite things<\/word>","exchange<\/word>","might begin to think about the possibility of thinking about maybe staying<\/word>","April declares her love for Andy<\/word>","married<\/word>","April and Andy's Fancy Party<\/word>","Media Blitz<\/word>","Harvest Festival<\/word>","She also becomes Chris Traeger's assistant<\/strong> for an episode. In \"Media Blitz<\/strong>,\" April makes Andy do her least favorite things<\/strong> she has to do every day and in exchange<\/strong>, she \"might begin to think about the possibility of thinking about maybe staying<\/strong>.\" After one day of Andy doing her least favorite things<\/strong> and with Ron's advice, she forgives Andy and kisses him. In \"Harvest Festival<\/strong>,\" April declares her love for Andy<\/strong>. They get married<\/strong> in the episode \"April and Andy's Fancy Party<\/strong>\" on a spur-of-the-moment decision.<\/phrase>","The Comeback Kid<\/word>","three-legged dog<\/word>","allow Leslie to concentrate on the election<\/word>","Leslie<\/word>","City Council Campaign<\/word>","Champion<\/word>","She becomes a member of Leslie<\/strong>'s City Council Campaign<\/strong> as the \"youth outreach\". In the episode \"The Comeback Kid<\/strong>\" April and Andy adopt a three-legged dog<\/strong> named \"Champion<\/strong>.\" April takes over a large portion of Leslie<\/strong>'s duties in the Parks and Rec department towards the end of the season to allow Leslie to concentrate on the election<\/strong>.<\/phrase>","Washington D.C.<\/word>","veterinary school<\/word>","Pawnee Police Department<\/word>","Deputy Director of Pawnees Animal Control<\/word>","Bloomington<\/word>","April moves to Washington D.C.<\/strong> to work for Ben on a campaign while Andy tries to get into the Pawnee Police Department<\/strong>. Their marriage isn't harmed by the distance and Andy often sends her gifts. April becomes Deputy Director of Pawnees Animal Control<\/strong>. Towards the end of Season 5, April asks Ann for a letter of recommendation to veterinary school<\/strong> in Bloomington<\/strong>. In the final episode of the season, April reveals to Andy that she was accepted, to which Andy replies encouragingly.<\/phrase>","veterinary school<\/word>","realizes it is not what she wants to do<\/word>","London<\/word>","At the beginning of Season 6, April is planning on attending veterinary school<\/strong>, however, upon going to the orientation with Ann she realizes it is not what she wants to do<\/strong>. While she supports Andy for having a job away in London<\/strong>, she is very upset while he is away and misses him. When Andy returns, she actively supports him in playing music for children, deciding to become his manager.<\/phrase>","Ms. Ludgate-Dwyer Goes to Washington<\/word>","determine potential occupations for job-seekers<\/word>","Leslie<\/word>","National Parks Service<\/word>","American Service Foundation<\/word>","In \"Ms. Ludgate-Dwyer Goes to Washington<\/strong>,\" April is trying to find a way to tell Leslie<\/strong> that she wants to leave the National Parks Service<\/strong>. When she finally tells Leslie<\/strong>, after a bit of reluctance, Leslie<\/strong> decides to help her. Leslie<\/strong> takes April to the American Service Foundation<\/strong>, which helps determine potential occupations for job-seekers<\/strong>. After April's meeting, April tells Leslie<\/strong> that she would like to work at the Foundation itself.<\/phrase>","pregnant again<\/word>","Jack Dwyer<\/word>","Halloween<\/word>","In the series finale, April and Andy become parents. Jack Dwyer<\/strong> was born on Halloween<\/strong> 2023. She is shown pregnant again<\/strong> with their second child at the end of the episode.<\/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':1731, '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':1731, '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':1731, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }