var presentation = ["The Adventures of Ichabod and Mr. Toad<\/word>","film consists of two segments<\/word>","The Wind in the Willows<\/word>","The Legend of Sleepy Hollow<\/word>","package film<\/word>","Walt Disney Productions<\/word>","Kenneth Grahame<\/word>","short story<\/word>","Washington Irving<\/word>","The Adventures of Ichabod and Mr. Toad<\/strong> is a 1949 American animated package film<\/strong> produced by Walt Disney Productions<\/strong>. The film consists of two segments<\/strong>, the first based on the 1908 children's novel The Wind in the Willows<\/strong> by British author Kenneth Grahame<\/strong>, and the second based on the 1820 short story<\/strong> \"The Legend of Sleepy Hollow<\/strong>\" by American author Washington Irving<\/strong>.<\/phrase>","film's animated segments<\/word>","live-action scenes<\/word>","library as a framing device<\/word>","introduced and narrated by Basil Rathbone<\/word>","introduced and narrated<\/word>","Bing Crosby<\/word>","literary works<\/word>","first segment<\/word>","second segment<\/word>","As the film's animated segments<\/strong> are based on literary works<\/strong>, they are both introduced in live-action scenes<\/strong> set in a library as a framing device<\/strong>. The first segment<\/strong> is introduced and narrated by Basil Rathbone<\/strong>, and the second segment<\/strong> is introduced and narrated<\/strong> by Bing Crosby<\/strong>.<\/phrase>","The Wind in the Willows<\/word>","London, England<\/word>","J. Thaddeus Toad, Esq<\/word>","Toad Hall estate<\/word>","positive mania for fads<\/word>","brought him to the brink of bankruptcy<\/word>","volunteers as Toad's bookkeeper<\/word>","help Toad keep his estate<\/word>","incurable adventurer<\/word>","never counted<\/word>","wealthy proprietor<\/word>","last resort<\/word>","Angus MacBadger<\/word>","The Wind in the Willows<\/strong>\nThe story is set in and around London, England<\/strong>. The protagonist J. Thaddeus Toad, Esq<\/strong>. is introduced as an incurable adventurer<\/strong> who never counted<\/strong> the cost. As the story's one disturbing element, although he is the wealthy proprietor<\/strong> of the Toad Hall estate<\/strong>, Toad's adventures and positive mania for fads<\/strong> have brought him to the brink of bankruptcy<\/strong>. As a last resort<\/strong>, Toad's friend Angus MacBadger<\/strong> volunteers as Toad's bookkeeper<\/strong> to help Toad keep his estate<\/strong> which is a source of pride in the community.<\/phrase>","persuade Toad to give up his latest mania<\/word>","great deal of financial liability<\/word>","confront Toad<\/word>","unable to change his mind<\/word>","becomes entranced<\/word>","taken over by motor-mania<\/word>","One summer<\/word>","Ratty<\/word>","Moley<\/word>","recklessly driving<\/word>","horse and cart<\/word>","damaged property<\/word>","escape<\/word>","motor car<\/word>","time<\/word>","One summer<\/strong> day, MacBadger asks Toad's friends Ratty<\/strong> and Moley<\/strong> to persuade Toad to give up his latest mania<\/strong> of recklessly driving<\/strong> about the countryside in a horse and cart<\/strong>, which could accumulate a great deal of financial liability<\/strong> in damaged property<\/strong>. Ratty<\/strong> and Moley<\/strong> confront Toad<\/strong>, but are unable to change his mind<\/strong>. Toad tries to escape<\/strong> from them, but then sees a motor car<\/strong> for the first time<\/strong> and becomes entranced<\/strong> by the new machine, having been taken over by motor-mania<\/strong>.<\/phrase>","cure Toad's new mania<\/word>","put Toad under house arrest<\/word>","Toad escapes<\/word>","later arrested and charged with car theft<\/word>","calls his horse Cyril Proudbottom<\/word>","car which Toad was accused of stealing<\/word>","already been stolen by a gang of weasels<\/word>","offered to buy the car from the weasels<\/word>","Toad had no money<\/word>","instead offered to trade Toad Hall for the car<\/word>","prosecutor and judge show disbelief<\/word>","Toad then calls the bartender Mr. Winkie as a witness<\/word>","Toad is found guilty<\/word>","sentenced to 20 years<\/word>","Toad's friends make every effort to appeal his case<\/word>","to no avail<\/word>","attempt<\/word>","Ratty<\/word>","Moley<\/word>","his trial<\/word>","first witness<\/word>","Tower of London<\/word>","In an attempt<\/strong> to cure Toad's new mania<\/strong>, Ratty<\/strong> and Moley<\/strong> put Toad under house arrest<\/strong>. However, Toad escapes<\/strong> and is later arrested and charged with car theft<\/strong>. At his trial<\/strong>, Toad represents himself and calls his horse Cyril Proudbottom<\/strong> as his first witness<\/strong>. Cyril testifies that the car which Toad was accused of stealing<\/strong> had already been stolen by a gang of weasels<\/strong>. Toad had entered a tavern where the car was parked and offered to buy the car from the weasels<\/strong>. However, since Toad had no money<\/strong>, he instead offered to trade Toad Hall for the car<\/strong>. The prosecutor and judge show disbelief<\/strong> toward the statement, so Toad then calls the bartender Mr. Winkie as a witness<\/strong> to the agreement; however, when told by Toad to explain what actually happened Winkie falsely testifies that Toad had tried to sell him the stolen car. Toad is found guilty<\/strong> on the spot and sentenced to 20 years<\/strong> in the Tower of London<\/strong>. As the months passed by, Toad's friends make every effort to appeal his case<\/strong>, but to no avail<\/strong>.<\/phrase>","Cyril visits Toad in disguise as his grandmother<\/word>","helps him escape<\/word>","hijacks a 2-4-0 steam locomotive<\/word>","seeming to drown<\/word>","arrives at Ratty's house<\/word>","Moley is happy to see him again<\/word>","Ratty is insistent that Toad return to prison<\/word>","pay his debt to society<\/word>","Winkie is the leader of the weasel gang<\/word>","Toad indeed traded Toad Hall for their stolen motorcar<\/word>","Ratty then apologizes to Toad for thinking ill of him<\/word>","Christmas Eve<\/word>","railway station<\/word>","On Christmas Eve<\/strong>, Toad appears to have an epiphany about his careless ways, but once Cyril visits Toad in disguise as his grandmother<\/strong> and helps him escape<\/strong> by giving him a disguise of his own, all that flies out the window. Toad quickly runs to a railway station<\/strong> and hijacks a 2-4-0 steam locomotive<\/strong> and drives out of the station heading toward the river bank without getting caught by the police on another train. Though seeming to drown<\/strong> due to his ball and chain dragging him down to the bottom of the river, he then arrives at Ratty's house<\/strong>. However, while Moley is happy to see him again<\/strong>, Ratty is insistent that Toad return to prison<\/strong> and pay his debt to society<\/strong>, especially when they hear what they think is the police at the door. Instead, it is MacBadger who enters, informing them that Winkie is the leader of the weasel gang<\/strong>, and that Toad indeed traded Toad Hall for their stolen motorcar<\/strong>; Winkie himself is in possession of the deed. Ratty then apologizes to Toad for thinking ill of him<\/strong>.<\/phrase>","deed bearing both Toad and Winkie's signatures<\/word>","prove Toad's innocence<\/word>","four friends sneak into Toad Hall<\/word>","four manage to sneak in<\/word>","weasels and Winkie drunk<\/word>","attempt to lower Moley on a makeshift rope<\/word>","guard investigates<\/word>","wakes up the Weasels and Winkie<\/word>","Moley folding the deed into a paper airplane<\/word>","Toad producing numerous ones<\/word>","four manage to escape with their lives<\/word>","appear to not get the deed<\/word>","produces said deed from his pocket<\/word>","secret passage<\/word>","chase<\/word>","confuse<\/word>","weasels<\/word>","quick switch-around<\/word>","hidden wall panel<\/word>","Knowing that the deed bearing both Toad and Winkie's signatures<\/strong> would prove Toad's innocence<\/strong>, the four friends sneak into Toad Hall<\/strong> using a secret passage<\/strong> near the river by boat. Though Toad nearly louses up the plan by almost shooting the guard outside on the bridge, the four manage to sneak in<\/strong>. Finding the weasels and Winkie drunk<\/strong> and passed out, they attempt to lower Moley on a makeshift rope<\/strong> to swipe it. Unfortunately, Toad's actions from before had caused more damage than originally thought as the guard investigates<\/strong>, finds the passageway and wakes up the Weasels and Winkie<\/strong>. A grueling chase<\/strong> around the estate ensues to take the document, during which a number of antics happen, including Moley folding the deed into a paper airplane<\/strong> and then Toad producing numerous ones<\/strong> to confuse<\/strong> Winkie and the weasels<\/strong> and the quick switch-around<\/strong> with the hidden wall panel<\/strong>. Though the four manage to escape with their lives<\/strong>, they appear to not get the deed<\/strong>. However, Toad proudly produces said deed from his pocket<\/strong>.<\/phrase>","New Year's Day<\/word>","exonerated<\/word>","regaining his house<\/word>","Winkie and the weasels have been arrested and imprisoned<\/word>","celebrate the New Year<\/word>","Toad and Cyril recklessly fly<\/word>","Toad has not truly reformed<\/word>","developed a mania for airplanes instead<\/word>","film<\/word>","Ratty<\/word>","Moley<\/word>","Wright Flyer<\/word>","The film<\/strong> then ends on New Year's Day<\/strong> with Toad exonerated<\/strong> and regaining his house<\/strong> while it is implied that Winkie and the weasels have been arrested and imprisoned<\/strong>. As MacBadger, Ratty<\/strong>, and Moley<\/strong> celebrate the New Year<\/strong> with a toast to Toad, who they believe has completely reformed, Toad and Cyril recklessly fly<\/strong> past on a 1903 Wright Flyer<\/strong>; Toad has not truly reformed<\/strong> and has developed a mania for airplanes instead<\/strong>.<\/phrase>","The Legend of Sleepy Hollow<\/word>","superstitious<\/word>","charming dandy<\/word>","Sleepy Hollow, New York<\/word>","renowned for its ghostly hauntings<\/word>","town's new schoolmaster<\/word>","Ichabod soon wins the hearts of the village's women<\/word>","order to get invitations to suppers at said student's homes<\/word>","Ichabod Crane<\/word>","small village<\/word>","Tarrytown<\/word>","odd behavior<\/word>","effeminate mannerisms<\/word>","The Legend of Sleepy Hollow<\/strong>\nIn October 1790, Ichabod Crane<\/strong>, a lanky and superstitious<\/strong>, yet charming dandy<\/strong> arrives in Sleepy Hollow, New York<\/strong>, a small village<\/strong> outside Tarrytown<\/strong> that is renowned for its ghostly hauntings<\/strong>, to be the town's new schoolmaster<\/strong>. Despite his odd behavior<\/strong>, appearance, and rather effeminate mannerisms<\/strong>, Ichabod soon wins the hearts of the village's women<\/strong> and forms good friendships with his students, though the latter is mainly in order to get invitations to suppers at said student's homes<\/strong> which he would not be able to afford on his meager salary.<\/phrase>","roguish town hero<\/word>","bully and play pranks on Ichabod<\/word>","interrupting his singing lessons<\/word>","ladies choir<\/word>","Brom Bones<\/word>","Brom Bones<\/strong>, the roguish town hero<\/strong>, does his best to bully and play pranks on Ichabod<\/strong>, such as interrupting his singing lessons<\/strong> with the town ladies choir<\/strong> by having a dog howl in the middle of Ichabod singing a series of notes, making it seem like Ichabod himself produced it. However, the schoolmaster is very good at ignoring these taunts and continues to interact with the townspeople.<\/phrase>","town picnic<\/word>","Ichabod meets and falls in love with Katrina van Tassel<\/word>","beautiful daughter<\/word>","wealthy farmer Baltus van Tassel<\/word>","Brom is equally infatuated with<\/word>","compete with the schoolmaster<\/word>","Ichabod wins Katrina over<\/word>","unintentionally makes a fool of Brom<\/word>","Katrina is only using Ichabod<\/word>","make Brom jealous<\/word>","One day at a town picnic<\/strong>, Ichabod meets and falls in love with Katrina van Tassel<\/strong>, the beautiful daughter<\/strong> of the wealthy farmer Baltus van Tassel<\/strong>, and whom Brom is equally infatuated with<\/strong>. Despite being obsessed with Katrina's beauty, Ichabod mainly desires to take her family's money for himself. Brom, who has never been challenged like this, proceeds to compete with the schoolmaster<\/strong>, but Ichabod wins Katrina over<\/strong> at every opportunity and unintentionally makes a fool of Brom<\/strong> in the process. Unbeknownst to both men, Katrina is only using Ichabod<\/strong> to make Brom jealous<\/strong> and force him to try harder for her affections.<\/phrase>","love rivals<\/word>","van Tassel Halloween party<\/word>","Brom catches Ichabod accidentally knocking the salt shaker over<\/word>","superstition<\/word>","order to scare him<\/word>","travels the woods on Halloween<\/word>","searching for a living head to replace the one he had lost<\/word>","cross a covered bridge<\/word>","Headless Horseman<\/word>","escape<\/word>","The two love rivals<\/strong> are invited to the van Tassel Halloween party<\/strong>. Brom attempts to get Ichabod to dance with a plump woman who is a wild and impetuous dancer instead of Katrina, and later attempts to have him fall through a cellar door, but both attempts comically backfire. While both men dine, Brom catches Ichabod accidentally knocking the salt shaker over<\/strong> and nervously tossing salt over his left shoulder. Discovering Ichabod's weakness is superstition<\/strong>, he decides to sing the tale of the legendary Headless Horseman<\/strong> in order to scare him<\/strong>. The horseman supposedly travels the woods on Halloween<\/strong> each year, searching for a living head to replace the one he had lost<\/strong>, and the only way to escape<\/strong> the ghost is to cross a covered bridge<\/strong>. Everyone else, including Katrina, finds the song amusing, while Ichabod starts to fear for his life.<\/phrase>","Ichabod becomes paranoid of every sound he hears<\/word>","believes he hears the sound of a horse galloping toward him<\/word>","discovers the sound<\/word>","being made by nearby cattails bumping on a log<\/word>","rides across the covered bridge<\/word>","stop the ghost's pursuit<\/word>","throws his flaming head<\/word>","hits him on the head in his face<\/word>","tumbling him from his horse into the dust<\/word>","Headless Horseman<\/word>","Riding home from the party through the very woods from the song, Ichabod becomes paranoid of every sound he hears<\/strong> in the dark woods. While traveling through the old cemetery, Ichabod believes he hears the sound of a horse galloping toward him<\/strong>, but discovers the sound<\/strong> is being made by nearby cattails bumping on a log<\/strong>. He and his horse begin to laugh hysterically in amusement at being scared by something so small... when their laughter is cut short by the appearance of the real Headless Horseman<\/strong>, wielding a sword and riding what appears to be Brom's black horse. After being chased through the dark forest, Ichabod, remembering Brom's advice, rides across the covered bridge<\/strong> to stop the ghost's pursuit<\/strong>. The horseman stops in Ichabod's tracks, and rises in his stirrups, and throws his flaming head<\/strong>, revealed to be a jack-o'-lantern, right at the schoolmaster. Ichabod tries to dodge the terrible missile, but is too late when it hits him on the head in his face<\/strong>, presumably knocking him out, and tumbling him from his horse into the dust<\/strong>.<\/phrase>","Ichabod's hat is found at the bridge<\/word>","Brom takes Katrina as his wife<\/word>","Rumors begin to spread<\/word>","Ichabod is still alive<\/word>","married to a wealthy widow<\/word>","children who all look like him<\/word>","superstitious<\/word>","Sleepy Hollow<\/word>","spirited away by the Headless Horseman<\/word>","The next morning, Ichabod's hat is found at the bridge<\/strong> next to the shattered jack-o-lantern, but Ichabod himself is nowhere to be found. Sometime later, Brom takes Katrina as his wife<\/strong>. Rumors begin to spread<\/strong> that Ichabod is still alive<\/strong>, married to a wealthy widow<\/strong> in a distant county with children who all look like him<\/strong>. However, the superstitious<\/strong> people of Sleepy Hollow<\/strong> insist that he has been spirited away by the Headless Horseman<\/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':2252, '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':2252, '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':2252, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }