var presentation = ["singer<\/word>","bullied by the football team<\/word>","high vocal range<\/word>","soprano singer<\/word>","Kurt comes out as gay<\/word>","develops a crush on Finn<\/word>","joins the football team<\/word>","kicker<\/word>","Finn's help<\/word>","cheerleading squad<\/word>","ultimately quits both<\/word>","competes with Rachel<\/word>","Defying Gravity<\/word>","Kurt becomes Finn's step<\/word>","their parents marry<\/word>","Kurt Hummel<\/word>","first season<\/word>","Wheels<\/word>","perform<\/word>","Wicked<\/word>","second season<\/word>","Kurt Hummel<\/strong> is a singer<\/strong> who is bullied by the football team<\/strong>. He has a high vocal range<\/strong>, and is identified as a soprano singer<\/strong>. Over the course of the first season<\/strong>, Kurt comes out as gay<\/strong> and develops a crush on Finn<\/strong>. He also joins the football team<\/strong> as a kicker<\/strong>, with Finn's help<\/strong>, and the cheerleading squad<\/strong> as a singer<\/strong>, though he ultimately quits both<\/strong>. In the episode \"Wheels<\/strong>\", he competes with Rachel<\/strong> to perform<\/strong> \"Defying Gravity<\/strong>\" from Wicked<\/strong>. Kurt becomes Finn's step<\/strong> brother later on in the second season<\/strong> when their parents marry<\/strong>.<\/phrase>","bullies him<\/word>","Kurt becomes close friends<\/word>","Karofsky kisses Kurt<\/word>","Karofsky blackmails him<\/word>","saying that if Kurt were to tell anyone<\/word>","he will kill him<\/word>","Kurt transfers to Dalton Academy<\/word>","escape further harassment<\/word>","Dave Karofsky<\/word>","second season<\/word>","openly gay student<\/word>","Dalton Academy<\/word>","Blaine Anderson<\/word>","After Dave Karofsky<\/strong> bullies him<\/strong> into a depression early in the second season<\/strong>, Kurt becomes close friends<\/strong> with an openly gay student<\/strong> at Dalton Academy<\/strong>, named Blaine Anderson<\/strong>. After Karofsky kisses Kurt<\/strong> in the heat of an argument, Karofsky blackmails him<\/strong> into keeping it quiet, saying that if Kurt were to tell anyone<\/strong> of the kiss that they shared, he will kill him<\/strong>. Kurt transfers to Dalton Academy<\/strong> to escape further harassment<\/strong> as a result.<\/phrase>","Dalton's show choir<\/word>","falls in love with Blaine<\/word>","two then begin a relationship<\/word>","Kurt eventually returns to McKinley<\/word>","formally declare their love<\/word>","beginning of the third season<\/word>","Blaine transfers to McKinley to be with Kurt<\/word>","two are still a couple<\/word>","end of the school year<\/word>","Blaine still has another year of high school<\/word>","Kurt graduates<\/word>","Kurt and Rachel both apply<\/word>","New York<\/word>","Kurt becomes a finalist<\/word>","impresses the school's dean<\/word>","day of his graduation<\/word>","he was not accepted<\/word>","Rachel was<\/word>","Warblers<\/word>","end<\/word>","second season<\/word>","drama school<\/word>","NYADA<\/word>","his audition<\/word>","Kurt then joins Dalton's show choir<\/strong>, The Warblers<\/strong>, and falls in love with Blaine<\/strong>. The two then begin a relationship<\/strong>. Kurt eventually returns to McKinley<\/strong>, and they formally declare their love<\/strong> at the end<\/strong> of the second season<\/strong>, and at the beginning of the third season<\/strong>, Blaine transfers to McKinley to be with Kurt<\/strong>. The two are still a couple<\/strong> at the end of the school year<\/strong>, though Blaine still has another year of high school<\/strong> after Kurt graduates<\/strong>. Kurt and Rachel both apply<\/strong> to the same New York<\/strong> drama school<\/strong>, NYADA<\/strong>. Kurt becomes a finalist<\/strong>, and impresses the school's dean<\/strong> at his audition<\/strong>; he discovers the day of his graduation<\/strong>, however, that he was not accepted<\/strong>, though Rachel was<\/strong>.<\/phrase>","The New Rachel<\/word>","Kurt and Rachel get an apartment together<\/word>","New York<\/word>","Kurt gets an internship<\/word>","Vogue.com<\/word>","pulls away from Blaine<\/word>","Blaine cheats on Kurt<\/word>","After confessing<\/word>","Kurt severs all ties<\/word>","first episode<\/word>","fourth season<\/word>","his infidelity<\/word>","In first episode<\/strong> of the fourth season<\/strong>, \"The New Rachel<\/strong>\", Kurt and Rachel get an apartment together<\/strong> in New York<\/strong>. Kurt gets an internship<\/strong> at Vogue.com<\/strong> and inadvertently pulls away from Blaine<\/strong>; distraught, Blaine cheats on Kurt<\/strong>. After confessing<\/strong> to Kurt of his infidelity<\/strong>, Kurt severs all ties<\/strong>.<\/phrase>","tries to get into NYADA<\/word>","perform a song<\/word>","get into NYADA<\/word>","gets applauded<\/word>","gets into NYADA<\/word>","begins to mend his and Blaine's relationship<\/word>","spend Christmas together<\/word>","New York<\/word>","his father is suffering from cancer<\/word>","British student<\/word>","crushes on him<\/word>","He hooks up with Blaine<\/word>","Will and Emma's wedding<\/word>","insists that they are not back together<\/word>","Kurt confesses to Adam<\/word>","he tries hard to forget Blaine<\/word>","he couldn't do it<\/word>","Vogue.com<\/word>","not ready to let him go<\/word>","his father's tests<\/word>","relieved<\/word>","Burt is out of danger<\/word>","stays for Regionals<\/word>","Blaine's insistence<\/word>","Carmen Tibideaux<\/word>","spot<\/word>","Being Alive<\/word>","his performance<\/word>","Thanksgiving<\/word>","Adam<\/word>","time<\/word>","his mentor<\/word>","Isabel<\/word>","Lima<\/word>","learn<\/word>","He later tries to get into NYADA<\/strong> and Carmen Tibideaux<\/strong> asks him to perform a song<\/strong> on the spot<\/strong> to get into NYADA<\/strong>. He sings \"Being Alive<\/strong>\" and gets applauded<\/strong> for his performance<\/strong> and gets into NYADA<\/strong>. Kurt begins to mend his and Blaine's relationship<\/strong> in \"Thanksgiving<\/strong>\" and they spend Christmas together<\/strong> in New York<\/strong> City. He also learns that his father is suffering from cancer<\/strong>. He meets Adam<\/strong>, a British student<\/strong> and crushes on him<\/strong> briefly. He hooks up with Blaine<\/strong> at Will and Emma's wedding<\/strong> though he insists that they are not back together<\/strong>. Later in New York<\/strong>, Kurt confesses to Adam<\/strong> that though he tries hard to forget Blaine<\/strong>, he couldn't do it<\/strong>. Though Kurt couldn't give time<\/strong> to Vogue.com<\/strong>, his mentor<\/strong> Isabel<\/strong> is not ready to let him go<\/strong>. He goes to Lima<\/strong> for his father's tests<\/strong> and is relieved<\/strong> to learn<\/strong> that Burt is out of danger<\/strong>. And he stays for Regionals<\/strong> on Blaine's insistence<\/strong>.<\/phrase>","Kurt later gets back together with Blaine<\/word>","accepts Blaine's proposal for marriage<\/word>","New York<\/word>","starts his own band<\/word>","recruits<\/word>","be his bandmates<\/word>","Blaine moves in with him<\/word>","Kurt starts to feel<\/word>","losing his identity<\/word>","decide to take things slow<\/word>","Blaine decides to move out<\/word>","Pamela-Lansbury<\/word>","Elliot<\/word>","Dani<\/word>","Santana<\/word>","his graduation<\/word>","Kurt later gets back together with Blaine<\/strong> and accepts Blaine's proposal for marriage<\/strong>. He goes back to New York<\/strong> and starts his own band<\/strong> \"Pamela-Lansbury<\/strong>\". He recruits<\/strong> Elliot<\/strong>, Dani<\/strong>, Santana<\/strong> and Rachel to be his bandmates<\/strong>. Though he is a bit skeptical about Elliot<\/strong>'s intentions at first, later he finds a good friend in him. Later, Blaine moves in with him<\/strong> after his graduation<\/strong> and Kurt starts to feel<\/strong> that he is losing his identity<\/strong>. They both decide to take things slow<\/strong> and Blaine decides to move out<\/strong>.<\/phrase>","Kurt gets hurt<\/word>","tries to help a gay kid from getting beaten up<\/word>","proud<\/word>","confident<\/word>","after that incident<\/word>","becomes popular in NYADA<\/word>","causes insecurity in Blaine<\/word>","assures Blaine of his love<\/word>","Kurt asks Blaine to perform along with him<\/word>","takes interest in Blaine<\/word>","Kurt assures Blaine<\/word>","he will support him<\/word>","no matter what<\/word>","Blaine lies to Kurt<\/word>","gets to perform in a showcase<\/word>","organized by June<\/word>","Kurt learns about the lie<\/word>","lashes out on Blaine<\/word>","Kurt reconciles with Blaine<\/word>","promises to support him<\/word>","asks Kurt to perform the last duet with him<\/word>","Blaine moves in with Kurt<\/word>","June Dolloway<\/word>","Kurt gets hurt<\/strong> when he tries to help a gay kid from getting beaten up<\/strong> but he feels proud<\/strong> and confident<\/strong> after that incident<\/strong>. He becomes popular in NYADA<\/strong> and that causes insecurity in Blaine<\/strong>. He later assures Blaine of his love<\/strong>. Kurt asks Blaine to perform along with him<\/strong> in front of June Dolloway<\/strong> who takes interest in Blaine<\/strong>. But Kurt assures Blaine<\/strong> that he will support him<\/strong>, no matter what<\/strong>. Blaine lies to Kurt<\/strong> that he gets to perform in a showcase<\/strong> which is organized by June<\/strong> for Blaine. When Kurt learns about the lie<\/strong>, he lashes out on Blaine<\/strong>. But later, Kurt reconciles with Blaine<\/strong> and promises to support him<\/strong>. Blaine, then surprises everyone when he asks Kurt to perform the last duet with him<\/strong> much to June's dismay. But June likes their performance and praises them. Blaine moves in with Kurt<\/strong>.<\/phrase>","Kurt breaks up with Blaine<\/word>","does not feel ready for marriage<\/word>","realizes<\/word>","he is still in love with him<\/word>","goes back to Lima<\/word>","help Rachel<\/word>","revive New Directions<\/word>","get back together with Blaine<\/word>","Blaine has moved on<\/word>","dating Dave Karofsky<\/word>","trapped in an elevator<\/word>","along with Blaine<\/word>","by Sue<\/word>","wants to get them back together<\/word>","ultimately resume their relationship<\/word>","double ceremony<\/word>","glee club wins Nationals<\/word>","Kurt and Blaine move to New York<\/word>","he completes his schooling at NYADA<\/word>","graduates<\/word>","two of them are well-known actors<\/word>","teach students in schools<\/word>","accept everyone<\/word>","become parents<\/word>","Rachel as their surrogate<\/word>","marry<\/word>","Brittany<\/word>","Santana<\/word>","Kurt breaks up with Blaine<\/strong> as he does not feel ready for marriage<\/strong>, but realizes<\/strong> that he is still in love with him<\/strong> and goes back to Lima<\/strong> to help Rachel<\/strong> revive New Directions<\/strong> and also get back together with Blaine<\/strong>. However, Blaine has moved on<\/strong> and is dating Dave Karofsky<\/strong>. Kurt later gets trapped in an elevator<\/strong> along with Blaine<\/strong> by Sue<\/strong> who wants to get them back together<\/strong>; to escape, they meet Sue's demand that they kiss each other. They ultimately resume their relationship<\/strong> and marry<\/strong> in a double ceremony<\/strong> with Brittany<\/strong> and Santana<\/strong>. After the glee club wins Nationals<\/strong>, Kurt and Blaine move to New York<\/strong> where he completes his schooling at NYADA<\/strong> and graduates<\/strong>. In 2020, the two of them are well-known actors<\/strong> who also teach students in schools<\/strong> to accept everyone<\/strong>. They become parents<\/strong> with Rachel as their surrogate<\/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':2424, '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':2424, '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':2424, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }