var presentation = ["Beauty and the Beast<\/word>","Paige O'Hara<\/word>","inventor<\/word>","yearns to abandon<\/word>","adventure<\/word>","in exchange for her father's<\/word>","Belle<\/word>","fictional character<\/word>","Walt Disney Pictures<\/word>","animated feature film<\/word>","American actress and singer<\/word>","non-conforming daughter<\/word>","predictable village life<\/word>","her father<\/word>","Maurice<\/word>","cold-hearted beast<\/word>","own freedom<\/word>","love<\/word>","Beast<\/word>","outward appearance<\/word>","Belle<\/strong> is a fictional character<\/strong> in Walt Disney Pictures<\/strong>' 30th animated feature film<\/strong> Beauty and the Beast<\/strong>. Originally voiced by American actress and singer<\/strong> Paige O'Hara<\/strong>, Belle<\/strong> is the non-conforming daughter<\/strong> of an inventor<\/strong> who yearns to abandon<\/strong> her predictable village life<\/strong> in return for adventure<\/strong>. When her father<\/strong> Maurice<\/strong> is imprisoned by a cold-hearted beast<\/strong>, Belle<\/strong> offers him her own freedom<\/strong> in exchange for her father's<\/strong>, and eventually learns to love<\/strong> the Beast<\/strong> despite his unsightly outward appearance<\/strong>.<\/phrase>","Beauty and the Beast<\/word>","stronger and less passive character<\/word>","women's rights movement<\/word>","feminist<\/word>","victims<\/word>","Walt Disney Studios<\/word>","Jeffrey Katzenberg<\/word>","strong heroine<\/word>","first-time screenwriter<\/word>","Linda Woolverton<\/word>","Jeanne-Marie Leprince de Beaumont<\/word>","fairy tale<\/word>","Belle<\/word>","film<\/word>","Little Mermaid<\/word>","Ariel<\/word>","deliberately conceived<\/word>","avoid<\/word>","long<\/word>","female characters<\/word>","Walt Disney Studios<\/strong> chairman Jeffrey Katzenberg<\/strong> commissioned Beauty and the Beast<\/strong> as an animated musical with a strong heroine<\/strong> and hired first-time screenwriter<\/strong> Linda Woolverton<\/strong> to write it. Basing her on the heroine of Jeanne-Marie Leprince de Beaumont<\/strong>'s 1756 fairy tale<\/strong> \"Beauty and the Beast<\/strong>\", Woolverton adapted Belle<\/strong> into a stronger and less passive character<\/strong> for the film<\/strong>. Inspired by the women's rights movement<\/strong>, Woolverton wanted Belle<\/strong> to be a unique Disney heroine different from The Little Mermaid<\/strong>'s popular Ariel<\/strong>, and thus deliberately conceived<\/strong> the character as a feminist<\/strong> in an effort to avoid<\/strong> the criticism Disney had long<\/strong> been receiving due to the studio's reputation of depicting its female characters<\/strong> as victims<\/strong>.<\/phrase>","bravery<\/word>","intelligence<\/word>","independence<\/word>","feminism<\/word>","mixed<\/word>","romance-oriented<\/word>","feminist<\/word>","Belle<\/word>","widespread acclaim<\/word>","film critics<\/word>","Disney Princess<\/word>","Highly regarded<\/word>","strongest examples<\/word>","agree<\/word>","independent film heroines<\/word>","Belle<\/strong> has garnered widespread acclaim<\/strong> from film critics<\/strong> who appreciated the character's bravery<\/strong>, intelligence<\/strong> and independence<\/strong>. Reception towards her feminism<\/strong>, however, has been more mixed<\/strong>, with commentators accusing the character's actions of being romance-oriented<\/strong>. The fifth Disney Princess<\/strong>, Belle<\/strong> is often ranked among the franchise's best. Highly regarded<\/strong> as one of Disney's strongest examples<\/strong> of a feminist<\/strong> character, critics agree<\/strong> that Belle<\/strong> helped spearhead a generation of independent film heroines<\/strong> while changing the reputation of a Disney Princess<\/strong>.<\/phrase>","Beauty and the Beast<\/word>","intelligence<\/word>","uneventful provincial life<\/word>","relentlessly romantically pursued<\/word>","adventure<\/word>","Belle<\/word>","beautiful bibliophile<\/word>","beauty<\/word>","Gaston<\/word>","Belle<\/strong> debuted in Beauty and the Beast<\/strong> as a beautiful bibliophile<\/strong> who, although praised by her fellow villagers for her unrivaled beauty<\/strong>, is at the same time ridiculed for her intelligence<\/strong> and non-conformity. Having grown weary of her uneventful provincial life<\/strong>, in which she is relentlessly romantically pursued<\/strong> by an arrogant hunter named Gaston<\/strong>, Belle<\/strong> longs for adventure<\/strong>.<\/phrase>","search of her father<\/word>","forbidden west wing<\/word>","enchanted rose<\/word>","her father<\/word>","Beast<\/word>","trade<\/word>","own freedom<\/word>","remain<\/word>","Belle<\/word>","After her father<\/strong>'s horse returns without its rider, she willingly ventures into the woods in search of her father<\/strong>. She persuades the Beast<\/strong> that she will trade<\/strong> her own freedom<\/strong> in return for her father<\/strong>'s, since her father<\/strong> is ill in the dungeon, promising to remain<\/strong> with the Beast<\/strong> in his castle among his staff of enchanted objects forever. Belle<\/strong>'s curiosity leads her to the forbidden west wing<\/strong> where she discovers an enchanted rose<\/strong> without realizing that it is tied to the Beast<\/strong>'s fate; and the Beast<\/strong>'s rage at her trespassing causes her to flee the castle on horseback.<\/phrase>","Belle is pursued by wolves<\/word>","nurses him back to health<\/word>","befriends him<\/word>","mortally wounds the Beast<\/word>","confesses her love for the Beast<\/word>","break the spell<\/word>","transforms<\/word>","into a handsome prince<\/word>","Beast<\/word>","Belle<\/word>","accept<\/word>","Gaston<\/word>","Belle is pursued by wolves<\/strong> in the woods but they are driven off by the Beast<\/strong>, afterwards Belle<\/strong> helps the injured Beast<\/strong> back to the castle and nurses him back to health<\/strong>. Although she initially dislikes her captor, Belle<\/strong> gradually learns to accept<\/strong> the Beast<\/strong> in spite of his appearance and eventually befriends him<\/strong>. Belle<\/strong> and the Beast<\/strong>'s strong bond greatly envies Gaston<\/strong> to the point of which he storms the castle and mortally wounds the Beast<\/strong>, though Gaston<\/strong> falls to his own death in the process. However, Belle<\/strong> breaks down and confesses her love for the Beast<\/strong> just in time to break the spell<\/strong> under which he had been placed by an enchantress as punishment for his selfish ways, and the Beast<\/strong> ultimately transforms<\/strong> back into a handsome prince<\/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':1574, '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':1574, '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':1574, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }