var presentation = ["A Wrinkle in Time<\/word>","young adult novel<\/word>","Madeleine L'Engle<\/word>","Calvin O'Keefe<\/word>","journey through space and time<\/word>","universe to universe<\/word>","save the Murrys' father and the world<\/word>","war between light and darkness<\/word>","good and evil<\/word>","mature into adolescents<\/word>","questions of spirituality and purpose<\/word>","conflicts of love, divinity, and goodness<\/word>","Newbery Medal<\/word>","Sequoyah Book Award<\/word>","Lewis Carroll Shelf Award<\/word>","main characters<\/word>","Meg Murry<\/word>","Charles Wallace Murry<\/word>","young characters<\/word>","A Wrinkle in Time<\/strong> is a young adult novel<\/strong> written by American author Madeleine L'Engle<\/strong>. First published in 1962, the book has won the Newbery Medal<\/strong>, the Sequoyah Book Award<\/strong>, and the Lewis Carroll Shelf Award<\/strong>. The main characters<\/strong>, Meg Murry<\/strong>, Charles Wallace Murry<\/strong>, and Calvin O'Keefe<\/strong>, embark on a journey through space and time<\/strong>, from universe to universe<\/strong>, as they endeavor to save the Murrys' father and the world<\/strong>. The novel offers a glimpse into the war between light and darkness<\/strong>, and good and evil<\/strong>, as the young characters<\/strong> mature into adolescents<\/strong> on their journey. The novel wrestles with questions of spirituality and purpose<\/strong>, as the characters are often thrown into conflicts of love, divinity, and goodness<\/strong>.<\/phrase>","Mrs. Whatsit<\/word>","tesseract<\/word>","scientific concept her father was working on<\/word>","visit Mrs. Whatsit's home<\/word>","Mrs. Who<\/word>","Mrs. Which<\/word>","promise to help Meg find and rescue her father<\/word>","One night<\/word>","Meg Murry<\/word>","new neighbor<\/word>","mysterious disappearance<\/word>","following day<\/word>","child genius brother<\/word>","fellow schoolmate<\/word>","unseen voice<\/word>","One night<\/strong>, thirteen-year-old Meg Murry<\/strong> meets an eccentric new neighbor<\/strong>, Mrs. Whatsit<\/strong>, who refers to something called a tesseract<\/strong>. She later finds out it is a scientific concept her father was working on<\/strong> before his mysterious disappearance<\/strong>. The following day<\/strong>, Meg, her child genius brother<\/strong> Charles, and fellow schoolmate<\/strong> Calvin visit Mrs. Whatsit's home<\/strong>, where the equally strange Mrs. Who<\/strong> and the unseen voice<\/strong> of Mrs. Which<\/strong> promise to help Meg find and rescue her father<\/strong>.<\/phrase>","Mrs. Whatsit<\/word>","Mrs. Who<\/word>","Mrs. Which<\/word>","tesseract<\/word>","folding the fabric of space and time<\/word>","Utopian world<\/word>","Centaur-like beings<\/word>","state of light and love<\/word>","universe is under attack<\/word>","evil being<\/word>","large dark cloud<\/word>","The Black Thing<\/word>","personification of evil<\/word>","Happy Medium<\/word>","woman with a crystal ball<\/word>","partially covered by the darkness<\/word>","Mrs. Whatsit is revealed to be a former star<\/word>","exploded<\/word>","self-sacrifice<\/word>","fight the darkness<\/word>","turn<\/word>","supernatural beings<\/word>","transport<\/word>","Uriel<\/word>","visit<\/word>","Earth<\/word>","Mrs. Whatsit<\/strong>, Mrs. Who<\/strong>, and Mrs. Which<\/strong> turn<\/strong> out to be supernatural beings<\/strong> who transport<\/strong> Meg, Charles, and Calvin through the universe by means of tesseract<\/strong>, a fifth-dimensional phenomenon explained as folding the fabric of space and time<\/strong>. Their first stop is the planet Uriel<\/strong>, a Utopian world<\/strong> filled with Centaur-like beings<\/strong> who live in a state of light and love<\/strong>. The Mrs. Ws reveal to the children that the universe is under attack<\/strong> from an evil being<\/strong> who appears as a large dark cloud<\/strong> called The Black Thing<\/strong>, which is essentially the personification of evil<\/strong>. The children are taken to visit<\/strong> the Happy Medium<\/strong>, a woman with a crystal ball<\/strong> through which they see that Earth<\/strong> is partially covered by the darkness<\/strong>, although great religious figures, philosophers, scientists, and artists have been fighting against it. Mrs. Whatsit is revealed to be a former star<\/strong> who exploded<\/strong> in an act of self-sacrifice<\/strong> to fight the darkness<\/strong>.<\/phrase>","succumbed to the Black Thing<\/word>","Meg's father is trapped<\/word>","would not succumb to the group mind<\/word>","Meg's father, Alexander, is being held prisoner<\/word>","IT, the evil disembodied brain<\/word>","Mrs. Who<\/word>","Alexander transports Calvin, Meg, and himself<\/word>","Ixchel<\/word>","Charles Wallace is left behind<\/word>","influence of IT<\/word>","Meg is paralyzed<\/word>","cures Meg's paralysis<\/word>","travel<\/word>","Camazotz<\/word>","The children travel<\/strong> to the dark planet of Camazotz<\/strong>, which has succumbed to the Black Thing<\/strong> and where Meg's father is trapped<\/strong> because he would not succumb to the group mind<\/strong> that causes inhabitants to behave in a mechanical way. In order to find their father, Charles Wallace deliberately allows himself to be hypnotized. He takes Meg and Calvin to the place where Meg's father, Alexander, is being held prisoner<\/strong>. Charles Wallace then takes them to IT, the evil disembodied brain<\/strong> with powerful abilities that controls the planet. Using special powers from Mrs. Who<\/strong>'s glasses, Alexander transports Calvin, Meg, and himself<\/strong> to the planet Ixchel<\/strong> before IT can control them all. Charles Wallace is left behind<\/strong>, still under the influence of IT<\/strong> and Meg is paralyzed<\/strong> from from injuries sustained during the trip. An inhabitant of the planet with featureless faces, tentacles and four arms proves to be both wise and gentle and cures Meg's paralysis<\/strong>.<\/phrase>","Mrs. Whatsit<\/word>","Mrs. Who<\/word>","Mrs. Which<\/word>","charge Meg with rescuing Charles Wallace from IT<\/word>","Charles Wallace under IT's influence<\/word>","focuses all her love at Charles Wallace<\/word>","able to free him<\/word>","transport back to Earth<\/word>","arrive<\/word>","The trio of Mrs. Whatsit<\/strong>, Mrs. Who<\/strong>, and Mrs. Which<\/strong> arrive<\/strong> and charge Meg with rescuing Charles Wallace from IT<\/strong>. Arriving at the building where IT resides, they find Charles Wallace under IT's influence<\/strong>. Inspired by hints from the Mrs. Ws, Meg focuses all her love at Charles Wallace<\/strong> and is able to free him<\/strong> from IT's control. They all then transport back to Earth<\/strong> and the Mrs. Ws leave.<\/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':2081, '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':2081, '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':2081, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }