var presentation = ["Achilles<\/word>","Trojan War<\/word>","Thetis<\/word>","Greek warriors<\/word>","central character<\/word>","Iliad<\/word>","Peleus<\/word>","Phthia<\/word>","In Greek mythology, Achilles<\/strong> was a hero of the Trojan War<\/strong>, the greatest of all the Greek warriors<\/strong>, and is the central character<\/strong> of Homer's Iliad<\/strong>. He was the son of the Nereid Thetis<\/strong> and Peleus<\/strong>, king of Phthia<\/strong>.<\/phrase>","Achilles<\/word>","Trojan War<\/word>","death<\/word>","Paris<\/word>","heel<\/word>","Thetis<\/word>","weakness<\/word>","notable feat<\/word>","Hector<\/word>","Troy<\/word>","Iliad<\/word>","other sources<\/word>","end<\/word>","Styx<\/word>","his heels<\/word>","point<\/word>","Achilles<\/strong>' most notable feat<\/strong> during the Trojan War<\/strong> was the slaying of the Trojan prince Hector<\/strong> outside the gates of Troy<\/strong>. Although the death<\/strong> of Achilles<\/strong> is not presented in the Iliad<\/strong>, other sources<\/strong> concur that he was killed near the end<\/strong> of the Trojan War<\/strong> by Paris<\/strong>, who shot him in the heel<\/strong> with an arrow. Later legends state that Achilles<\/strong> was invulnerable in all of his body except for his heel<\/strong> because, when his mother Thetis<\/strong> dipped him in the river Styx<\/strong> as an infant, she held him by one of his heels<\/strong>. Alluding to these legends, the term \"Achilles<\/strong>' heel<\/strong>\" has come to mean a point<\/strong> of weakness<\/strong>.<\/phrase>","Achilles<\/word>","Thetis<\/word>","Prometheus<\/word>","Peleus<\/word>","Myrmidons<\/word>","Zeus<\/word>","Poseidon<\/word>","hand<\/word>","his father<\/word>","two gods<\/word>","their pursuit<\/word>","Achilles<\/strong> was the son of the Nereid Thetis<\/strong> and of Peleus<\/strong>, the king of the Myrmidons<\/strong>. Zeus<\/strong> and Poseidon<\/strong> had been rivals for the hand<\/strong> of Thetis<\/strong> until Prometheus<\/strong>, the fore-thinker, warned Zeus<\/strong> of a prophecy that Thetis<\/strong> would bear a son greater than his father<\/strong>. For this reason, the two gods<\/strong> withdrew their pursuit<\/strong>, and had her wed Peleus<\/strong>.<\/phrase>","Achilles<\/word>","Thetis<\/word>","heel<\/word>","Styx<\/word>","part<\/word>","fire<\/word>","order<\/word>","burn<\/word>","mortal parts<\/word>","Peleus<\/word>","When Achilles<\/strong> was born Thetis<\/strong> tried to make him immortal by dipping him in the river Styx<\/strong>; however, he was left vulnerable at the part<\/strong> of the body by which she held him: his left heel<\/strong>. In another version of this story, Thetis<\/strong> anointed the boy in ambrosia and put him on top of a fire<\/strong> in order<\/strong> to burn<\/strong> away the mortal parts<\/strong> of his body. She was interrupted by Peleus<\/strong> and abandoned both father and son in a rage.<\/phrase>","Achilles<\/word>","Thetis<\/word>","glory and die young<\/word>","Trojan War<\/word>","Patroclus<\/word>","Peleus<\/word>","Chiron the Centaur<\/word>","Mount Pelion<\/word>","live<\/word>","long<\/word>","uneventful life<\/word>","part<\/word>","Phthia<\/word>","his companion<\/word>","Peleus<\/strong> entrusted Achilles<\/strong> to Chiron the Centaur<\/strong>, on Mount Pelion<\/strong>, to be reared. Thetis<\/strong> foretold that her son's fate was either to gain glory and die young<\/strong>, or to live<\/strong> a long<\/strong> but uneventful life<\/strong> in obscurity. Achilles<\/strong> chose the former, and decided to take part<\/strong> in the Trojan War<\/strong>. According to Homer, Achilles<\/strong> grew up in Phthia<\/strong> together with his companion<\/strong> Patroclus<\/strong>.<\/phrase>","Achilles<\/word>","Trojan War<\/word>","death<\/word>","plague<\/word>","glory<\/word>","Thetis<\/word>","Iliad<\/word>","famous narrative<\/word>","Homeric<\/word>","few weeks<\/word>","decade-long war<\/word>","not narrate<\/word>","battle<\/word>","Agamemnon<\/word>","Achaean<\/word>","Chryseis<\/word>","his slave<\/word>","Her father<\/word>","Apollo<\/word>","return<\/word>","Greeks<\/word>","Calchas<\/word>","not speak<\/word>","protect<\/word>","battle prize<\/word>","Briseis<\/word>","replace<\/word>","Angry<\/word>","his plunder<\/word>","his troops<\/word>","Greek forces<\/word>","time<\/word>","Zeus<\/word>","help<\/word>","his honor<\/word>","Homer's Iliad<\/strong> is the most famous narrative<\/strong> of Achilles<\/strong>' deeds in the Trojan War<\/strong>. The Homeric<\/strong> epic only covers a few weeks<\/strong> of the decade-long war<\/strong>, and does not narrate<\/strong> Achilles<\/strong>' death<\/strong>. It begins with Achilles<\/strong>' withdrawal from battle<\/strong> after being dishonored by Agamemnon<\/strong>, the commander of the Achaean<\/strong> forces. Agamemnon<\/strong> has taken a woman named Chryseis<\/strong> as his slave<\/strong>. Her father<\/strong> Chryses, a priest of Apollo<\/strong>, begs Agamemnon<\/strong> to return<\/strong> her to him. Agamemnon<\/strong> refuses, and Apollo<\/strong> sends a plague<\/strong> amongst the Greeks<\/strong>. The prophet Calchas<\/strong> correctly determines the source of the troubles but will not speak<\/strong> unless Achilles<\/strong> vows to protect<\/strong> him. Achilles<\/strong> does so, and Calchas<\/strong> declares that Chryseis<\/strong> must be returned to Her father<\/strong>. Agamemnon<\/strong> consents, but then commands that Achilles<\/strong>' battle prize<\/strong> Briseis<\/strong>, the daughter of Briseus, be brought to him to replace<\/strong> Chryseis<\/strong>. Angry<\/strong> at the dishonor of having his plunder<\/strong> and glory<\/strong> taken away (and, as he says later, because he loves Briseis<\/strong>), with the urging of his mother Thetis<\/strong>, Achilles<\/strong> refuses to fight or lead his troops<\/strong> alongside the other Greek forces<\/strong>. At the same time<\/strong>, burning with rage over Agamemnon<\/strong>'s theft, Achilles<\/strong> prays to Thetis<\/strong> to convince Zeus<\/strong> to help<\/strong> the Trojans gain ground in the war, so that he may regain his honor<\/strong>.<\/phrase>","Achilles<\/word>","battle<\/word>","Greeks<\/word>","influence<\/word>","Zeus<\/word>","Nestor<\/word>","Agamemnon<\/word>","Odysseus<\/word>","other chieftains<\/word>","Ajax<\/word>","Phoenix<\/word>","offer<\/word>","return<\/word>","Briseis<\/word>","other gifts<\/word>","sail<\/word>","As the battle<\/strong> turns against the Greeks<\/strong>, thanks to the influence<\/strong> of Zeus<\/strong>, Nestor<\/strong> declares that the Trojans are winning because Agamemnon<\/strong> has angered Achilles<\/strong>, and urges the king to appease the warrior. Agamemnon<\/strong> agrees and sends Odysseus<\/strong> and two other chieftains<\/strong>, Ajax<\/strong> and Phoenix<\/strong>, to Achilles<\/strong> with the offer<\/strong> of the return<\/strong> of Briseis<\/strong> and other gifts<\/strong>. Achilles<\/strong> rejects all Agamemnon<\/strong> offers him and simply urges the Greeks<\/strong> to sail<\/strong> home as he was planning to do.<\/phrase>","Patroclus<\/word>","Achilles<\/word>","Hector<\/word>","push<\/word>","back<\/word>","Greek ships<\/word>","Greek forces<\/word>","absolute destruction<\/word>","Myrmidons<\/word>","battle<\/word>","his camp<\/word>","proper assault<\/word>","Troy<\/word>","The Trojans, led by Hector<\/strong>, subsequently push<\/strong> the Greek army back<\/strong> toward the beaches and assault the Greek ships<\/strong>. With the Greek forces<\/strong> on the verge of absolute destruction<\/strong>, Patroclus<\/strong> leads the Myrmidons<\/strong> into battle<\/strong>, wearing Achilles<\/strong>' armour, though Achilles<\/strong> remains at his camp<\/strong>. Patroclus<\/strong> succeeds in pushing the Trojans back<\/strong> from the beaches, but is killed by Hector<\/strong> before he can lead a proper assault<\/strong> on the city of Troy<\/strong>.<\/phrase>","death<\/word>","Patroclus<\/word>","Achilles<\/word>","Thetis<\/word>","beloved companion<\/word>","Hephaestus<\/word>","new armour<\/word>","place<\/word>","Hector<\/word>","new armor<\/word>","After receiving the news of the death<\/strong> of Patroclus<\/strong>, Achilles<\/strong> grieves over his beloved companion<\/strong>'s death<\/strong>. His mother Thetis<\/strong> comes to comfort the distraught Achilles<\/strong>. She persuades Hephaestus<\/strong> to make new armour<\/strong> for him, in place<\/strong> of the armour that Patroclus<\/strong> had been wearing, which was taken by Hector<\/strong>. The new armor<\/strong> includes the Shield of Achilles<\/strong>.<\/phrase>","death<\/word>","Patroclus<\/word>","Achilles<\/word>","Hector<\/word>","battle<\/word>","Scamander<\/word>","Angry<\/word>","drown<\/word>","Hera<\/word>","Hephaestus<\/word>","Zeus<\/word>","note<\/word>","sack<\/word>","Troy<\/word>","time<\/word>","Enraged over the death<\/strong> of Patroclus<\/strong>, Achilles<\/strong> ends his refusal to fight and takes the field, killing many men in his rage but always seeking out Hector<\/strong>. Achilles<\/strong> even engages in battle<\/strong> with the river god Scamander<\/strong>, who has become Angry<\/strong> that Achilles<\/strong> is choking his waters with all the men he has killed. The god tries to drown<\/strong> Achilles<\/strong> but is stopped by Hera<\/strong> and Hephaestus<\/strong>. Zeus<\/strong> himself takes note<\/strong> of Achilles<\/strong>' rage and sends the gods to restrain him so that he will not go on to sack<\/strong> Troy<\/strong> itself before the time<\/strong> allotted for its destruction, seeming to show that the unhindered rage of Achilles<\/strong> can defy fate itself.<\/phrase>","Achilles<\/word>","spare his life<\/word>","respect<\/word>","Patroclus<\/word>","Hector<\/word>","Troy<\/word>","Athena<\/word>","form<\/word>","Deiphobus<\/word>","stop<\/word>","face<\/word>","trick<\/word>","battle<\/word>","expect<\/word>","dream<\/word>","his honor<\/word>","Hermes<\/word>","Priam<\/word>","return<\/word>","Niobe<\/word>","Finally, Achilles<\/strong> finds his prey. Achilles<\/strong> chases Hector<\/strong> around the wall of Troy<\/strong> three times before Athena<\/strong>, in the form<\/strong> of Hector<\/strong>'s favorite and dearest brother, Deiphobus<\/strong>, persuades Hector<\/strong> to stop<\/strong> running and fight Achilles<\/strong> face<\/strong> to face<\/strong>. After Hector<\/strong> realizes the trick<\/strong>, he knows the battle<\/strong> is inevitable. Wanting to go down fighting, he charges at Achilles<\/strong> with his only weapon, his sword, but misses. Accepting his fate, Hector<\/strong> begs Achilles<\/strong>, not to spare his life<\/strong>, but to treat his body with respect<\/strong> after killing him. Achilles<\/strong> tells Hector<\/strong> it is hopeless to expect<\/strong> that of him, declaring that \"my rage, my fury would drive me now to hack your flesh away and eat you raw \u2013 such agonies you have caused me\". Achilles<\/strong> then kills Hector<\/strong> and drags his corpse by its heels behind his chariot. After having a dream<\/strong> where Patroclus<\/strong> begs Achilles<\/strong> to hold his funeral, Achilles<\/strong> hosts a series of funeral games in his honor<\/strong>. With the assistance of the god Hermes<\/strong>, Hector<\/strong>'s father Priam<\/strong> goes to Achilles<\/strong>' tent to plead with Achilles<\/strong> for the return<\/strong> of Hector<\/strong>'s body so that he can be buried. Achilles<\/strong> relents and promises a truce for the duration of the funeral, lasting 9 days with a burial on the 10th (in the tradition of Niobe<\/strong>'s offspring).<\/phrase>","Achilles<\/word>","Patroclus<\/word>","Iliad<\/word>","suggest<\/word>","close<\/word>","Plato<\/word>","Symposium<\/word>","love<\/word>","Phaedrus<\/word>","The exact nature of Achilles<\/strong>' relationship with Patroclus<\/strong> has been a subject of dispute in both the classical period and modern times. In the Iliad<\/strong>, it appears to be the model of a deep and loyal friendship. Homer does not suggest<\/strong> that Achilles<\/strong> and his close<\/strong> friend Patroclus<\/strong> were lovers. In Plato<\/strong>'s Symposium<\/strong>, the participants in a dialogue about love<\/strong> assume that Achilles<\/strong> and Patroclus<\/strong> were a couple; Phaedrus<\/strong> argues that Achilles<\/strong> was the younger and more beautiful one so he was the beloved and Patroclus<\/strong> was the lover.<\/phrase>","death<\/word>","Paris<\/word>","heel<\/word>","Achilles<\/word>","valor<\/word>","undefeated<\/word>","Patroclus<\/word>","Iliad<\/word>","Hector<\/word>","Statius<\/word>","Apollo<\/word>","Troy<\/word>","man<\/word>","In the oldest one, the Iliad<\/strong>, and as predicted by Hector<\/strong> with his dying breath, the hero's death<\/strong> was brought about by Paris<\/strong> with an arrow (to the heel<\/strong> according to Statius<\/strong>). In some versions, the god Apollo<\/strong> guided Paris<\/strong>' arrow. Some retellings also state that Achilles<\/strong> was scaling the gates of Troy<\/strong> and was hit with a poisoned arrow. All of these versions deny Paris<\/strong> any sort of valor<\/strong>, owing to the common conception that Paris<\/strong> was a coward and not the man<\/strong> his brother Hector<\/strong> was, and Achilles<\/strong> remained undefeated<\/strong> on the battlefield. His bones were mingled with those of Patroclus<\/strong>, and funeral games were held.<\/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':1224, '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':1224, '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':1224, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }