var presentation = ["The weather is always doing something<\/word>","profound disagreements<\/word>","\"The weather is always doing something<\/strong>,\" Mark Twain once complained in a speech to the New England Society. In America, it helped to bring on the Civil War.\nClimate was at the roots of the profound disagreements<\/strong> that led to one of our nation's greatest tragedies, the 1861-1865 war between the North and the South.<\/phrase>","oppressively hot, humid and unhealthy climate<\/word>","year-round growing seasons<\/word>","In the lower half of our continent, early settlers learned that there was a way to make a good living despite the region's oppressively hot, humid and unhealthy climate<\/strong>. The region had good soil and an almost year-round growing seasons<\/strong>, and it could produce abundant harvests of such crops as rice, cotton, and tobacco.<\/phrase>","Christopher J. Olson<\/word>","destitute of a common education<\/word>","In his book, The American Civil War, Christopher J. Olson<\/strong> quotes a letter from a Mississippian describing the good fortune of many newcomers to the South: \"I have met with... men who (many of them are entirely destitute of a common education<\/strong>) five years since could not get credit for a pair of shoes, now worth 100,000 to a million of dollars... [This] is in truth the only country... where a poor man could in 2 or 3 years without any aid, become wealthy...\"<\/phrase>","eminently qualified<\/word>","docility<\/word>","But to grow these staples required large fields and plenty of workers who were cheap and, in the description of one South Carolina planter, of \"inferior\" race \"but eminently qualified<\/strong> in temper, in vigor, in docility<\/strong>, (and) in capacity to stand the climate.\"<\/phrase>","White southerners enslaved Black Africans for free labor<\/word>","In the 17th, 18th, and 19th centuries, White southerners enslaved Black Africans for free labor<\/strong>. The American South quickly became a major market for their imports.<\/phrase>","47 percent of the population<\/word>","In 1665, there were fewer than 500 Africans in Virginia. In the lower South, by 1840, there were 2.3 million of them, or 47 percent of the population<\/strong>, and there were 1.6 million more in the rest of the slave-owning states.<\/phrase>","north of the 36th parallel<\/word>","white European immigrants<\/word>","This was not the case north of the 36th parallel<\/strong>, where the temperate weather encouraged small-scale farming and, from the 1700s on, the growth of an industry that employed tens of thousands of white European immigrants<\/strong>. Thus from the very birth of our nation, behind its unifying desire for independence and democracy, there was a significant, and in time growing, divide between the North and the South.<\/phrase>","single federal government<\/word>","status of the slaves became a major issue<\/word>","Compromise\nAs long as each colony was independent, slavery had a few critics in the North. But at the Constitutional Convention of 1787, which was called to create a single federal government<\/strong>, the status of the slaves became a major issue<\/strong>.<\/phrase>","count them as white people<\/word>","increase the number of their representatives<\/word>","pay taxes to the central government<\/word>","The Southern states wanted to count them as white people<\/strong> in order to increase the number of their representatives<\/strong> in the United States Congress and the Electoral College that elects U.S. presidents. They did not, however, want the same blacks included in the number of citizens for which the states had to pay taxes to the central government<\/strong>.<\/phrase>","The Northerners<\/word>","wanted just the opposite<\/word>","The Northerners<\/strong>, who had far fewer slaves, wanted just the opposite<\/strong> fewer Southern representatives who would water down the North's influence in the federal government, and more Southern money in the U.S. treasury.<\/phrase>","anti-slavery states lost by one vote<\/word>","three-fifths of a white person<\/word>","shameful compromise<\/word>","Reconstruction<\/word>","The anti-slavery states lost by one vote<\/strong>, and the status issue was papered over by a formula that counted each slave as three-fifths of a white person<\/strong>. It was a shameful compromise<\/strong> that ended during Reconstruction<\/strong> with the passage of the 13th, 14th, and 15th amendments.<\/phrase>","But even more fateful in the long run was the failure of our Founding Fathers to resolve the other weighty issue involving slavery, and that was its reach into the new U.S. territories and states in the rest of the continent.<\/phrase>","morality of slavery came under scrutiny<\/word>","crux of the controversy<\/word>","Again, a compromise of sorts was cobbled together by admitting into the Union one new slave state for every new free one, but it did not satisfy either side. The two regions deeply disagreed on other issues, such as the states' rights and the roles of the states' and the federal governments. But over time, as the morality of slavery came under scrutiny<\/strong>, the Southern emotions became so inflamed and hardened that the spread of the system became the crux of the controversy<\/strong> over which 630,000 young Americans died in the bloodiest war of our history.<\/phrase>","two-centuries-long dependence on slavery<\/word>","Drawn With The Sword<\/word>","James M. McPherson<\/word>","The Heart of the Conflict\nMost experts on the issue agree that the virulent Southern feelings that eventually triggered the war resulted from the region's two-centuries-long dependence on slavery<\/strong>. In his book, Drawn With The Sword<\/strong>, preeminent American Civil War historian James M. McPherson<\/strong> quotes the opinion that in effect, slavery had stamped the South with its own culture by creating \"...a ruling class with economic interests, political ideals,... moral sentiments [and an] aristocratic, anti-bourgeois spirit with values... emphasizing ... a strong code of honor ... that set [the South] apart\" from the North.<\/phrase>","high-minded self-esteem<\/word>","clashed with the slavery's moral rejection by the rest of the world<\/word>","As the South's high-minded self-esteem<\/strong> increasingly clashed with the slavery's moral rejection by the rest of the world<\/strong> (by the 1850s, only the South and Brazil owned large numbers of slaves), the region's leaders defended their economic system and their grossly exaggerated sense of honor with arguments that most Northerners found beyond baffling.<\/phrase>","Jefferson Davis<\/word>","a sense of dignity<\/word>","John C. Calhoun<\/word>","a positive good<\/word>","ordained by God<\/word>","Mississippi Senator (and later the Confederacy's president) Jefferson Davis<\/strong> praised slavery for giving even the poorest white Southerner someone to look down upon - a sense of dignity<\/strong> and \"equality with the rich man.\" South Carolina's Senator John C. Calhoun<\/strong> proclaimed slavery \"a positive good<\/strong>\" on much the same grounds as Davis. Religious leaders in the South denied that slavery was a sin by proclaiming it to be \"ordained by God<\/strong>.\"<\/phrase>","Slavery was the basis of Southern life<\/word>","Eventually, this self-righteousness precluded any possibility of another North-South compromise. \"Slavery was the basis of Southern life<\/strong>,\" Olson concluded in his book, and it \"had to expand for Southerners to feel that they were being treated equally as Americans and Christians.\"<\/phrase>","North was increasingly unwilling to accept<\/word>","20 percent of the people in these regions were foreign-born<\/word>","That, however, was a demand that the North was increasingly unwilling to accept<\/strong>. Between 1830 and 1860, the New England and the North Atlantic states absorbed nearly 1.5 million German and almost 2 million Irish immigrants, and by the latter date, about 20 percent of the people in these regions were foreign-born<\/strong>.<\/phrase>","civil language and moderate terms<\/word>","Abraham Lincoln<\/word>","favored slavery's limitation<\/word>","These new Americans had no need for slaves and no sympathy for Southern lifestyle or traditions. Their religion prohibited slavery, and they readily flocked to the cause of abolitionists who by 1860 controlled much of the new, anti-slavery Republican Party. The sentiments of the North were usually couched in civil language and moderate terms<\/strong>. For example, Abraham Lincoln<\/strong>, the Republican leader, at first favored slavery's limitation<\/strong> - not an abrupt extinction - and did not call for the emancipation of the slaves until after the South launched the war.<\/phrase>","anti-slavery camp had its extremists<\/word>","Harriet Beecher Stowe<\/word>","Uncle Tom's Cabin<\/word>","Fugitive Slave Act<\/word>","Mounting Tension\nBut the anti-slavery camp had its extremists<\/strong>, and it grew stronger and more assertive. The description of the slavery's cruelty in Harriet Beecher Stowe<\/strong>'s best-selling Uncle Tom's Cabin<\/strong> inflamed the Northern abolitionists so much that they refused to comply with the Fugitive Slave Act<\/strong>, which required the North to return escaped slaves to their owners.<\/phrase>","President Franklin Pierce<\/word>","In many towns in the North, volunteers patrolled streets to rescue fugitive blacks from the slave catchers, and in 1854, President Franklin Pierce<\/strong> had to send the U.S. soldiers to bring a slave back to the South after the officials and people of Boston refused to turn him in.<\/phrase>","an outrage and insult that's unacceptable to the South<\/word>","denigrated<\/word>","The Northerners<\/word>","To this growing antagonism in the North, the Southerners' responded with an increasingly virulent, hateful attacks on their critics. The 1854 founding of the Republican Party was denounced as \"an outrage and insult that's unacceptable to the South<\/strong>,\" and Southern politicians and newspapers routinely denigrated<\/strong> The Northerners<\/strong> as subhuman creatures far below the whites of the noble South.<\/phrase>","scathing speech<\/word>","An episode that best depicts this sentiment was the aftermath of a scathing speech<\/strong> in June 1856 by an abolitionist U. S. Senator against the pro-slavery settlers in Kansas. Two days later, a Southern congressman walked into the Senate and severely beat the abolitionist with a gold walking cane.<\/phrase>","Richmond Enquirer<\/word>","Typically, this crime is punishable with a stiff fine and a time in jail. In the South, it made the congressman a hero and inspired the following editorial in the Richmond Enquirer<\/strong>, a major Southern newspaper: \"These vulgar abolitionists in the Senate are getting above themselves,\" the editors wrote. \"They have grown saucy and dare to be impudent to gentlemen! Now, they are a low, mean, scurvy set, with some little book learning, but as utterly devoid of spirit or honor as a peck of curs... The truth is that they have been suffered to run too long without collars. They must be lashed into submission... Let them once understand that for every vile word spoken against the South, they will suffer so many stripes, and they will soon learn to behave themselves, like decent dogs - they can never be gentlemen...\"<\/phrase>","The Northerners<\/word>","Abraham Lincoln<\/word>","casus belli<\/word>","Instructed by arguments at this level, it was no wonder that President Lincoln's moderation throughout the growing crisis, and his final appeal to the South in March 1861 that \"[w]e are not enemies, but friends\" fell on deaf ears.\nDeriding The Northerners<\/strong> as animals, the Southerners denounced the 1860 election of the \"Black Infidel\" Abraham Lincoln<\/strong> for president as \"a deliberate, cold-blooded insult and outrage\" and turned it into a casus belli<\/strong>.<\/phrase>","Confederate States of America<\/word>","unhinged and irrational mindset caused by the slavery.<\/word>","The subsequent secession of eleven Southern states, their formation of the ill-fated Confederate States of America<\/strong>, and the April 1862 bombardment of the Union's Fort Sumter that started the Civil War, were the products of the South's unhinged and irrational mindset caused by the slavery.<\/strong><\/phrase>","the War of Northern Aggression<\/word>","Freedom is not possible without slavery<\/word>","As McPherson points out, despite the overwhelming evidence to the contrary, many Southerners called the conflict \"the War of Northern Aggression<\/strong>\" and regarded their region not as the attacker, but the victim. The brave Confederacy soldiers went to battles under the slogan \"Freedom is not possible without slavery<\/strong>!\" \"Dixie,\" their war-time song, called the Union troops \"beagles\" that had to be \"hunted back to their kennels.\"<\/phrase>","The Truth is Marching On!<\/word>","It was our country's surpassing good fortune that after \"the beagles\" - whose song proclaimed that \"The Truth is Marching On!<\/strong>\" - had won on the battle field; President Lincoln, in his high-minded, immortal Gettysburg Address, closed the war's final chapter by restoring the dignity and generosity of the relations between the North and the South.<\/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':3074, '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':3074, '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':3074, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }