var presentation = ["Batman v Superman: Dawn of Justice<\/word>","superhero film<\/word>","DC Comics characters<\/word>","Batman<\/word>","Superman<\/word>","follow-up<\/word>","Man of Steel<\/word>","DC Extended Universe<\/word>","first live-action film<\/word>","cinematic portrayal<\/word>","Wonder Woman<\/word>","criminal mastermind<\/word>","Lex Luthor<\/word>","manipulates Batman<\/word>","preemptive battle<\/word>","Batman v Superman: Dawn of Justice<\/strong> is a 2016 American superhero film<\/strong> based on the DC Comics characters<\/strong> Batman<\/strong> and Superman<\/strong>. It is a follow-up<\/strong> to Man of Steel<\/strong> and the second installment in the DC Extended Universe<\/strong>. Batman v Superman: Dawn of Justice<\/strong> is the first live-action film<\/strong> to feature Batman<\/strong> and Superman<\/strong> together, as well as the first live-action cinematic portrayal<\/strong> of Wonder Woman<\/strong>. In the film, criminal mastermind<\/strong> Lex Luthor<\/strong> manipulates Batman<\/strong> into a preemptive battle<\/strong> with Superman<\/strong>, with whom Luthor is obsessed with.<\/phrase>","Gotham City<\/word>","Bruce Wayne<\/word>","runs away<\/word>","parents' funeral<\/word>","falls into a pit<\/word>","attacked by a swarm of bats<\/word>","present day<\/word>","eighteen months after<\/word>","battle<\/word>","Superman<\/word>","General Zod<\/word>","Metropolis<\/word>","Superman has become<\/word>","controversial figure<\/word>","Bruce is now a billionaire<\/word>","vigilante<\/word>","Batman<\/word>","sees Superman<\/word>","extraterrestrial threat to humanity<\/word>","In 1981 in Gotham City<\/strong>, a young Bruce Wayne<\/strong> runs away<\/strong> from his parents' funeral<\/strong> after they were killed, and falls into a pit<\/strong> where he is attacked by a swarm of bats<\/strong>, developing a fear for them. In present day<\/strong>, eighteen months after<\/strong> the battle<\/strong> between Superman<\/strong> and General Zod<\/strong> in Metropolis<\/strong>, Superman has become<\/strong> a controversial figure<\/strong>. Bruce is now a billionaire<\/strong> who has operated in Gotham City<\/strong> as the vigilante<\/strong> Batman<\/strong> for twenty years. Having witnessed the chaos of that battle<\/strong> in person, he sees Superman<\/strong> as an extraterrestrial threat to humanity<\/strong>.<\/phrase>","Batman's form of justice<\/word>","Clark Kent<\/word>","Superman<\/word>","civilian identity<\/word>","expose him<\/word>","Daily Planet articles<\/word>","Russian weapon trafficker<\/word>","Anatoli Knyazev<\/word>","contacting<\/word>","LexCorp mogul<\/word>","Lex Luthor<\/word>","Luthor attempts<\/word>","Senator June Finch<\/word>","import kryptonite<\/word>","used as a deterrent<\/word>","future Kryptonian and metahuman threats<\/word>","She declines<\/word>","Luthor makes alternative<\/word>","grants him access<\/word>","Zod's body<\/word>","Kryptonian scout ship<\/word>","persuade<\/word>","After learning of Batman's form of justice<\/strong>, Clark Kent<\/strong> (Superman<\/strong>'s civilian identity<\/strong>) seeks to expose him<\/strong> via Daily Planet articles<\/strong>. Wayne learns that Russian weapon trafficker<\/strong> Anatoli Knyazev<\/strong> has been contacting<\/strong> LexCorp mogul<\/strong> Lex Luthor<\/strong>. Meanwhile, Luthor attempts<\/strong> to persuade<\/strong> Senator June Finch<\/strong> to allow him to import kryptonite<\/strong> discovered after Zod's terraforming attempt, so that it can be used as a deterrent<\/strong> against future Kryptonian and metahuman threats<\/strong>. She declines<\/strong>, but Luthor makes alternative<\/strong> plans with Finch's subordinate, which grants him access<\/strong> to Zod's body<\/strong> and the Kryptonian scout ship<\/strong>.<\/phrase>","Bruce attends a gala<\/word>","LexCorp<\/word>","steal encrypted data<\/word>","antiquities dealer<\/word>","Diana Prince<\/word>","takes it from him<\/word>","Bruce dreams<\/word>","post-apocalyptic world<\/word>","leads rebels<\/word>","evil Superman<\/word>","awakened by an unidentified person<\/word>","Lois Lane is the key<\/word>","urges him to find the others<\/word>","Luthor's files on several metahumans<\/word>","One is Diana Prince<\/word>","appears in a photo<\/word>","Alfred Pennyworth<\/word>","steal the kryptonite<\/word>","weaponize it<\/word>","fight Superman<\/word>","World War I<\/word>","Bruce attends a gala<\/strong> at LexCorp<\/strong> to steal encrypted data<\/strong> from the company's mainframe, but antiquities dealer<\/strong> Diana Prince<\/strong> takes it from him<\/strong>; she returns it after failing to access the information. While decrypting the drive, Bruce dreams<\/strong> of a post-apocalyptic world<\/strong> where he leads rebels<\/strong> against an evil Superman<\/strong>. He is awakened by an unidentified person<\/strong>, appearing through a portal, who tells him that Lois Lane is the key<\/strong> and urges him to find the others<\/strong> before vanishing. The decrypted drive reveals Luthor's files on several metahumans<\/strong> across the globe. One is Diana Prince<\/strong>, who appears in a photo<\/strong> from World War I<\/strong>. Wayne tells Alfred Pennyworth<\/strong> that he plans to steal the kryptonite<\/strong> and weaponize it<\/strong>, if necessary, to fight Superman<\/strong>.<\/phrase>","publicized congressional hearing<\/word>","question Superman's actions against Zod<\/word>","bomb smuggled in by Luthor<\/word>","detonates<\/word>","killing everyone present<\/word>","except<\/word>","Superman<\/word>","Superman blames himself<\/word>","self-imposes exile<\/word>","Batman breaks into LexCorp<\/word>","steals the kryptonite<\/word>","powered exoskeleton<\/word>","grenade launcher<\/word>","kryptonite-tipped spear<\/word>","Luthor enters the Kryptonian ship<\/word>","database<\/word>","technology<\/word>","A widely publicized congressional hearing<\/strong>, led by Finch, is held to question Superman's actions against Zod<\/strong>. A bomb smuggled in by Luthor<\/strong> via Wallace Keefe's wheelchair detonates<\/strong>, killing everyone present<\/strong> except<\/strong> Superman<\/strong>. Superman blames himself<\/strong> for not detecting it in time and self-imposes exile<\/strong>. Elsewhere, Batman breaks into LexCorp<\/strong> and steals the kryptonite<\/strong>. He builds a powered exoskeleton<\/strong>, a kryptonite grenade launcher<\/strong>, and a kryptonite-tipped spear<\/strong> in preparation for battling Superman<\/strong>. Meanwhile, Luthor enters the Kryptonian ship<\/strong> and accesses a database<\/strong> of technology<\/strong> accumulated from over 100,000 worlds.<\/phrase>","Luthor lures Superman<\/word>","kidnapping Lois and Martha Kent<\/word>","Clark's adoptive mother<\/word>","pushes Lois off the LexCorp building<\/word>","Superman saves her<\/word>","confronts Luthor<\/word>","manipulated him and Batman<\/word>","Luthor demands he kill Batman<\/word>","exchange for Martha's life<\/word>","Superman<\/word>","Batman<\/word>","instead attacks him<\/word>","subdues him using a kryptonite gas<\/word>","Batman prepares to move in for the kill<\/word>","Superman pleads with him<\/word>","save Martha<\/word>","same name as Batman's mother<\/word>","Batman hesitates<\/word>","Lois to arrive<\/word>","explain what Superman meant<\/word>","how far he has fallen from grace<\/word>","promises to rescue Martha<\/word>","Superman regains his strength<\/word>","confronts Luthor on the scout ship<\/word>","explain<\/word>","senses<\/word>","Luthor lures Superman<\/strong> out of exile by kidnapping Lois and Martha Kent<\/strong>, Clark's adoptive mother<\/strong>. He pushes Lois off the LexCorp building<\/strong>. Superman saves her<\/strong> and confronts Luthor<\/strong>, who reveals he manipulated him and Batman<\/strong> by fueling their distrust. Luthor demands he kill Batman<\/strong> in exchange for Martha's life<\/strong>. Superman<\/strong> tries to explain<\/strong> this to Batman<\/strong>, who instead attacks him<\/strong> and eventually subdues him using a kryptonite gas<\/strong>. As Batman prepares to move in for the kill<\/strong> using the spear, Superman pleads with him<\/strong> to save Martha<\/strong> \u2013 the same name as Batman's mother<\/strong>. Batman hesitates<\/strong> in confusion long enough for Lois to arrive<\/strong> and explain what Superman meant<\/strong>. Coming to his senses<\/strong> about how far he has fallen from grace<\/strong>, he promises to rescue Martha<\/strong>. Superman regains his strength<\/strong> and confronts Luthor on the scout ship<\/strong>.<\/phrase>","Luthor executes his backup plan<\/word>","monster genetically engineered<\/word>","Zod's body<\/word>","Diana arrives<\/word>","joins forces<\/word>","Batman<\/word>","Superman<\/word>","Superman realizes its vulnerability to kryptonite<\/word>","retrieves the spear<\/word>","impales the creature<\/word>","creature kills Superman<\/word>","DNA<\/word>","Luthor executes his backup plan<\/strong>, unleashing a monster genetically engineered<\/strong> from DNA<\/strong> from both Zod's body<\/strong> and his own. Diana arrives<\/strong> with her metahuman powers on display, and joins forces<\/strong> with Batman<\/strong> and Superman<\/strong> against the creature. Though outmatched, Superman realizes its vulnerability to kryptonite<\/strong> and retrieves the spear<\/strong>. He impales the creature<\/strong> with it, but in its dying moments, the creature kills Superman<\/strong>, who was weakened by kryptonite exposure.<\/phrase>","Luthor's arrest<\/word>","Batman confronts him<\/word>","prison<\/word>","warning him<\/word>","he will always be watching<\/word>","Luthor gloats<\/word>","Superman's death<\/word>","world vulnerable<\/word>","alien threats<\/word>","memorial is held for Superman<\/word>","Metropolis<\/word>","Clark is also declared dead<\/word>","Wayne and Prince both attend his funeral<\/word>","Smallville<\/word>","Martha gives Lois<\/word>","envelope containing an engagement ring<\/word>","Bruce tells Diana<\/word>","regrets having failed Superman<\/word>","asks her help to form a team<\/word>","protect the world<\/word>","Superman's absence<\/word>","dirt atop Clark's coffin levitates<\/word>","Following Luthor's arrest<\/strong>, Batman confronts him<\/strong> in prison<\/strong>, warning him<\/strong> that he will always be watching<\/strong>. Luthor gloats<\/strong> that Superman's death<\/strong> has made the world vulnerable<\/strong> to powerful alien threats<\/strong>. A memorial is held for Superman<\/strong> in Metropolis<\/strong>. Clark is also declared dead<\/strong>, and Wayne and Prince both attend his funeral<\/strong> in Smallville<\/strong>. Martha gives Lois<\/strong> an envelope containing an engagement ring<\/strong> from Clark. Bruce tells Diana<\/strong> that he regrets having failed Superman<\/strong> in life. He asks her help to form a team<\/strong> of metahumans, starting with those named in Luthor's files, to protect the world<\/strong> in Superman's absence<\/strong>. After everyone leaves, the dirt atop Clark's coffin levitates<\/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':2782, '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':2782, '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':2782, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }