var presentation = ["Home on the Range<\/word>","animated Western musical comedy film<\/word>","centers on a mismatched trio<\/word>","dairy cows<\/word>","brash<\/word>","adventurous<\/word>","prim<\/word>","proper<\/word>","Mrs. Calloway<\/word>","ditzy<\/word>","happy-go-lucky<\/word>","capture an infamous cattle rustler<\/word>","Alameda Slim<\/word>","order to save<\/word>","foreclosure<\/word>","Aiding them<\/word>","Lucky Jack<\/word>","service of Rico<\/word>","Walt Disney Feature Animation<\/word>","Walt Disney Pictures<\/word>","film<\/word>","Old West<\/word>","Maggie<\/word>","Grace<\/word>","his bounty<\/word>","idyllic farm<\/word>","peg-legged rabbit<\/word>","selfish horse<\/word>","Buck<\/word>","eagerly working<\/word>","famous bounty hunter<\/word>","Home on the Range<\/strong> is a 2004 American animated Western musical comedy film<\/strong> produced by Walt Disney Feature Animation<\/strong> and released by Walt Disney Pictures<\/strong>. The film<\/strong> is set in the Old West<\/strong>, and centers on a mismatched trio<\/strong> of dairy cows<\/strong>-brash<\/strong>, adventurous<\/strong> Maggie<\/strong>; prim<\/strong>, proper<\/strong> Mrs. Calloway<\/strong>; and ditzy<\/strong>, happy-go-lucky<\/strong> Grace<\/strong>. The three cows must capture an infamous cattle rustler<\/strong> named Alameda Slim<\/strong> for his bounty<\/strong> in order to save<\/strong> their idyllic farm<\/strong> from foreclosure<\/strong>. Aiding them<\/strong> in their quest is Lucky Jack<\/strong>, a feisty, peg-legged rabbit<\/strong>, and a selfish horse<\/strong> named Buck<\/strong>, eagerly working<\/strong> in the service of Rico<\/strong>, a famous bounty hunter<\/strong>, who seeks the glory for himself.<\/phrase>","Dixon Ranch<\/word>","Alameda Slim<\/word>","wanted cattle rustler<\/word>","stole all the rest of Mr. Dixon's cattle<\/word>","Dixon sells Maggie to Pearl Gesner<\/word>","her bank is cracking down on debtors<\/word>","three days to pay the bank<\/word>","sold to the highest bidder<\/word>","Maggie<\/word>","only cow<\/word>","small farm<\/word>","Patch of Heaven<\/word>","Sheriff<\/word>","her farm<\/word>","In May 1889, Maggie<\/strong> is the only cow<\/strong> left on the Dixon Ranch<\/strong> after Alameda Slim<\/strong> (a wanted cattle rustler<\/strong> capable of stealing 5,000 cattle in a single night) stole all the rest of Mr. Dixon's cattle<\/strong>. Dixon sells Maggie to Pearl Gesner<\/strong>, a kind, aging woman who runs a small farm<\/strong> called Patch of Heaven<\/strong>. The local Sheriff<\/strong> arrives to tell Pearl that her bank is cracking down on debtors<\/strong>. Pearl has three days to pay the bank<\/strong> $750, or her farm<\/strong> will be sold to the highest bidder<\/strong>.<\/phrase>","convinces the other cows<\/word>","happy-go-lucky<\/word>","Mrs. Calloway<\/word>","leadership go to her head<\/word>","attempt winning prize money<\/word>","Sheriff's horse<\/word>","idolizes<\/word>","drops a criminal off<\/word>","Alameda Slim<\/word>","he takes Buck<\/word>","convinces the other cows to try to capture him<\/word>","Maggie<\/word>","Grace<\/word>","bounty hunter<\/word>","Rico<\/word>","Buck<\/word>","replacement horse<\/word>","own horse rests<\/word>","save<\/word>","Patch of Heaven<\/word>","Hearing this, Maggie<\/strong> convinces the other cows<\/strong> on the farm (Grace<\/strong>, a happy-go-lucky<\/strong> character, and Mrs. Calloway<\/strong>, who has had leadership go to her head<\/strong>) to go to town to attempt winning prize money<\/strong> at a fair. While the cows are in town, a bounty hunter<\/strong> named Rico<\/strong> (whom Buck<\/strong>, the Sheriff's horse<\/strong>, idolizes<\/strong>) drops a criminal off<\/strong> and collects the reward. Stating he needs a replacement horse<\/strong> to go after Alameda Slim<\/strong> while his own horse rests<\/strong>, he takes Buck<\/strong>. When Maggie<\/strong> find out that the reward for capturing Slim is exactly $750, she convinces the other cows to try to capture him<\/strong> to save<\/strong> Patch of Heaven<\/strong>.<\/phrase>","hide among a large herd of steers<\/word>","Alameda Slim appears<\/word>","Slim begins a yodeling song<\/word>","sends all the cattle<\/word>","trance<\/word>","causes them to dance madly<\/word>","follow Slim anywhere<\/word>","Grace is able to bring Maggie and Mrs. Calloway back to their senses<\/word>","Slim closes the path behind him with a rock-slide<\/word>","stop Rico<\/word>","chasing him<\/word>","talking with Maggie, Grace, and Mrs. Calloway<\/word>","causes Rico to believe Buck is frightened by cows<\/word>","sends Buck back to the Sheriff<\/word>","Buck escapes<\/word>","capture Slim for himself<\/word>","prove his worth<\/word>","Grace<\/word>","tone deaf<\/word>","Rico<\/word>","next move<\/word>","Buck<\/word>","That night, they hide among a large herd of steers<\/strong>, when Alameda Slim appears<\/strong>. Before any of them can do anything, Slim begins a yodeling song<\/strong> which sends all the cattle<\/strong> (except Grace<\/strong>, who is tone deaf<\/strong>) into a trance<\/strong> that causes them to dance madly<\/strong> and follow Slim anywhere<\/strong>. Grace is able to bring Maggie and Mrs. Calloway back to their senses<\/strong> just before Slim closes the path behind him with a rock-slide<\/strong> to stop Rico<\/strong> and his men from chasing him<\/strong>. As Rico<\/strong> discusses with his men what his next move<\/strong> will be, Buck<\/strong> starts talking with Maggie, Grace, and Mrs. Calloway<\/strong> as old friends and miming actions. This causes Rico to believe Buck is frightened by cows<\/strong>, so he sends Buck back to the Sheriff<\/strong>. Buck escapes<\/strong>, determined to capture Slim for himself<\/strong> to prove his worth<\/strong>.<\/phrase>","Mrs. Calloway<\/word>","search for Slim<\/word>","determined to pass Buck<\/word>","get to Slim first<\/word>","have a fallout<\/word>","Mrs. Calloway accuses Maggie<\/word>","wanting to go after Slim<\/word>","personal vendetta<\/word>","she and Grace are better off without Maggie<\/word>","Maggie deciding to leave the next morning<\/word>","Grace and Mrs. Calloway decide to return to Patch of Heaven<\/word>","awakened by a peg-legged jackrabbit<\/word>","Lucky Jack<\/word>","lost his home<\/word>","Alameda Slim<\/word>","Maggie decides to go after Slim with Lucky Jack<\/word>","Grace convinces Mrs. Calloway that they should help<\/word>","Slim's hideout<\/word>","Slim reveals that he has been stealing all cattle<\/word>","former patrons<\/word>","former patrons can no longer support their land<\/word>","Slim buys the land<\/word>","under the guise of the respectable-looking Yancy O'Dell<\/word>","Maggie<\/word>","Grace<\/word>","continue<\/word>","Echo Mine<\/word>","Maggie<\/strong>, Grace<\/strong>, and Mrs. Calloway<\/strong> continue<\/strong> their search for Slim<\/strong>, determined to pass Buck<\/strong> and get to Slim first<\/strong>, but they have a fallout<\/strong> when they lose the trail in a flash flood. Mrs. Calloway accuses Maggie<\/strong> of wanting to go after Slim<\/strong> only as a personal vendetta<\/strong>, arguing that she and Grace are better off without Maggie<\/strong>. The three spend the night under a large rock, with Maggie deciding to leave the next morning<\/strong> while Grace and Mrs. Calloway decide to return to Patch of Heaven<\/strong> to say their final farewells. The next morning, however, they are awakened by a peg-legged jackrabbit<\/strong> named Lucky Jack<\/strong>, who has also lost his home<\/strong>, an old mine, to Alameda Slim<\/strong>. Maggie decides to go after Slim with Lucky Jack<\/strong> in tow, but Grace convinces Mrs. Calloway that they should help<\/strong>. Lucky Jack<\/strong> leads the three cows to Slim's hideout<\/strong> in Echo Mine<\/strong>. At the mine, Slim reveals that he has been stealing all cattle<\/strong> from his former patrons<\/strong>. When his former patrons can no longer support their land<\/strong>, Slim buys the land<\/strong> when it is auctioned off, under the guise of the respectable-looking Yancy O'Dell<\/strong>, using the very money he gets from selling the cattle he stole.<\/phrase>","cows capture Slim<\/word>","Rico arrives<\/word>","Rico is revealed to work for Slim<\/word>","Buck decides to help the cows<\/word>","fights Rico<\/word>","setting the other cattle free<\/word>","Slim dons his Yancy O'Dell costume<\/word>","cows stranded<\/word>","goes to attend the auction<\/word>","cows arrive<\/word>","expose Slim<\/word>","Slim is arrested<\/word>","Patch of Heaven is saved by the reward money<\/word>","After arriving at Slim's lair, the cows capture Slim<\/strong>. They run off with Slim's accomplices and buyer in pursuit on a steam train. Rico arrives<\/strong>. When the chase stops, Rico is revealed to work for Slim<\/strong>. Crushed by this, Buck decides to help the cows<\/strong> and fights Rico<\/strong> while setting the other cattle free<\/strong>. Slim dons his Yancy O'Dell costume<\/strong> and leaves the cows stranded<\/strong> in the middle of the desert with the train, while he goes to attend the auction<\/strong>. However, the cows arrive<\/strong> using the train to the farm and expose Slim<\/strong>. Slim is arrested<\/strong>, and Patch of Heaven is saved by the reward money<\/strong>.<\/phrase>","county fair<\/word>","livestock on Patch of Heaven<\/word>","won prizes<\/word>","Lucky Jack<\/word>","Jebb the Goat<\/word>","Junior the Buffalo<\/word>","live<\/word>","Patch of Heaven<\/word>","A few weeks pass, and at the county fair<\/strong>, most of the livestock on Patch of Heaven<\/strong> have won prizes<\/strong>. Lucky Jack<\/strong> moves in with Jebb the Goat<\/strong>, and two steer and Slim's charming and gentlemanly steed Junior the Buffalo<\/strong> arrive unexpectedly to live<\/strong> at Patch of Heaven<\/strong>, expanding the farm.<\/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':2292, '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':2292, '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':2292, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }