var presentation = ["wisdom<\/word>","handicraft<\/word>","Athena<\/word>","Athene<\/word>","Pallas<\/word>","Greek goddess<\/word>","Minerva<\/word>","patron and protectress<\/word>","various cities<\/word>","Greece<\/word>","Athens<\/word>","her name<\/word>","major symbols<\/word>","include<\/word>","olive trees<\/word>","Gorgoneion<\/word>","Athena<\/strong> or Athene<\/strong>, often given the epithet Pallas<\/strong>, is an ancient Greek goddess<\/strong> associated with wisdom<\/strong>, handicraft<\/strong>, and warfare who was later syncretized with the Roman goddess Minerva<\/strong>. Athena<\/strong> was regarded as the patron and protectress<\/strong> of various cities<\/strong> across Greece<\/strong>, particularly the city of Athens<\/strong>, from which she most likely received her name<\/strong>. She's usually shown in art wearing a helmet and holding a spear. Her major symbols<\/strong> include<\/strong> owls, olive trees<\/strong>, snakes, and the Gorgoneion<\/strong>.<\/phrase>","Greek mythology<\/word>","Athena<\/word>","head<\/word>","her father<\/word>","Zeus<\/word>","founding myth<\/word>","Athens<\/word>","Poseidon<\/word>","olive tree<\/word>","In Greek mythology<\/strong>, Athena<\/strong> was believed to have been born from the head<\/strong> of her father<\/strong> Zeus<\/strong>. In the founding myth<\/strong> of Athens<\/strong>, Athena<\/strong> bested Poseidon<\/strong> in a competition over patronage of the city by creating the first olive tree<\/strong>.<\/phrase>","aided<\/word>","Hera<\/word>","Athena<\/word>","patron goddess<\/word>","heroic endeavor<\/word>","Perseus<\/word>","Heracles<\/word>","Bellerophon<\/word>","Jason<\/word>","Aphrodite<\/word>","three goddesses<\/word>","Trojan War<\/word>","active role<\/word>","Iliad<\/word>","Odyssey<\/word>","divine counselor<\/word>","Odysseus<\/word>","Athena<\/strong> was the patron goddess<\/strong> of heroic endeavor<\/strong>; she's believed to have aided<\/strong> the heroes Perseus<\/strong>, Heracles<\/strong>, Bellerophon<\/strong>, and Jason<\/strong>. Along with Aphrodite<\/strong> and Hera<\/strong>, Athena<\/strong> was one of the three goddesses<\/strong> whose feud resulted in the beginning of the Trojan War<\/strong>. She plays an active role<\/strong> in the Iliad<\/strong>, in which she assists the Achaeans and, in the Odyssey<\/strong>, she is the divine counselor<\/strong> to Odysseus<\/strong>.<\/phrase>","spider<\/word>","wisdom<\/word>","later writings<\/word>","Athena<\/word>","Arachne<\/word>","weaving competition<\/word>","Medusa into a Gorgon<\/word>","Poseidon<\/word>","her temple<\/word>","Renaissance<\/word>","international symbol<\/word>","classical learning<\/word>","Western artists and allegorists<\/word>","freedom and democracy<\/word>","In the later writings<\/strong> of the Roman poet Ovid, Athena<\/strong> was said to have competed against the mortal Arachne<\/strong> in a weaving competition<\/strong>, afterwards transforming Arachne<\/strong> into the first spider<\/strong>; Ovid also describes how she transformed Medusa into a Gorgon<\/strong> after witnessing her being violated by Poseidon<\/strong> in her temple<\/strong>. Since the Renaissance<\/strong>, Athena<\/strong> has become an international symbol<\/strong> of wisdom<\/strong>, the arts, and classical learning<\/strong>. Western artists and allegorists<\/strong> have often used Athena<\/strong> as a symbol of freedom and democracy<\/strong>.<\/phrase>","Athena<\/word>","favorite daughter<\/word>","Zeus<\/word>","his forehead<\/word>","her birth<\/word>","several versions<\/word>","earliest mention<\/word>","Iliad<\/word>","Ares<\/word>","In the classical Olympian pantheon, Athena<\/strong> was regarded as the favorite daughter<\/strong> of Zeus<\/strong>, born fully armed from his forehead<\/strong>. The story of her birth<\/strong> comes in several versions<\/strong>. The earliest mention<\/strong> is in the Iliad<\/strong>, when Ares<\/strong> accuses Zeus<\/strong> of being biased in favor of Athena<\/strong> because \"autos egeinao\" (literally \"you fathered her\", but probably intended as \"you gave birth to her\").<\/phrase>","overthrow<\/word>","swallow<\/word>","Zeus<\/word>","Metis<\/word>","mortal men<\/word>","unborn offspring<\/word>","try<\/word>","Gaia<\/word>","Ouranos<\/word>","their father<\/word>","order<\/word>","prevent<\/word>","Zeus<\/strong> married the goddess Metis<\/strong>, who is described as the \"wisest among gods and mortal men<\/strong>\", and engaged in sexual intercourse with her. After learning that Metis<\/strong> was pregnant, however, he became afraid that the unborn offspring<\/strong> would try<\/strong> to overthrow<\/strong> him, because Gaia<\/strong> and Ouranos<\/strong> had prophesied that Metis<\/strong> would bear children wiser than their father<\/strong>. In order<\/strong> to prevent<\/strong> this, Zeus<\/strong> tricked Metis<\/strong> into letting him swallow<\/strong> her, but it was too late because Metis<\/strong> had already conceived.<\/phrase>","Hera<\/word>","labrys<\/word>","fully grown<\/word>","Metis<\/word>","Zeus<\/word>","more wives<\/word>","present<\/word>","enormous headache<\/word>","such pain<\/word>","Prometheus<\/word>","Hephaestus<\/word>","Hermes<\/word>","Ares<\/word>","Palaemon<\/word>","his head<\/word>","open<\/word>","Minoan<\/word>","Athena<\/word>","head<\/word>","First Homeric Hymn<\/word>","Helios<\/word>","his chariot<\/word>","Seventh Olympian Ode<\/word>","mighty shout<\/word>","Earth<\/word>","After swallowing Metis<\/strong>, Zeus<\/strong> took six more wives<\/strong> in succession until he married his seventh and present<\/strong> wife, Hera<\/strong>. Then Zeus<\/strong> experienced an enormous headache<\/strong>. He was in such pain<\/strong> that he ordered someone (either Prometheus<\/strong>, Hephaestus<\/strong>, Hermes<\/strong>, Ares<\/strong>, or Palaemon<\/strong>, depending on the sources examined) to cleave his head<\/strong> open<\/strong> with the labrys<\/strong>, the double-headed Minoan<\/strong> axe. Athena<\/strong> leaped from Zeus<\/strong>'s head<\/strong>, fully grown<\/strong> and armed.The \"First Homeric Hymn<\/strong> to Athena<\/strong>\" states in that the gods were awestruck by Athena<\/strong>'s appearance and even Helios<\/strong>, the god of the sun, stopped his chariot<\/strong> in the sky. Pindar, in his \"Seventh Olympian Ode<\/strong>\", states that she \"cried aloud with a mighty shout<\/strong>\" and that \"the Sky and mother Earth<\/strong> shuddered before her.<\/phrase>","Athena<\/word>","Poseidon<\/word>","Athens<\/word>","one gift<\/word>","Cecrops<\/word>","his trident<\/word>","salt water spring<\/word>","trade<\/word>","water<\/word>","Battle of Salamis<\/word>","olive tree<\/word>","patron goddess<\/word>","Athena<\/strong> competed with Poseidon<\/strong> for the patronage of Athens<\/strong>. They agreed that each would give the Athenians one gift<\/strong> and that Cecrops<\/strong>, the king of Athens<\/strong>, would determine which gift was better. Poseidon<\/strong> struck the ground with his trident<\/strong> and a salt water spring<\/strong> sprang up; this gave the Athenians access to trade<\/strong> and water<\/strong>. Athens<\/strong> at its height was a significant sea power, defeating the Persian fleet at the Battle of Salamis<\/strong>--but the water<\/strong> was salty and undrinkable. Athena<\/strong> offered the first domesticated olive tree<\/strong>. Cecrops<\/strong> accepted this gift and declared Athena<\/strong> the patron goddess<\/strong> of Athens<\/strong>. The olive tree<\/strong> brought wood, oil, and food, and became a symbol of Athenian economic prosperity.<\/phrase>","aided<\/word>","Pseudo-Apollodorus<\/word>","Bibliotheca<\/word>","Athena<\/word>","Argos<\/word>","Jason<\/word>","Argonauts<\/word>","Perseus<\/word>","Hermes<\/word>","need<\/word>","kill<\/word>","avoid<\/word>","head<\/word>","clean<\/word>","According to Pseudo-Apollodorus<\/strong>'s Bibliotheca<\/strong>, Athena<\/strong> advised Argos<\/strong>, the builder of the Argo, the ship on which the hero Jason<\/strong> and his band of Argonauts<\/strong> sailed, and aided<\/strong> in the ship's construction. Pseudo-Apollodorus<\/strong> also records that Athena<\/strong> guided the hero Perseus<\/strong> in his quest to behead Medusa.She and Hermes<\/strong>, the god of travelers, appeared to Perseus<\/strong> after he set off on his quest and gifted him with tools he would need<\/strong> to kill<\/strong> the Gorgon. Athena<\/strong> gave Perseus<\/strong> a polished bronze shield to view Medusa's reflection rather than looking at her directly and thereby avoid<\/strong> being turned to stone. Hermes<\/strong> gave him an adamantine scythe to cut off Medusa's head<\/strong>. When Perseus<\/strong> swung his blade to behead Medusa, Athena<\/strong> guided it, allowing his scythe to cut it clean<\/strong> off.<\/phrase>","acquitted<\/word>","Aeschylus<\/word>","Orestes<\/word>","Athena<\/word>","save<\/word>","Erinyes<\/word>","murder<\/word>","Clytemnestra<\/word>","In Aeschylus<\/strong>'s tragedy Orestes<\/strong>, Athena<\/strong> intervenes to save<\/strong> Orestes<\/strong> from the wrath of the Erinyes<\/strong> and presides over his trial for the murder<\/strong> of his mother Clytemnestra<\/strong>. When half the jury votes to acquit and the other half votes to convict, Athena<\/strong> casts the deciding vote to acquit Orestes<\/strong> and declares that, from then on, whenever a jury is tied, the defendant shall always be acquitted<\/strong>.<\/phrase>","Odyssey<\/word>","Odysseus<\/word>","Athena<\/word>","part<\/word>","his head<\/word>","Troy<\/word>","In The Odyssey<\/strong>, Odysseus<\/strong>' cunning and shrewd nature quickly wins Athena<\/strong>'s favor. For the first part<\/strong> of the poem, however, she largely is confined to aiding him only from afar, mainly by implanting thoughts in his head<\/strong> during his journey home from Troy<\/strong>. Her guiding actions reinforce her role as the \"protectress of heroes,\" or, as mythologian Walter Friedrich Otto dubbed her, the \"goddess of nearness,\" due to her mentoring and motherly probing.<\/phrase>","assistance<\/word>","disguised<\/word>","shrewdness<\/word>","defeat<\/word>","Nausicaa<\/word>","Athena<\/word>","provide<\/word>","Odysseus<\/word>","Ithaca<\/word>","Penelope<\/word>","back<\/word>","protect<\/word>","order<\/word>","Telemachus<\/word>","travel<\/word>","ask<\/word>","push<\/word>","Telemachos<\/word>","man<\/word>","It is not until he washes up on the shore of the island of the Phaeacians, where Nausicaa<\/strong> is washing her clothes that Athena<\/strong> arrives personally to provide<\/strong> more tangible assistance<\/strong>. She appears in Nausicaa<\/strong>'s dreams to ensure that the princess rescues Odysseus<\/strong> and plays a role in his eventual escort to Ithaca<\/strong>. Athena<\/strong> appears to Odysseus<\/strong> upon his arrival, disguised<\/strong> as a herdsman; she initially lies and tells him that Penelope<\/strong>, his wife, has remarried and that he is believed to be dead, but Odysseus<\/strong> lies back<\/strong> to her, employing skillful prevarications to protect<\/strong> himself. Impressed by his resolve and shrewdness<\/strong>, she reveals herself and tells him what he needs to know in order<\/strong> to win back<\/strong> his kingdom. She disguises him as an elderly beggar so that he will not be recognized by the suitors or Penelope<\/strong>, and helps him to defeat<\/strong> the suitors. Athena<\/strong> also appears to Odysseus<\/strong>'s son Telemachus<\/strong>. Her actions lead him to travel<\/strong> around to Odysseus<\/strong>'s comrades and ask<\/strong> about his father. He hears stories about some of Odysseus<\/strong>'s journey. Athena<\/strong>'s push<\/strong> for Telemachos<\/strong>'s journey helps him grow into the man<\/strong> role, that his father once held. She also plays a role in ending the resultant feud against the suitors' relatives.<\/phrase>","spider<\/word>","conceited<\/word>","deities<\/word>","Arachne<\/word>","name<\/word>","Greek<\/word>","Athena<\/word>","form<\/word>","offend<\/word>","According to Ovid, Arachne<\/strong> (whose name<\/strong> means spider<\/strong> in ancient Greek<\/strong>) a weaving student of Athena<\/strong>. She became so conceited<\/strong> of her skill as a weaver that she began claiming that her skill was greater than that of Athena<\/strong> herself. Athena<\/strong> gave Arachne<\/strong> a chance to redeem herself by assuming the form<\/strong> of an old woman and warning Arachne<\/strong> not to offend<\/strong> the deities<\/strong>. Arachne<\/strong> scoffed and wished for a weaving contest, so she could prove her skill.<\/phrase>","defeat<\/word>","deities<\/word>","discrediting<\/word>","flawless<\/word>","spider<\/word>","Athena<\/word>","Poseidon<\/word>","Athens<\/word>","Arachne<\/word>","work<\/word>","face<\/word>","back<\/word>","form<\/word>","Athena<\/strong> wove the scene of her victory over Poseidon<\/strong> in the contest for the patronage of Athens<\/strong>. Athena<\/strong>'s tapestry also depicted the 12 Olympian gods and defeat<\/strong> of mythological figures who challenged their authority. Arachne<\/strong>'s tapestry featured twenty-one episodes of the deities<\/strong>' infidelity. It represented the unjust and discrediting<\/strong> behavior of the gods towards mortals. Athena<\/strong> admitted that Arachne<\/strong>'s work<\/strong> was flawless<\/strong>, but was outraged at Arachne<\/strong>'s offensive choice of subject, which displayed the failings and transgressions of the deities<\/strong>. Finally, losing her temper, Athena<\/strong> destroyed Arachne<\/strong>'s tapestry and loom, striking it with her shuttle. Athena<\/strong> then struck Arachne<\/strong> across the face<\/strong> with her staff four times. Arachne<\/strong> died in despair, but Athena<\/strong> took pity on her and brought her back<\/strong> from the dead in the form<\/strong> of a spider<\/strong>.<\/phrase>","golden apple<\/word>","Hera<\/word>","Judgement of Paris<\/word>","Iliad<\/word>","Cypria<\/word>","Epic Cycle<\/word>","Peleus<\/word>","Thetis<\/word>","Achilles<\/word>","Eris<\/word>","Aphrodite<\/word>","Athena<\/word>","The myth of the Judgement of Paris<\/strong> is mentioned briefly in the Iliad<\/strong>, but is described in depth in an epitome of the Cypria<\/strong>, a lost poem of the Epic Cycle<\/strong>, which records that all the gods and goddesses as well as various mortals were invited to the marriage of Peleus<\/strong> and Thetis<\/strong> (the eventual parents of Achilles<\/strong>). Only Eris<\/strong>, goddess of discord, was not invited. She was annoyed at this, so she arrived with a golden apple<\/strong> inscribed with the word \u03ba\u03b1\u03bb\u03bb\u03af\u03c3\u03c4\u1fc3 (\"for the fairest\"), which she threw among the goddesses. Aphrodite<\/strong>, Hera<\/strong>, and Athena<\/strong> all claimed to be the fairest, and thus the rightful owner of the apple.<\/phrase>","place<\/word>","matter<\/word>","Zeus<\/word>","Mount Ida<\/word>","Troy<\/word>","The goddesses chose to place<\/strong> the matter<\/strong> before Zeus<\/strong>, who, not wanting to favor one of the goddesses, put the choice into the hands of Paris, a Trojan prince. After bathing in the spring of Mount Ida<\/strong> where Troy<\/strong> was situated, the goddesses appeared before Paris for his decision.<\/phrase>","Hera<\/word>","three goddesses<\/word>","decide<\/word>","Asia<\/word>","Europe<\/word>","Athena<\/word>","battle<\/word>","Aphrodite<\/word>","marry<\/word>","Earth<\/word>","Helen<\/word>","King Menelaus of Sparta<\/word>","Trojan War<\/word>","All three goddesses<\/strong> were ideally beautiful and Paris could not decide<\/strong> between them, so they resorted to bribes. Hera<\/strong> tried to bribe Paris with power over all Asia<\/strong> and Europe<\/strong>, and Athena<\/strong> offered fame and glory in battle<\/strong>, but Aphrodite<\/strong> promised Paris that, if he were to choose her as the fairest, she would let him marry<\/strong> the most beautiful woman on Earth<\/strong>. This woman was Helen<\/strong>, who was already married to King Menelaus of Sparta<\/strong>. Paris selected Aphrodite<\/strong> and awarded her the apple. The other two goddesses were enraged and, as a direct result, sided with the Greeks in the Trojan War<\/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':1211, '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':1211, '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':1211, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }