var presentation = ["Caroline, or Change<\/word>","Jeanine Tesori<\/word>","book and lyrics<\/word>","Tony Kushner<\/word>","score combines spirituals<\/word>","Motown<\/word>","classical music<\/word>","Jewish klezmer and folk music<\/word>","Caroline, or Change<\/strong> is a musical with music by Jeanine Tesori<\/strong> and book and lyrics<\/strong> by Tony Kushner<\/strong>. The score combines spirituals<\/strong>, blues, Motown<\/strong>, classical music<\/strong>, and Jewish klezmer and folk music<\/strong>.<\/phrase>","Off-Broadway<\/word>","Broadway<\/word>","London<\/word>","The show ran both Off-Broadway<\/strong> and on Broadway<\/strong> as well as in London<\/strong>.<\/phrase>","Lake Charles, Louisiana<\/word>","16 Feet Beneath The Sea<\/word>","items in the basement as people<\/word>","The Radio\/Laundry Quintet<\/word>","The Cigarette<\/word>","four kids<\/word>","cleaning houses for 22 years<\/word>","The Dryer\/I Got Four Kids<\/word>","hot day<\/word>","black maid<\/word>","launders clothes<\/word>","basement<\/word>","8-year-old son<\/word>","single parent<\/word>","Noah Down The Stairs<\/word>","share<\/word>","On a hot day<\/strong> in 1963 in Lake Charles, Louisiana<\/strong>, Caroline, a black maid<\/strong> who works for the Gellman family for $30 a week, launders clothes<\/strong> in the basement<\/strong> (\"16 Feet Beneath The Sea<\/strong>\"). Caroline keeps herself sane in the basement<\/strong> by imagining the items in the basement as people<\/strong> (\"The Radio\/Laundry Quintet<\/strong>\"). The Gellmans' 8-year-old son<\/strong> Noah, whose mother has recently died of cancer, is attracted to Caroline, a no-nonsense single parent<\/strong> (\"Noah Down The Stairs<\/strong>\"). Caroline allows Noah to light her one cigarette each day, a secret they can share<\/strong> (\"The Cigarette<\/strong>\"). Caroline puts the laundry in the dryer and sings about her four kids<\/strong> and cleaning houses for 22 years<\/strong> (\"The Dryer\/I Got Four Kids<\/strong>\").<\/phrase>","Noah's new stepmother Rose<\/word>","Caroline, There's Extra Food<\/word>","has lost his faith<\/word>","There is No God, Noah<\/word>","raise<\/word>","extra food<\/word>","Rose Stopnick Can Cook<\/word>","Long Distance<\/word>","Noah's new stepmother Rose<\/strong> cannot give Caroline a raise<\/strong>, but tells her to take some extra food<\/strong> home to her kids (\"Caroline, There's Extra Food<\/strong>\"); Caroline declines. Noah's father Stuart, despondent since his wife's death, tells Noah he has lost his faith<\/strong> (\"There is No God, Noah<\/strong>\"). Noah confesses that he hates Rose (\"Rose Stopnick Can Cook<\/strong>\"). Rose confesses to her father, Mr. Stopnick, that she is unhappy as well (\"Long Distance<\/strong>\").<\/phrase>","Caroline argues with her friend Dotty<\/word>","lifestyles<\/word>","Dotty and Caroline<\/word>","destruction of a statue of a Confederate soldier<\/word>","President Kennedy has been assassinated<\/word>","The Bus\/That Can't Be<\/word>","Moon Change<\/word>","Moon Trio<\/word>","After work, Caroline argues with her friend Dotty<\/strong> about each other's lifestyles<\/strong> (\"Dotty and Caroline<\/strong>\"). The moon rises as they wait for a bus (\"Moon Change<\/strong>\"). They discuss the recent mysterious destruction of a statue of a Confederate soldier<\/strong> at the courthouse (\"Moon Trio<\/strong>\"). The bus arrives with devastating news: President Kennedy has been assassinated<\/strong> (\"The Bus\/That Can't Be<\/strong>\").<\/phrase>","any money Caroline finds in his laundry will be hers to keep<\/word>","Noah and Rose<\/word>","President Kennedy did for the Jews<\/word>","good he intended to do for African Americans<\/word>","does not care<\/word>","JFK never fulfilled his promises to the black community<\/word>","No One Waiting\/Night Mama<\/word>","Gonna Pass Me a Law\/Noah Goes To Sleep<\/word>","Inside\/Outside\/JFK<\/word>","Emmie<\/word>","pass<\/word>","Rose tells Noah to stop leaving money in his pants pockets, and that any money Caroline finds in his laundry will be hers to keep<\/strong> (\"Noah and Rose<\/strong>\"). The Gellman family reminisces about the good President Kennedy did for the Jews<\/strong>-and Dotty reminisces about the good he intended to do for African Americans<\/strong> (\"Inside\/Outside\/JFK<\/strong>\"). On the front porch of her house, Caroline tells her teenage daughter Emmie<\/strong> that the president is dead. Emmie<\/strong> says she does not care<\/strong>, because JFK never fulfilled his promises to the black community<\/strong> (\"No One Waiting\/Night Mama<\/strong>\"). Noah, awake in his bedroom, asks Caroline what laws she would pass<\/strong> if she were president (\"Gonna Pass Me a Law\/Noah Goes To Sleep<\/strong>\").<\/phrase>","Noah Has a Problem<\/word>","trouble bonding<\/word>","Quarter in the Bleach Cup<\/word>","Emmie<\/word>","Jackie<\/word>","Caroline Takes My Money Home\/Roosevelt Petrucius Coleslaw<\/word>","Rose tells Caroline she is allowed to keep any money she finds in Noah's pants, to supplement her salary and teach Noah a lesson (\"Noah Has a Problem<\/strong>\"). Noah and his father, Stuart, have trouble bonding<\/strong> (\"Stuart and Noah\"). Noah, aware of her situation, purposefully leaves his candy and comic book money in his pockets, as well as seventy-five cents (\"Quarter in the Bleach Cup<\/strong>\"). Caroline feels bad about keeping it, but does so, out of necessity. Caroline brings the money to Emmie<\/strong>, Jackie<\/strong>, and Joe who discuss all the things they can do and things they can buy with it (\"Caroline Takes My Money Home\/Roosevelt Petrucius Coleslaw<\/strong>\").<\/phrase>","Santa Comin' Caroline\/ Little Reward\/1943<\/word>","doesn't need her pity or money<\/word>","Mr. Gellman's Shirt<\/word>","I Saw Three Ships<\/word>","Christmas<\/word>","basement<\/word>","Ooh Child<\/word>","Emmie<\/word>","Chanukah party<\/word>","Rose Recovers<\/word>","Jackie<\/word>","encourage<\/word>","As Christmas<\/strong> approaches Caroline, ironing clothes in the basement<\/strong>, remembers her ex-husband, who was kind and thoughtful until he became abusive (\"Santa Comin' Caroline\/ Little Reward\/1943<\/strong>\"). Rose tells Caroline to keep any money Stuart leaves in his clothes as well but Caroline snaps at Rose saying she doesn't need her pity or money<\/strong> and threatens her with the iron (\"Mr. Gellman's Shirt<\/strong>\"\/\"Ooh Child<\/strong>\"). Rose then asks if she, Dotty, and Emmie<\/strong> will work at her upcoming Chanukah party<\/strong> (\"Rose Recovers<\/strong>\"). Emmie<\/strong>, Jackie<\/strong>, and Joe encourage<\/strong> her to keep taking the laundry money, because the family needs it (\"I Saw Three Ships<\/strong>\").<\/phrase>","the Chanukah party<\/word>","Noah educates Emmie about the holiday<\/word>","Noah, Out! It's Very Rude<\/word>","Dotty and Emmie<\/word>","white people have no right to be critical<\/word>","I Don't Want My Child To Hear That\/Mr. Stopnick and Emmie<\/word>","cannot talk that way to white people<\/word>","slavery is over<\/word>","A Twenty Dollar Bill and Why<\/word>","independent<\/word>","fighting for justice<\/word>","I Hate the Bus<\/word>","what they need<\/word>","Moon, Emmie, Stuart Trio<\/word>","Emmie<\/word>","Martin Luther King Jr<\/word>","Kitchen Fight<\/word>","At the Chanukah party<\/strong>, Noah educates Emmie about the holiday<\/strong> (\"the Chanukah party<\/strong>\"). Rose shoos Noah out of the kitchen (\"Noah, Out! It's Very Rude<\/strong>\") and Dotty tells Emmie<\/strong> about the courthouse statue (\"Dotty and Emmie<\/strong>\"). When Mr. Stopnick belittles Martin Luther King Jr<\/strong>.'s nonviolent civil disobedience, Emmie<\/strong> tells him white people have no right to be critical<\/strong> (\"I Don't Want My Child To Hear That\/Mr. Stopnick and Emmie<\/strong>\"). Mr. Stopnick is impressed with Emmie<\/strong>'s bravado, but Caroline tells her she cannot talk that way to white people<\/strong>; Emmie<\/strong> retorts that slavery is over<\/strong> (\"Kitchen Fight<\/strong>\"). Mr. Stopnick's Chanukah present to Noah is a $20 bill, intended as a life lesson about money and its value (\"A Twenty Dollar Bill and Why<\/strong>\"). At the bus stop, Emmie<\/strong> dreams of growing up to be independent<\/strong> and fighting for justice<\/strong> (\"I Hate the Bus<\/strong>\"). Back at the house, Stuart laments that he can give neither Rose nor Noah what they need<\/strong> (\"Moon, Emmie, Stuart Trio<\/strong>\").<\/phrase>","The Twenty Dollar Bill<\/word>","exchange racial insults<\/word>","returns the money and leaves<\/word>","Caroline and Noah Fight<\/word>","greed and hatefulness<\/word>","Sunday Morning\/Lot's Wife<\/word>","accepts her daughter's choices<\/word>","How Long Has This Been Going On?<\/word>","basement<\/word>","found<\/word>","Aftermath<\/word>","Salty Teardrops<\/word>","Emmie<\/word>","hug<\/word>","Noah inadvertently leaves the $20 bill in his pants; after school he rushes to the basement<\/strong>, but Caroline has found<\/strong> it and says she is keeping it, per their agreement (\"The Twenty Dollar Bill<\/strong>\"). Noah and Caroline exchange racial insults<\/strong>, then Caroline returns the money and leaves<\/strong> (\"Caroline and Noah Fight<\/strong>\"). After five days, Caroline has not returned to work (\"Aftermath<\/strong>\"). That Sunday on her way to church, Caroline realizes that the laundry money had only fostered greed and hatefulness<\/strong>; she asks God to free her from earthly desires (\"Sunday Morning\/Lot's Wife<\/strong>\"). The radio sings of a fierce heartbreak (\"Salty Teardrops<\/strong>\"). At church, Caroline gives Emmie<\/strong> a fierce hug<\/strong> and accepts her daughter's choices<\/strong> (\"How Long Has This Been Going On?<\/strong>\").<\/phrase>","tuck him into bed<\/word>","kiss him goodnight<\/word>","learn to live with his sorrow<\/word>","move on<\/word>","Why Does Our House Have a Basement?<\/word>","take down<\/word>","Confederate soldier statue<\/word>","greater cause<\/word>","brighter future<\/word>","change the future<\/word>","Underwater<\/word>","Emmie<\/word>","continue<\/word>","Jackie<\/word>","Caroline Thibedeaux<\/word>","Epilogue<\/word>","Noah finally lets Rose tuck him into bed<\/strong> and kiss him goodnight<\/strong>. Caroline returns to work and assures Noah that although things will never be the same between them, Noah will learn to live with his sorrow<\/strong> and move on<\/strong> (\"Why Does Our House Have a Basement?<\/strong>\"\/ \"Underwater<\/strong>\"). Emmie<\/strong> reveals that she helped take down<\/strong> the Confederate soldier statue<\/strong>, and proudly sings that she is the daughter of a maid, but she will continue<\/strong> to work for a greater cause<\/strong>, and her children will have a brighter future<\/strong>. Jackie<\/strong> and Joe come out to shush her and she tells them that it is up to the children of Caroline Thibedeaux<\/strong> to change the future<\/strong> (\"Epilogue<\/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':1481, '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':1481, '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':1481, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }