var presentation = ["secondary antagonist<\/word>","reacting to emotions<\/word>","gain their personality and physical traits<\/word>","No-Face (\u30ab\u30aa\u30ca\u30b7 Kaonashi, lit. \"Faceless\") is a spirit and a secondary antagonist<\/strong> in the Studio Ghibli film \"Spirited Away\". He is shown to be capable of reacting to emotions<\/strong> and ingesting other individuals in order to gain their personality and physical traits<\/strong>.<\/phrase>","watching a rushing Chihiro and Haku<\/word>","passing Chihiro with fascination<\/word>","worried that No-Face would get wet<\/word>","thought he was a customer<\/word>","stealing a Bath Token for Chihiro<\/word>","Disheartened, No-Face disappears<\/word>","No-Face was first introduced standing on the bridge watching a rushing Chihiro and Haku<\/strong>, who were, at the time, trying to avoid any spirits from persecuting her for being a human. He subsequently disappeared and reappeared again on the bridge the morning after, watching a passing Chihiro with fascination<\/strong>. No-Face doesn't appear again until he is let into The Bathhouse by a considerate Chihiro, who worried that No-Face would get wet<\/strong> out in the rain (and because she thought he was a customer<\/strong>). He emerged again next to the Foreman, stealing a Bath Token for Chihiro<\/strong>. Apparently happy that she thanked him, No-Face subsequently stole more tokens, but was ultimately rejected by Chihiro, who told him that she only needed one. Disheartened, No-Face disappears<\/strong>, leaving the tokens to fall to the floor.<\/phrase>","leave of the Unnamed River Spirit<\/word>","swallowing the frog spirit<\/word>","No-Face demanded a luxurious bath<\/word>","gold to the workers<\/word>","While the rest of the workers celebrated after the leave of the Unnamed River Spirit<\/strong>, No-Face was seen sitting in a corner, watching as the workers fought and argued for leftover gold on the ground. Learning that gold was important, No-Face baited an unsuspecting Aogaeru to come closer to him when the latter was digging for gold in the middle of the night, swallowing the frog spirit<\/strong> and gaining his corruptive properties soon after. With the negative qualities in Aogaeru reflecting in him, No-Face demanded a luxurious bath<\/strong> from the workers, throwing magically-conjured gold to the workers<\/strong> in the process and becoming larger by ingesting large amounts of food.<\/phrase>","No-Face became a sensation with the workers<\/word>","Chihiro reject his offering of gold<\/word>","true nature is revealed<\/word>","With his assumed large amount of wealth No-Face became a sensation with the workers<\/strong> who constantly begged for tips from him. After witnessing Chihiro reject his offering of gold<\/strong>, No-Face dropped the gold onto the ground in despair, forcing greedy workers to fight for a piece. Angered in assuming that a worker insulted him, No-Face swallowed another two people, as his true nature is revealed<\/strong> to the horrified workers.<\/phrase>","throwing a tantrum in a guest room<\/word>","No-Face could not give<\/word>","spitting out the workers<\/word>","old timid self<\/word>","stay and learn from her<\/word>","No-Face is last seen with Zeniba<\/word>","He is next seen throwing a tantrum in a guest room<\/strong>, asking to see Chihiro. With his offering of gold rejected a third time, No-Face shows sadness when Chihiro mentions that No-Face could not give<\/strong> her \"what she truly wants\". After being fed the last of Chihiro's emetic dumpling from the unnamed river spirit, No-Face chases Chihiro through the lower levels of the bathhouse while regurgitating everything he has eaten, after regurgitating the last of the food and spitting out the workers<\/strong> he swallowed he returned to his old timid self<\/strong> and followed Chihiro to Zeniba's place, where he learns to knit and sew. As Chihiro leaves, No-Face is requested by Zeniba to stay and learn from her<\/strong> away from the negative influence of The Bathhouse. No-Face is last seen with Zeniba<\/strong> and her Hopping Lantern bidding Chihiro farewell as she flies off on Haku's back.<\/phrase>","can develop arms and legs<\/word>","expressionless mask<\/word>","mouth is larger than the one present<\/word>","When first introduced, No-Face appeared in a semi-transparent state while shifting in and out of visibility. His organs are visible, pulsating in several states. His figure resembles that of a long, black tube. While it is unknown if No-Face has a physical body, it is shown that he can develop arms and legs<\/strong> with the capability of leaving footprints as he walks. An ominous, expressionless mask<\/strong> with grey-violet highlights is painted on his \"head\" of sorts, and while there is a \"mouth\" painted on the mask, No-Face has shown that his real, expertly-hidden mouth is larger than the one present<\/strong> on his mask.<\/phrase>","lonely spirit<\/word>","interest in her sincerity<\/word>","learned by example<\/word>","No-Face is a lonely spirit<\/strong> who begins to follow Chihiro Ogino after having developed an interest in her sincerity<\/strong>. His vocabulary consisted of grunts and moans as opposed to coherent words. Not knowing much about the Bathhouse or about other spirits in general, No-Face learned by example<\/strong> and adapted to his surroundings.<\/phrase>","corruptive thoughts<\/word>","encompass their personalities<\/word>","garner her affection for him<\/word>","Exposed to the corruptive thoughts<\/strong> and greed of the workers, he quickly grew to encompass their personalities<\/strong>, hoping that his endeavor to be like those around Chihiro would eventually garner her affection for him<\/strong>. While this ultimately brought upon the opposite effect, Chihiro was somewhat true to No-Face after she invited him and accepted help from him.<\/phrase>","obsessed with Chihiro<\/word>","extremely volatile<\/word>","co-journeyer<\/word>","No-Face becomes obsessed with Chihiro<\/strong>, and wants to see her and her only. He becomes extremely volatile<\/strong> after being fed the River Spirit's emetic dumpling by Chihiro, and, while fleeing from the obviously now-hostile spirit, she calls out to him twice to follow her. She accepts him as a co-journeyer<\/strong> into the train ride on her way to Swamp Bottom after he calms down and is out of the Bathhouse. At this stage, No-Face is no longer aggressive and is quite docile, even obeying Chihiro's orders, like \"sit\" and \"behave yourself.\"<\/phrase>","negative traits of those he had swallowed<\/word>","proved troubling<\/word>","As a monstrous, out-of-control being, No-Face exhibits all the negative traits of those he had swallowed<\/strong> (most significantly, Aogaeru), becoming a brash, arrogant, loud and selfish creature whose obsession with Chihiro proved troubling<\/strong> for everyone around it.<\/phrase>","complex hierarchy<\/word>","rules of the new tiny society<\/word>","apprentice<\/word>","Towards the end of the film, No-Face meets with Zeniba, another witch who works alone, in contrast to Yubaba, who runs her bathhouse with a complex hierarchy<\/strong>. Perhaps attempting to match the rules of the new tiny society<\/strong>, No-Face starts spinning and knitting and appears proficient in that. Happy with his new environment, he accepts Zeniba's proposal to stay with her as an apprentice<\/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':2848, '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':2848, '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':2848, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }