var presentation = ["Eggs Benedict<\/word>","protagonist<\/word>","central role<\/word>","son<\/word>","co-founder<\/word>","malicious serial killer<\/word>","Michael Afton (also nicknamed as \"Eggs Benedict<\/strong>\" by the HandUnit) is the protagonist<\/strong> of Five Nights at Freddy's: Sister Location. He is believed to play a central role<\/strong> in the series. He is the son<\/strong> of Fazbear Entertainment's co-founder<\/strong> and malicious serial killer<\/strong> William Afton.<\/phrase>","black silhouette in a dirty mirror<\/word>","purple long sleeved-shirt<\/word>","At first, as is common with other protagonists in the Five Nights at Freddy's series, little to nothing of Michael was shown. In the game's real ending, the reflection of a simple, black silhouette in a dirty mirror<\/strong> is all that can be seen. In the Custom Night minigames, it's seen that he has a fairly light skin tone, dark brown hair that seems to be combed over, and blue eyes. He also wears a purple long sleeved-shirt<\/strong>, blue pants and brown shoes.<\/phrase>","elongated smile<\/word>","friendly<\/word>","unnerving smile<\/word>","Like his father William, he appears to have a elongated smile<\/strong>, although it appears more friendly<\/strong> and warm, rather than his father's sadistic and unnerving smile<\/strong>.<\/phrase>","reanimated<\/word>","living corpse<\/word>","dark purple<\/word>","lost his nose<\/word>","front teeth<\/word>","illuminating pupils<\/word>","After being reanimated<\/strong> and becoming a living corpse<\/strong>, he appears to be physically dark purple<\/strong> due to his skin rotting. He also seems to have lost his nose<\/strong> and almost all of his bottom and front teeth<\/strong>. His eyeballs seem to be missing from his now dark and empty sockets. The only sign of life from them is the two small white illuminating pupils<\/strong>, similar to the ones the animatronics sometimes possess.<\/phrase>","technician<\/word>","take care of Circus Baby<\/word>","despite the danger<\/word>","Ennard<\/word>","watching soap operas<\/word>","friendly<\/word>","neighbors happily wave<\/word>","nitially, very little was known about Michael, aside from the fact he was the technician<\/strong> hired to take care of Circus Baby<\/strong>'s Entertainment and Rental and its animatronics. He returned to his job every night of the week despite the danger<\/strong>, which HandUnit mentions, implying that he is brave. This is further shown in the Fake Ending, when Ennard<\/strong> breaks into his house. In spite of that, he continued to eat his popcorn unfazed by this revelation. He also seems to enjoy watching soap operas<\/strong> and dramas like \"The Immortal and Restless\", as he spent all the nights watching the program and even made popcorn for the event. He is shown to be a friendly<\/strong> person, as all his neighbors happily wave<\/strong> to him in the end-of-night minigames.<\/phrase>","hired on his father's request<\/word>","free now<\/word>","gentle, yet brooding<\/word>","monster<\/word>","hide in the shadows<\/word>","revenge against William<\/word>","large amount of guilt<\/word>","virtuous person<\/word>","In his monologue in the Custom Night cutscene, Michael reveals that he was hired on his father's request<\/strong> to find and free his sister Elizabeth, implying that he was close to her when he was alive. He also seemed happy when saying Elizabeth was \"free now<\/strong>\", further showing his affection for her. He speaks in a rather gentle, yet brooding<\/strong> tone of voice in stark contrast to his father's more sinister tone of speaking. Michael also shows sadness at the fact that he is now a monster<\/strong> unable of being seen in public, forcing him to hide in the shadows<\/strong>. Michael could potentially seek revenge against William<\/strong> due to his actions, as he vowed to \"come find him\". This could mean that he wanted to kill him. It's suggested that Michael carried a large amount of guilt<\/strong>, due to the fact that his own father caused the horrific events that led to the loss of so many lives. His guilt could be the reason why he feels that he personally needs to finally put an end to his father's horrible legacy. This shows that Michael is a very virtuous person<\/strong> and always looks to do the right thing.<\/phrase>","sarcastic<\/word>","lack of safety<\/word>","paranoid while on the job<\/word>","free pizza<\/word>","money basket<\/word>","priorities straight<\/word>","responsible person.<\/word>","In the Survival Logbook, Michael is shown to be sarcastic<\/strong>, making various comments about Fazbear Entertainment's lack of safety<\/strong> or care for its employees. The book also shows that Michael is paranoid while on the job<\/strong>, suggesting he sleeps with one eye open. When asked why he wanted the job on page six, he states for the free pizza<\/strong>. This could suggest that he enjoys food. This is proven later in the book, when he expresses that eating increases his happiness. When asked what he would like for his end of the week bonus, he circles the money basket<\/strong> with emphasis, meaning that like anyone else, he would've rather had a basket of cash than any other prize, showing Michael has his priorities straight<\/strong> and is a responsible person.<\/strong><\/phrase>","enjoys drawing<\/word>","extremely hard worker<\/word>","desperate for cash<\/word>","flair for business<\/word>","bad habit of chewing bubble gum<\/word>","very anxious<\/word>","annoyed by incompetence<\/word>","fazed by the unsettling occurrences<\/word>","There are multiple scribbles in the book drawn by Michael, implying that he enjoys drawing<\/strong> and is extremely talented at it. It's implied in the book that Michael is an extremely hard worker<\/strong> who is desperate for cash<\/strong> in order to make ends meet. It's also stated that Michael desires to take a tropical vacation. Michael may or may not have a flair for business<\/strong> in Freddy Fazbear's Pizzeria Simulator, as his choices are influenced by the player. It's seen in the book that Michael has a bad habit of chewing bubble gum<\/strong>, implying that he is a very anxious<\/strong> person who gets quite stressed at times. however, Michael states he wants to get this habit under control. He also may be annoyed by incompetence<\/strong>, as in the logbook, he shows frustration that he is the only one fazed by the unsettling occurrences<\/strong> on the job.<\/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':3035, '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':3035, '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':3035, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }