var presentation = ["Eleanor & Park<\/word>","young adult novel<\/word>","Omaha, Nebraska<\/word>","curly red hair<\/word>","a half-Korean, 16-year-old boy<\/word>","Eleanor's first day<\/word>","connect through comic books<\/word>","Rainbow Rowell<\/word>","dual narratives<\/word>","two misfits<\/word>","16-year-old girl<\/word>","school bus<\/word>","mix tapes<\/word>","love story<\/word>","Eleanor & Park<\/strong> is the first young adult novel<\/strong> written by Rainbow Rowell<\/strong>. Published in 2012, the story follows dual narratives<\/strong> by Eleanor and Park, two misfits<\/strong> living in Omaha, Nebraska<\/strong> from 1986 to 1987. Eleanor, a chubby 16-year-old girl<\/strong> with curly red hair<\/strong>, and Park, a half-Korean, 16-year-old boy<\/strong>, meet on a school bus<\/strong> on Eleanor's first day<\/strong> at the school and gradually connect through comic books<\/strong> and mix tapes<\/strong> of '80s music, sparking a love story<\/strong>. Park grows to love Eleanor and Eleanor learns to understand Park.<\/phrase>","oldest in a family<\/word>","live with their mother and stepfather, Richie<\/word>","children share one bedroom<\/word>","Richie has removed the door<\/word>","not allow a curtain for privacy<\/word>","Richie is physically and emotionally abusive<\/word>","often drunk<\/word>","children live in terror of him<\/word>","fellow students bully her<\/word>","Eleanor has just returned<\/word>","sleeping on the couch of a family friend<\/word>","Richie threw her out a year earlier<\/word>","Eleanor Douglas<\/word>","10th grade<\/word>","two girls<\/word>","three boys<\/word>","tiny two-bedroom house<\/word>","one bathroom<\/word>","strange clothing combinations<\/word>","Eleanor Douglas<\/strong> is beginning 10th grade<\/strong>. She is the oldest in a family<\/strong> of two girls<\/strong> and three boys<\/strong>. All the children live with their mother and stepfather, Richie<\/strong>, in a tiny two-bedroom house<\/strong>. The children share one bedroom<\/strong>. There is one bathroom<\/strong>, and Richie has removed the door<\/strong> and will not allow a curtain for privacy<\/strong>. Richie is physically and emotionally abusive<\/strong> to the mother and often drunk<\/strong>. The children live in terror of him<\/strong>. Eleanor does not own a toothbrush or properly fitting clothes. She patches her clothes in bright colors, wears ribbons in her hair, and creates strange clothing combinations<\/strong>, over which her fellow students bully her<\/strong>. Eleanor has just returned<\/strong> after sleeping on the couch of a family friend<\/strong> since Richie threw her out a year earlier<\/strong>.<\/phrase>","his family is not affluent<\/word>","his home is filled with love<\/word>","tall<\/word>","masculine<\/word>","Park takes after his mother<\/word>","shorter than his younger brother<\/word>","disappointment<\/word>","alternative music<\/word>","comics<\/word>","insecure<\/word>","Park Sheridan<\/word>","Omaha<\/word>","whole life<\/word>","his parents<\/word>","different backgrounds<\/word>","his size<\/word>","Asian heritage<\/word>","Park Sheridan<\/strong> has lived in Omaha<\/strong> his whole life<\/strong>. While his family is not affluent<\/strong>, and his parents<\/strong> come from very different backgrounds<\/strong>, his home is filled with love<\/strong>. While his father is tall<\/strong> and masculine<\/strong>, Park takes after his mother<\/strong> in appearance and is shorter than his younger brother<\/strong>. Park believes he is a disappointment<\/strong> and is unenthusiastic about taekwondo, which his father values. Park is instead interested in alternative music<\/strong> and comics<\/strong>. He feels insecure<\/strong> about his size<\/strong> and Asian heritage<\/strong>, despite getting along with the popular kids at school.<\/phrase>","Eleanor's first day<\/word>","students find her weird<\/word>","get her yelled at by the driver<\/word>","Park rudely offers her a seat<\/word>","Eleanor is one of the smartest students in class<\/word>","new school<\/word>","school bus<\/word>","cry<\/word>","connect<\/word>","On Eleanor's first day<\/strong> at her new school<\/strong>, the students find her weird<\/strong>. They rearrange their seats on the school bus<\/strong> to get her yelled at by the driver<\/strong>. When Eleanor is about to cry<\/strong>, Park rudely offers her a seat<\/strong>. They have a few classes together during which Park notices Eleanor is one of the smartest students in class<\/strong>. They begin to connect<\/strong>.<\/phrase>","Eleanor is regularly bullied at school<\/word>","someone writes crude remarks in her school books<\/word>","One night, Eleanor hears gunshots and calls 911<\/word>","police believe Richie's lies over her report<\/word>","conceal her living situation<\/word>","frustrated<\/word>","when he takes some things for granted<\/word>","She tries to reject Park's gifts<\/word>","unworthy<\/word>","two spend more time together in secret<\/word>","Richie won't allow Eleanor to have a boyfriend<\/word>","Park professes his love for Eleanor<\/word>","Her first meeting with his parents<\/word>","does not go well<\/word>","Richie<\/word>","Eleanor is regularly bullied at school<\/strong>. Girls cover her gym locker with sanitary pads, and someone writes crude remarks in her school books<\/strong>. At home, Richie<\/strong> frequently screams at Eleanor's mother while drunk. One night, Eleanor hears gunshots and calls 911<\/strong>, but the police believe Richie's lies over her report<\/strong>. Eleanor tries to conceal her living situation<\/strong> from Park, but gets frustrated<\/strong> when he takes some things for granted<\/strong>, like a telephone, batteries, or safety. She tries to reject Park's gifts<\/strong>, believing herself unworthy<\/strong>. The two spend more time together in secret<\/strong>, since Richie won't allow Eleanor to have a boyfriend<\/strong>, and her mother and siblings' loyalties have shifted to Richie<\/strong>. Park professes his love for Eleanor<\/strong>, making her uncomfortable. Her first meeting with his parents<\/strong>, especially his mother, does not go well<\/strong>.<\/phrase>","Park gets into a fight with Steve<\/word>","bullying Eleanor<\/word>","His mother grounds him forever<\/word>","thinking Eleanor is leading Park into trouble<\/word>","proud of Park<\/word>","Richie is an abusive alcoholic<\/word>","Park's mother invites Eleanor to stay at their house<\/word>","Eleanor's uncle offers to take Eleanor to Minnesota<\/word>","attend a program for gifted teens<\/word>","Richie says no<\/word>","kick<\/word>","Park gets into a fight with Steve<\/strong>, who was bullying Eleanor<\/strong>, and lands a taekwondo kick<\/strong> to Steve's mouth. Park's nose is broken in return. His mother grounds him forever<\/strong>, thinking Eleanor is leading Park into trouble<\/strong>. Park's father, on the other hand, is proud of Park<\/strong> and understands that Richie is an abusive alcoholic<\/strong>. After seeing Eleanor's family, Park's mother invites Eleanor to stay at their house<\/strong>. Eleanor accepts and lies to her family about it. Eleanor's uncle offers to take Eleanor to Minnesota<\/strong> for the summer so she can attend a program for gifted teens<\/strong>, but Richie says no<\/strong>.<\/phrase>","fight between Richie and her mother<\/word>","personal possessions destroyed<\/word>","matches a hateful message written by Richie<\/word>","handwriting of the crude notes in her school books<\/word>","formulate a way to get to her uncle<\/word>","St. Paul, Minnesota<\/word>","Park insists upon driving her<\/word>","Eleanor's aunt and uncle welcome her<\/word>","plan to remove her siblings as well<\/word>","One night, Park's mom tells the kids to go on a date. Eleanor returns home to a fight between Richie and her mother<\/strong> and she finds her personal possessions destroyed<\/strong>. She matches a hateful message written by Richie<\/strong> to the handwriting of the crude notes in her school books<\/strong>. Eleanor flees and ends up in Steve's garage with him and Tina, who turn out to not be as bad as she had thought. She goes to Park's house and tries to formulate a way to get to her uncle<\/strong> in St. Paul, Minnesota<\/strong>. Park insists upon driving her<\/strong>. His father sees him sneaking out of the house, but, surprisingly, gives Park money and tells him to take the truck. Park leaves Eleanor at her uncle's house. Eleanor's aunt and uncle welcome her<\/strong> and plan to remove her siblings as well<\/strong>.<\/phrase>","Park sends Eleanor letters<\/word>","she does not respond<\/word>","Eleanor's siblings and mother disappear<\/word>","Richie's house<\/word>","Park passes by Eleanor's former house frequently<\/word>","Park receives a postcard from Eleanor<\/word>","three words on it<\/word>","Richie<\/word>","Park sends Eleanor letters<\/strong>, but she does not respond<\/strong>. Park tries to forget her, but can't. Soon, Eleanor's siblings and mother disappear<\/strong> from Richie's house<\/strong>, leaving Richie<\/strong> alone once again. Park passes by Eleanor's former house frequently<\/strong>, longing for her. Six months later, Park receives a postcard from Eleanor<\/strong> with three words on it<\/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':2075, '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':2075, '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':2075, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }