var presentation = ["annual custom<\/word>","practical jokes and hoaxes<\/word>","not a public holiday<\/word>","April Fools' Day or April Fool's Day is an annual custom<\/strong> on April 1 consisting of practical jokes and hoaxes<\/strong>. Jokesters often expose their actions by shouting \"April Fools!\" at the recipient. Mass media can be involved in these pranks, which may be revealed as such the following day. The day is not a public holiday<\/strong> in any country except Odessa in Ukraine, where the first of April is an official city holiday. The custom of setting aside a day for playing harmless pranks upon one's neighbor has been relatively common in the world historically.<\/phrase>","The Canterbury Tales<\/word>","scholars<\/word>","Origins\nA disputed association between April 1 and foolishness is in Geoffrey Chaucer's The Canterbury Tales<\/strong> (1392). In the \"Nun's Priest's Tale\", a vain cock Chauntecleer is tricked by a fox on Syn March bigan thritty dayes and two. Readers apparently understood this line to mean \"32 March\", i.e. April 1. However, it is not clear that Chaucer was referencing April 1, since the text of the \"Nun's Priest's Tale\" also states that the story takes place on the day when the sun is in the sign of Taurus had y-runne Twenty degrees and one, which cannot be April 1. Modern scholars<\/strong> believe that there is a copying error in the extant manuscripts and that Chaucer actually wrote, Syn March was gon. If so, the passage would have originally meant 32 days after March, i.e. 2 May, the anniversary of the engagement of King Richard II of England to Anne of Bohemia, which took place in 1381.<\/phrase>","Eloy d'Amerval<\/word>","poisson d'avril<\/word>","the Middle Ages<\/word>","In 1508, French poet Eloy d'Amerval<\/strong> referred to a poisson d'avril<\/strong> (April fool, literally \"April's fish\"), possibly the first reference to the celebration in France. Some writers suggest that April Fools' originated because in the Middle Ages<\/strong>, New Year's Day was celebrated on March 25 in most European towns, with a holiday that in some areas of France, specifically, ended on April 1, and those who celebrated New Year's Eve on January 1 made fun of those who celebrated on other dates by the invention of April Fools' Day. The use of January 1 as New Year's Day became common in France only in the mid-16th century, and the date was not adopted officially until 1564, by the Edict of Roussillon.\nIn 1561, Flemish poet Eduard de Dene wrote of a nobleman who sent his servants on foolish errands on April 1.<\/phrase>","Dutch victory in 1572<\/word>","homonym<\/word>","In the Netherlands, the origin of April Fools' Day is often attributed to the Dutch victory in 1572<\/strong> at Brielle, where the Spanish Duke \u00c1lvarez de Toledo was defeated. Op 1 april verloor Alva zijn bril is a Dutch proverb, which can be translated as: \"On the first of April, Alva lost his glasses.\" In this case, \"bril\" (\"glasses\" in Dutch) serves as a homonym<\/strong> for Brielle. This theory, however, provides no explanation for the international celebration of April Fools' Day.<\/phrase>","Fooles holy day<\/word>","In 1686, John Aubrey referred to the celebration as \"Fooles holy day<\/strong>\", the first British reference. On April 1, 1698, several people were tricked into going to the Tower of London to \"see the Lions washed\".<\/phrase>","the Genesis flood narrative<\/word>","Although no Biblical scholar or historian is known to have mentioned a relationship, some have expressed the belief that the origins of April Fool's Day may go back to the Genesis flood narrative<\/strong>. In a 1908 edition of the Harper's Weekly cartoonist Bertha R. McDonald wrote:<\/phrase>","Noah and the ark<\/word>","Authorities gravely back with it to the time of Noah and the ark<\/strong>. The London Public Advertiser of March 13, 1769, printed: \"The mistake of Noah sending the dove out of the ark before the water had abated, on the first day of April, and to perpetuate the memory of this deliverance it was thought proper, whoever forgot so remarkable a circumstance, to punish them by sending them upon some sleeveless errand similar to that ineffectual message upon which the bird was sent by the patriarch\".<\/phrase>","radio and TV stations<\/word>","newspapers<\/word>","websites<\/word>","Pranks\nAs well as people playing pranks on one another on April Fools' Day, elaborate pranks have appeared on radio and TV stations<\/strong>, newspapers<\/strong>, and websites<\/strong>, and have been performed by large corporations. In one famous prank in 1957, the BBC broadcast a film in their Panorama current affairs series purporting to show Swiss farmers picking freshly-grown spaghetti, in what they called the Swiss Spaghetti Harvest. The BBC were soon flooded with requests to purchase a spaghetti plant, forcing them to declare the film a hoax on the news the next day.<\/phrase>","pranks can catch and embarrass a wider audience than ever before<\/word>","With the advent of the Internet and readily available global news services, April Fools' pranks can catch and embarrass a wider audience than ever before<\/strong>.<\/phrase>","controversial<\/word>","newspapers<\/word>","Reception\nThe practice of April Fool pranks and hoaxes is controversial<\/strong>. The mixed opinions of critics are epitomized in the reception to the 1957 BBC \"Spaghetti-tree hoax\", in reference to which, newspapers<\/strong> were split over whether it was \"a great joke or a terrible hoax on the public\".<\/phrase>","good for one's health<\/word>","benefits of laughter<\/word>","stress relief<\/word>","reducing strain<\/word>","The positive view is that April Fools' can be good for one's health<\/strong> because it encourages \"jokes, hoaxes...pranks, [and] belly laughs\", and brings all the benefits of laughter<\/strong> including stress relief<\/strong> and reducing strain<\/strong> on the heart. There are many \"best of\" April Fools' Day lists that are compiled in order to showcase the best examples of how the day is celebrated. Various April Fools' campaigns have been praised for their innovation, creativity, writing, and general effort.<\/phrase>","schadenfreude<\/word>","deceit<\/word>","misinterpreted<\/word>","The negative view describes April Fools' hoaxes as \"creepy and manipulative\", \"rude\" and \"a little bit nasty\", as well as based on schadenfreude<\/strong> and deceit<\/strong>. When genuine news or a genuine important order or warning is issued on April Fools' Day, there is risk that it will be misinterpreted<\/strong> as a joke and ignored \u2013 for example, when Google, known to play elaborate April Fools' Day hoaxes, announced the launch of Gmail with 1-gigabyte inboxes in 2004, an era when competing webmail services offered 4-megabytes or less, many dismissed it as a joke outright. On the other hand, sometimes stories intended as jokes are taken seriously. Either way, there can be adverse effects, such as confusion, misinformation, waste of resources (especially when the hoax concerns people in danger) and even legal or commercial consequences.<\/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':2731, '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':2731, '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':2731, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }