var presentation = ["The Outsiders<\/word>","S. E. Hinton<\/word>","junior in high school<\/word>","greasers<\/word>","coming-of-age novel<\/word>","work<\/word>","book details<\/word>","rival gangs<\/word>","Socs<\/word>","Socials<\/word>","first-person perspective<\/word>","teenage protagonist<\/word>","Ponyboy Curtis<\/word>","The Outsiders<\/strong> is a coming-of-age novel<\/strong> by S. E. Hinton<\/strong>, first published in 1967 by Viking Press. Hinton was 15 when she started writing the novel but did most of the work<\/strong> when she was 16 and a junior in high school<\/strong>. Hinton was 18 when the book was published. The book details<\/strong> the conflict between two rival gangs<\/strong> divided by their socioeconomic status: the working-class \"greasers<\/strong>\" and the upper-class \"Socs<\/strong>\" (short for Socials<\/strong>). The story is told in first-person perspective<\/strong> by teenage protagonist<\/strong> Ponyboy Curtis<\/strong>.<\/phrase>","greasers<\/word>","Sodapop<\/word>","come to his rescue<\/word>","Soc girls<\/word>","Ponyboy Curtis<\/word>","teenaged member<\/word>","loose gang<\/word>","movie theater<\/word>","Socs<\/word>","rival gang<\/word>","older brothers-the<\/word>","Darry<\/word>","next night<\/word>","Dally<\/word>","Johnny<\/word>","Cherry<\/word>","Marcia<\/word>","drive-in movie theater<\/word>","emotionally connecting<\/word>","first time<\/word>","his life<\/word>","Ponyboy Curtis<\/strong>, a teenaged member<\/strong> of a loose gang<\/strong> of \"greasers<\/strong>\", is leaving a movie theater<\/strong> when he is jumped by \"Socs<\/strong>\", the greasers<\/strong>' rival gang<\/strong>. Several greasers<\/strong>, including Ponyboy's two older brothers-the<\/strong> paternal Darry<\/strong> and the popular Sodapop<\/strong>-come to his rescue<\/strong>. The next night<\/strong>, Ponyboy and two greaser friends, the hardened Dally<\/strong> and the quiet Johnny<\/strong>, meet Cherry<\/strong> and Marcia<\/strong>, a pair of Soc girls<\/strong>, at a drive-in movie theater<\/strong>. Cherry<\/strong> spurns Dally<\/strong>'s rude advances, but Ponyboy ends up speaking civilly with Cherry<\/strong>, emotionally connecting<\/strong> with a Soc for the first time<\/strong> in his life<\/strong>.<\/phrase>","Cherry's boyfriend Bob<\/word>","badly beat up Johnny<\/word>","greasers<\/word>","exchange taunts<\/word>","prevents a fight<\/word>","slaps Ponyboy<\/word>","coldness<\/word>","his parents' recent deaths in a car crash<\/word>","Afterward<\/word>","Johnny<\/word>","Two-Bit<\/word>","walk<\/word>","Cherry<\/word>","Marcia<\/word>","willingly leaving<\/word>","Darry<\/word>","his anger<\/word>","Afterward<\/strong>, Ponyboy, Johnny<\/strong>, and their wisecracking friend Two-Bit<\/strong> begin to walk<\/strong> Cherry<\/strong> and Marcia<\/strong> home, when they are stopped by Cherry's boyfriend Bob<\/strong>, who badly beat up Johnny<\/strong> a few months back. Bob and the greasers<\/strong> exchange taunts<\/strong>, but Cherry<\/strong> prevents a fight<\/strong> by willingly leaving<\/strong> with Bob. Ponyboy gets home at two in the morning, enraging Darry<\/strong> until he suddenly slaps Ponyboy<\/strong>. Pony runs out the door and meets up with Johnny<\/strong>, expressing his anger<\/strong> at Darry<\/strong>'s increasing coldness<\/strong> in the wake of his parents' recent deaths in a car crash<\/strong>.<\/phrase>","wander into a park<\/word>","Socs surround them<\/word>","attempt to drown him<\/word>","Johnny stabs Bob<\/word>","killing him<\/word>","gives them money and a loaded gun<\/word>","hide in an abandoned church<\/word>","disguise<\/word>","Johnny<\/word>","heated talk<\/word>","Socs<\/word>","nearby fountain<\/word>","rush<\/word>","Dally<\/word>","stay<\/word>","Gone with the Wind<\/word>","beautiful sunrise<\/word>","Nothing Gold Can Stay<\/word>","Robert Frost<\/word>","Running away from home, Ponyboy and Johnny<\/strong> wander into a park<\/strong>, where Bob and four other Socs surround them<\/strong>. After some heated talk<\/strong>, Ponyboy spits at the Socs<\/strong>, prompting them to attempt to drown him<\/strong> in a nearby fountain<\/strong>, but Johnny stabs Bob<\/strong>, killing him<\/strong> and dispersing the rest. Terrified as to what to do next, Ponyboy and Johnny<\/strong> rush<\/strong> to find Dally<\/strong>, who gives them money and a loaded gun<\/strong>, directing them to hide in an abandoned church<\/strong> in Windrixville. During their stay<\/strong> there, Pony cuts and dyes his hair as a disguise<\/strong>, reads Gone with the Wind<\/strong> to Johnny<\/strong>, and, upon viewing a beautiful sunrise<\/strong>, recites the poem \"Nothing Gold Can Stay<\/strong>\" by Robert Frost<\/strong>.<\/phrase>","Days later<\/word>","check on them<\/word>","violence<\/word>","greasers<\/word>","escalated<\/word>","turn himself in<\/word>","notice the church<\/word>","caught fire<\/word>","trapped inside<\/word>","save the children<\/word>","he and Dally are not badly injured<\/word>","church roof fell on Johnny<\/word>","broke his back<\/word>","Sodapop<\/word>","Darry breaks down and cries<\/word>","Darry cares about him<\/word>","he loves him<\/word>","Dally<\/word>","Socs<\/word>","city-wide warfare<\/word>","Cherry<\/word>","Johnny<\/word>","attempt<\/word>","local schoolchildren<\/word>","Darry<\/word>","Days later<\/strong>, Dally<\/strong> comes to check on them<\/strong>, revealing that violence<\/strong> between the greasers<\/strong> and Socs<\/strong> has escalated<\/strong> since Bob's death into all-out city-wide warfare<\/strong>, with Cherry<\/strong> acting out of guilt as a spy for the greasers<\/strong>. Johnny<\/strong> decides to turn himself in<\/strong> and Dally<\/strong> agrees to take the boys back home. As they attempt<\/strong> to leave, they notice the church<\/strong> has caught fire<\/strong> and several local schoolchildren<\/strong> have become trapped inside<\/strong>. The greasers<\/strong> run inside the burning church to save the children<\/strong>, but Ponyboy is rendered unconscious by the fumes. At the hospital he discovers that he and Dally are not badly injured<\/strong>, but a piece of the church roof fell on Johnny<\/strong> and broke his back<\/strong>. Sodapop<\/strong> and Darry<\/strong> come to the hospital; Darry breaks down and cries<\/strong>. Ponyboy then realizes that Darry cares about him<\/strong>, and is only hard on him because he loves him<\/strong> and cares about his future.<\/phrase>","declare Pony and Johnny heroes<\/word>","charged with manslaughter<\/word>","final rumble<\/word>","expresses remorse<\/word>","following morning<\/word>","Johnny<\/word>","Two-Bit<\/word>","Randy<\/word>","The following morning<\/strong> the newspapers declare Pony and Johnny heroes<\/strong>, but Johnny<\/strong> will be charged with manslaughter<\/strong> for Bob's death. Two-Bit<\/strong> tells them that the greaser\u2013Soc rivalry is to be settled in a final rumble<\/strong>. Ponyboy and Two-Bit<\/strong> are approached by a Soc named Randy<\/strong>, Bob's best friend, who expresses remorse<\/strong> for his involvement in the gang war, lacks confidence about the rumble ending the feud, and says he will not participate.<\/phrase>","visits Johnny at the hospital<\/word>","critical condition<\/word>","end on good terms<\/word>","greasers<\/word>","he dies<\/word>","robbed a store<\/word>","running from the police<\/word>","shoot and kill him<\/word>","sick in bed<\/word>","judge frees Ponyboy from responsibility for Bob's death<\/word>","Later<\/word>","Cherry<\/word>","talk<\/word>","visit<\/word>","Johnny<\/word>","Dally<\/word>","time<\/word>","Afterward<\/word>","Overwhelmed<\/word>","Darry<\/word>","Later<\/strong>, Ponyboy visits Johnny at the hospital<\/strong>, where he is in critical condition<\/strong>. On their way home, Pony spots Cherry<\/strong> and they talk<\/strong>. Cherry<\/strong> says she is unwilling to visit<\/strong> Johnny<\/strong> in the hospital because he killed her boyfriend. Pony calls her a traitor, but after she explains herself they end on good terms<\/strong>. After escaping the hospital, Dally<\/strong> shows up just in time<\/strong> for the rumble. The greasers<\/strong> win the brutal fight. Afterward<\/strong>, Pony and Dally<\/strong> hurry back to the hospital to see Johnny<\/strong>, but he dies<\/strong> moments Later<\/strong> and a maniacal Dally<\/strong> runs out of the room. Pony returns home that night feeling confused and disoriented. Dally<\/strong> calls the house to say that he has robbed a store<\/strong> and is running from the police<\/strong>. The greasers<\/strong> find Dally<\/strong> deliberately pointing an unloaded gun at the police, causing them to shoot and kill him<\/strong>. Overwhelmed<\/strong>, Ponyboy faints and is sick in bed<\/strong> for many days due to the resulting concussion from the rumble. When the hearing finally comes, the judge frees Ponyboy from responsibility for Bob's death<\/strong> and allows Pony to remain at home with Darry<\/strong> and Soda.<\/phrase>","his grades drop<\/word>","failing English<\/word>","pass him if he writes a decent theme<\/word>","stay gold<\/word>","English assignment<\/word>","begins his essay with the opening line of the novel<\/word>","copy<\/word>","Gone with the Wind<\/word>","Johnny<\/word>","Ponyboy returns to school, but his grades drop<\/strong>. Although he is failing English<\/strong>, his teacher, Mr. Syme, says he will pass him if he writes a decent theme<\/strong>. In the copy<\/strong> of Gone with the Wind<\/strong> that Johnny<\/strong> gave him before dying, Ponyboy finds a letter from Johnny<\/strong> describing how he will die proudly after saving the kids from the fire. Johnny<\/strong> also urges Ponyboy to \"stay gold<\/strong>\". Ponyboy decides to write his English assignment<\/strong> about the recent events, and begins his essay with the opening line of the novel<\/strong>, \"When I stepped out into the bright sunlight from the darkness of the movie house, I had only two things on my mind: Paul Newman and a ride home...\"<\/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':1823, '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':1823, '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':1823, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }