var presentation = ["President Harry S. Truman<\/word>","First Lady of the United States<\/word>","Elizabeth Virginia Truman<\/word>","also served<\/word>","Second Lady of the United<\/word>","Elizabeth Virginia Truman<\/strong> (February 13, 1885 \u2013 October 18, 1982) was the wife of President Harry S. Truman<\/strong> and the First Lady of the United States<\/strong> from 1945 to 1953. She also served<\/strong> as the Second Lady of the United<\/strong> States in 1945.<\/phrase>","Independence, Missouri<\/word>","First Lady<\/word>","her future<\/word>","same school<\/word>","not enjoy<\/word>","political scene<\/word>","end<\/word>","her husband<\/word>","return<\/word>","record<\/word>","She had known her future<\/strong> husband since they were children attending the same school<\/strong> in Independence, Missouri<\/strong>. As First Lady<\/strong>, she did not enjoy<\/strong> the social and political scene<\/strong> in Washington, and at the end<\/strong> of her husband<\/strong>'s term in 1953, she was relieved to return<\/strong> to Independence. She currently holds the record<\/strong> of longest-lived First Lady<\/strong> and longest-lived Second Lady, at 97 years, 247 days. She died in Independence, Missouri<\/strong>.<\/phrase>","Elizabeth Virginia Wallace<\/word>","Margaret<\/word>","Independence, Missouri<\/word>","Bess Truman<\/word>","David Willock Wallace<\/word>","his wife<\/word>","Bessie<\/word>","her childhood<\/word>","young woman<\/word>","her fashion<\/word>","always had<\/word>","stylish hats<\/word>","Bess Truman<\/strong> was born Elizabeth Virginia Wallace<\/strong> on February 13, 1885, to David Willock Wallace<\/strong> and his wife<\/strong>, the former Margaret<\/strong> Elizabeth Gates, in Independence, Missouri<\/strong>, and was known as Bessie<\/strong> during her childhood<\/strong>. She was the eldest of four. Bess had a reputation as a tomboy as a child. As a young woman<\/strong>, Bess enjoyed expressing herself through her fashion<\/strong> and hats; a friend was quoted \"Bess always had<\/strong> more stylish hats<\/strong> than the rest of us did, or she wore them with more style.\"<\/phrase>","Harry Truman<\/word>","his family<\/word>","Harry Truman<\/strong> met Bess soon after his family<\/strong> moved to Independence, and the two attended school together until graduation.<\/phrase>","Miss Barstow's Finishing School for Girls<\/word>","Kansas City, Missouri<\/word>","William Chrisman High School<\/word>","Independence High School<\/word>","David McCullough<\/word>","cause<\/word>","After graduating from William Chrisman High School<\/strong> (then known as Independence High School<\/strong>) she studied at Miss Barstow's Finishing School for Girls<\/strong> in Kansas City, Missouri<\/strong>. In 1903 her father rose very early one morning, climbed into the family bathtub and died by suicide. According to biographer David McCullough<\/strong>, the cause<\/strong> for his suicide is unknown, with speculation ranging from depression to mounting debts.<\/phrase>","Trinity Episcopal Church<\/word>","Margaret<\/word>","Harry Truman<\/word>","World War<\/word>","Bess and Harry Truman<\/strong> married on June 28, 1919, at Trinity Episcopal Church<\/strong> in Independence. Harry courted Bess before he went off to fight during World War<\/strong> I; he proposed in 1911, but she turned him down. Truman later said that he intended to propose again, but when he did he wanted to be earning more money than a farmer did. Their only daughter, Margaret<\/strong>, was born in 1924.<\/phrase>","Senator<\/word>","Red Cross work<\/word>","clerk<\/word>","Chairman of the Senate Special Committee to Investigate the National Defense Program<\/word>","Missouri<\/word>","Congressional Club<\/word>","PEO Sisterhood<\/word>","H Street United Service Organization<\/word>","Senate Wives Club<\/word>","her husband<\/word>","When Truman was elected as a Senator<\/strong> from Missouri<\/strong> in 1934, the family moved to Washington, DC. Mrs. Truman became a member of the Congressional Club<\/strong>, the PEO Sisterhood<\/strong>, the H Street United Service Organization<\/strong>, and the Red Cross work<\/strong> of the Senate Wives Club<\/strong>. She joined her husband<\/strong>'s staff as a clerk<\/strong>, answering personal mail and editing committee reports when he became Chairman of the Senate Special Committee to Investigate the National Defense Program<\/strong>.<\/phrase>","social obligations<\/word>","one press conference<\/word>","Margaret<\/word>","found<\/word>","White House<\/word>","her husband<\/word>","surround<\/word>","President<\/word>","Blair House<\/word>","present<\/word>","Eleanor Roosevelt<\/word>","want<\/word>","reply<\/word>","return<\/word>","Bess found<\/strong> the White House<\/strong>'s lack of privacy distasteful. As her husband<\/strong> put it later, she was \"not especially interested\" in the \"formalities and pomp or the artificiality which, as we had learned..., inevitably surround<\/strong> the family of the President<\/strong>.\" Though she steadfastly fulfilled the social obligations<\/strong> of her position, she did only what she thought was necessary. When the White House<\/strong> was rebuilt during Truman's second term, the family lived in Blair House<\/strong> and kept their social life to a minimum. In most years of her husband<\/strong>'s presidency, Mrs. Truman was not regularly present<\/strong> in Washington other than during the social season when her presence was expected. The contrast with Bess's activist predecessor Eleanor Roosevelt<\/strong> was considerable. Unlike her, Bess held only one press conference<\/strong> after many requests from the media. The press conference consisted of written questions in advance and the written replies were mostly monosyllabic along with many no comments. When asked why she did not want<\/strong> to give press conferences she replied \"I am not the one who is elected. I have nothing to say to the public.\" Bess's response to whether she wanted her daughter Margaret<\/strong> to become President<\/strong> was \"most definitely not.\" Her reply<\/strong> to what she wanted to do after her husband<\/strong> left office was \"return<\/strong> to Independence\".<\/phrase>","First Lady<\/word>","Women's National Democratic Club<\/word>","Honorary President of the Girl Scouts<\/word>","Washington Animal Rescue League<\/word>","Honorary Chairman of the American Red Cross<\/word>","As First Lady<\/strong>, Bess served as Honorary President of the Girl Scouts<\/strong>, the Women's National Democratic Club<\/strong>, and the Washington Animal Rescue League<\/strong>. She was Honorary Chairman of the American Red Cross<\/strong>.<\/phrase>","library<\/word>","memoirs<\/word>","back<\/word>","North Delaware Street<\/word>","President<\/word>","In 1953 the Trumans went back<\/strong> to Independence and the family home at 219 North Delaware Street<\/strong>, where the former President<\/strong> worked on building his library<\/strong> and writing his memoirs<\/strong>. Bess fully recovered following a 1959 mastectomy in which doctors removed a large, but benign, tumor.<\/phrase>","library<\/word>","President Lyndon Johnson<\/word>","Medicare<\/word>","receive<\/word>","When President Lyndon Johnson<\/strong> signed Medicare<\/strong> into law in 1965, the Trumans were the first senior citizens to receive<\/strong> Medicare<\/strong> cards, presented to them by Johnson at the Truman library<\/strong>.<\/phrase>","Truman Presidential Library<\/word>","David Susskind<\/word>","President Truman in Independence<\/word>","number<\/word>","Michael Beschloss<\/word>","In 1961, David Susskind<\/strong> conducted a series of interviews with former President Truman in Independence<\/strong>. After picking Truman up at his home to take him to the Truman Presidential Library<\/strong> for the interviews over a number<\/strong> of days, Susskind asked Truman why he had not been invited into the home. According to presidential historian Michael Beschloss<\/strong>, Truman flatly told Susskind, \"This is Bess's house\" and that there had never been nor would there ever be a Jewish guest in there.<\/phrase>","time<\/word>","her husband<\/word>","White House<\/word>","At the time<\/strong> of her husband<\/strong>'s death in 1972 at age 88, she was 87, making them the oldest couple having occupied the White House<\/strong> at that time<\/strong>. Bess agreed to be the honorary chairman for the reelection campaign of Sen. Thomas Eagleton.<\/phrase>","congestive heart failure<\/word>","library<\/word>","Independence, Missouri<\/word>","live<\/word>","last<\/word>","her husband<\/word>","Bess continued to live<\/strong> quietly in Independence for the last<\/strong> decade of her life, being visited by her daughter and grandchildren. She died on October 18, 1982, from congestive heart failure<\/strong> at the age of 97; a private funeral service was held on October 21. Afterwards she was buried beside her husband<\/strong> in the courtyard of the Harry S. Truman library<\/strong> in Independence, Missouri<\/strong>.<\/phrase>","First Lady<\/word>","Bess Truman<\/word>","Second Lady in United<\/word>","Bess Truman<\/strong> remains the longest-lived First Lady<\/strong> and Second Lady in United<\/strong> States history.<\/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':1375, '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':1375, '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':1375, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }