var presentation = ["Anna Tuthill<\/word>","Benjamin<\/word>","First Lady of the United States<\/word>","President William Henry Harrison<\/word>","her husband<\/word>","one-month term<\/word>","never entered<\/word>","White House<\/word>","65 years<\/word>","presidential term<\/word>","time<\/word>","last<\/word>","British America<\/word>","Anna Tuthill<\/strong> Harrison ( July 25, 1775 \u2013 February 25, 1864), wife of President William Henry Harrison<\/strong> and grandmother of President Benjamin<\/strong> Harrison, was nominally First Lady of the United States<\/strong> during her husband<\/strong>'s one-month term<\/strong> in 1841, but she never entered<\/strong> the White House<\/strong>. At the age of 65 years<\/strong> during her husband<\/strong>'s presidential term<\/strong>, she is the oldest woman ever to become First Lady, as well as having the distinction of holding the title for the shortest length of time<\/strong>, and the first person to be widowed while holding the title. She was the last<\/strong> First Lady to have been born in British America<\/strong>.<\/phrase>","Anna Tuthill<\/word>","Morristown, New Jersey<\/word>","Chief Justice of the New Jersey Supreme Court<\/word>","Long Island<\/word>","Congress<\/word>","New Jersey delegate<\/word>","Judge John Cleves Symmes<\/word>","Ohio<\/word>","carry<\/word>","Chairman of the Sussex County Committee of Safety during the Revolution<\/word>","Anna Tuthill<\/strong> Symmes was born on July 25, 1775, in Morristown, New Jersey<\/strong>, to Judge John Cleves Symmes<\/strong> and Anna Tuthill<\/strong>. Her father was a Chief Justice of the New Jersey Supreme Court<\/strong> and later became a prominent landowner in southwestern Ohio<\/strong>. When her mother died in 1776 her father disguised himself as a British soldier to carry<\/strong> Anna on horseback through the British lines to her grandparents on Long Island<\/strong>, who cared for her during the war. Her father was also deputy to the Provincial Congress<\/strong> of New Jersey, the Chairman of the Sussex County Committee of Safety during the Revolution<\/strong>, and a New Jersey delegate<\/strong> to the Continental Congress<\/strong>.<\/phrase>","Long Island<\/word>","Clinton Academy<\/word>","East Hampton<\/word>","Isabella Graham<\/word>","New York City<\/word>","She grew up on Long Island<\/strong>, receiving an unusually broad education for a woman of the times. She attended Clinton Academy<\/strong> in East Hampton<\/strong> on Long Island<\/strong>, and the private school of Isabella Graham<\/strong> in New York City<\/strong>.<\/phrase>","North Bend<\/word>","Lexington, Kentucky<\/word>","Washington<\/word>","Susannah Livingston<\/word>","Governor of New Jersey William Livingston<\/word>","Ohio<\/word>","Lieutenant William Henry Harrison<\/word>","spare<\/word>","camp<\/word>","stop<\/word>","back<\/word>","In 1794, Anna went with her father and new stepmother, Susannah Livingston<\/strong>, daughter of the Governor of New Jersey William Livingston<\/strong>, into the Ohio<\/strong> wilderness, where they settled at North Bend<\/strong>, Ohio<\/strong>. While visiting relatives in Lexington, Kentucky<\/strong>, in the spring of 1795, she met Lieutenant William Henry Harrison<\/strong>, in town on military business. Harrison was stationed at nearby Fort Washington<\/strong>. Anna's father thoroughly disapproved of Harrison, largely because he wanted to spare<\/strong> his daughter the hardships of army camp<\/strong> life. Despite his decree that the two stop<\/strong> seeing each other, the courtship flourished behind his back<\/strong>.<\/phrase>","Dr. Stephen Wood<\/word>","treasurer of the Northwest Territory<\/word>","North Bend<\/word>","Washington<\/word>","Cincinnati<\/word>","General<\/word>","Anthony Wayne<\/word>","time<\/word>","support<\/word>","own<\/word>","accept<\/word>","While her father was away on business in Cincinnati<\/strong>, the couple eloped and married on November 22, 1795, at the home of Dr. Stephen Wood<\/strong>, treasurer of the Northwest Territory<\/strong>, at North Bend<\/strong>. The couple honeymooned at Fort Washington<\/strong>, as Harrison was still on duty. Two weeks later, at a farewell dinner for General<\/strong> \"Mad\" Anthony Wayne<\/strong>, Symmes confronted his new son-in-law for the first time<\/strong> since their wedding. Addressing Harrison sternly, Symmes demanded to know how he intended to support<\/strong> a family with Anna. Harrison responded, \"by my sword, and my own<\/strong> right arm, sir.\" Not until his son-in-law had achieved fame on the battlefield did Symmes come to accept<\/strong> him.<\/phrase>","happy marriage<\/word>","died young<\/word>","The couple apparently had a happy marriage<\/strong>, or at least a fruitful one, having had 10 children and 40 grandchildren. Tragically, most of their children died young<\/strong>, one in infancy, and seven in their 20s or 30s. Only two lived beyond age 35, and only one beyond 50. Nine of their 10 children preceded her in death, and six of the 10 preceded him.<\/phrase>","hero<\/word>","War of 1812<\/word>","Congress<\/word>","Richmond<\/word>","governor of Indiana Territory<\/word>","Vincennes, Indiana<\/word>","Ohio<\/word>","visit<\/word>","Berkeley<\/word>","James River<\/word>","trip<\/word>","Harrison won fame as an Indian fighter and hero<\/strong> of the War of 1812<\/strong>, but he spent much of his life in a civilian career. His service in Congress<\/strong> as territorial delegate from Ohio<\/strong> gave Anna and their children a chance to visit<\/strong> his family at Berkeley<\/strong>, their plantation on the James River<\/strong>. Her third child was born on that trip<\/strong>, at Richmond<\/strong> in September 1800. Harrison's appointment as governor of Indiana Territory<\/strong> took them even farther into the wilderness; he built a handsome house at Vincennes, Indiana<\/strong>, that blended fortress and plantation mansion.<\/phrase>","North Bend<\/word>","Facing<\/word>","her husband<\/word>","wish<\/word>","Facing<\/strong> war in 1812, the family moved to the farm at North Bend<\/strong>. There, upon hearing news of her husband<\/strong>'s landslide electoral victory in 1840, home-loving Anna said simply: \"I wish<\/strong> that my husband's friends had left him where he is, happy and contented in retirement.\"<\/phrase>","North Bend<\/word>","Washington<\/word>","President-elect Harrison<\/word>","Jane Irwin Harrison<\/word>","President Harrison<\/word>","move<\/word>","White House<\/word>","When William was inaugurated in 1841, Anna was detained by illness at their home in North Bend<\/strong>. She decided not to accompany him to Washington<\/strong>. President-elect Harrison<\/strong> asked his daughter-in-law Jane Irwin Harrison<\/strong>, widow of his namesake son, to accompany him and act as hostess until Anna's proposed arrival in May. Half a dozen other relatives happily went with them. On April 4, exactly one month after his inauguration, President Harrison<\/strong> died. Anna was packing for the move<\/strong> to the White House<\/strong> when she learned of William's death in Washington<\/strong>, so she never made the journey.<\/phrase>","John Scott<\/word>","North Bend<\/word>","Benjamin<\/word>","raise<\/word>","President of the United<\/word>","June<\/word>","President John Tyler<\/word>","Following William's death, she lived with her son John Scott<\/strong> in North Bend<\/strong> and helped raise<\/strong> his children, including eight-year-old Benjamin<\/strong> who later became President of the United<\/strong> States. In June<\/strong> 1841, President John Tyler<\/strong> signed into law the first pension for a president's widow, a grant of $25,000 for Mrs. Harrison.<\/phrase>","North Bend<\/word>","Anna Harrison<\/word>","Horace Bushnell<\/word>","Anna Harrison<\/strong> died on February 25, 1864, at age 88, and was buried at the William Henry Harrison Tomb State Memorial in North Bend<\/strong>. Her funeral sermon was preached by Horace Bushnell<\/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':1315, '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':1315, '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':1315, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }