var presentation = ["Tuesday in October 1929<\/word>","severe economic crisis<\/word>","On a fateful Tuesday in October 1929<\/strong>, American citizens experienced the beginning of the worst economic disaster in the country's history. The day marked the beginning of the Great Depression, a severe economic crisis<\/strong> that lasted for more than ten years and hurt millions of people around the country.<\/phrase>","many causes<\/word>","The Great Depression had many causes<\/strong>. In fact, economists still debate over all the factors that led to the crisis. The following are some of the most important causes:<\/phrase>","Investing in a stock<\/word>","The Stock Market\nMaybe you have heard your parents or news commentators talk about the stock market. Essentially, it is where people can buy stocks, or very small pieces, of big companies like Walmart or Facebook. If the company makes money, the stock-holder gets also gets a small profit. Investing in a stock<\/strong> is like taking a gamble because the company could earn a lot of money, or it could lose money.<\/phrase>","extremely popular<\/word>","In the years before 1929, the stock market was an extremely popular<\/strong> way for everyday people to earn some extra money. Because of this, the prices of stocks kept getting higher and higher. By 1929, many prices were much higher than the actual values of companies.<\/phrase>","skeptical<\/word>","selling their stocks<\/word>","scrambling to sell<\/word>","stock market crash<\/word>","Some people started getting skeptical<\/strong>. Prices could not keep going up forever. So they started selling their stocks<\/strong> while they were still at high prices. More and more people started catching on until everyone was scrambling to sell<\/strong> their stocks at once. There was no one left to buy all these available stocks, so the prices dropped steeply.\nThis caused what is known as a stock market crash<\/strong>. In just one day, on October 29, 1929, the whole stock market lost over $14 billion.<\/phrase>","no way to pay back their loans<\/word>","Bank Failures\nDuring the popularity of the stock market, most banks had very few rules about loaning out money. They would loan money to customers so those customers could go use it to buy more stocks.\nWhen the stock market lost so much money, suddenly all those customers had no way to pay back their loans<\/strong>. But when people heard about the crash, they started to panic and wanted to pull the money out of their savings accounts just to keep it safe.<\/phrase>","rippled throughout the nation<\/word>","With no money back from all the loans they had given out, the banks did not have enough money supply to also pay out everything from everyone's savings. The bank failures rippled throughout the nation<\/strong>, causing even more economic problems and panic for average Americans.<\/phrase>","drought<\/word>","Farmers<\/word>","The Dust Bowl\nA record-setting drought<\/strong> hit the middle states, especially Oklahoma, around the same time. The timing could not have been worse. Farmers<\/strong>, who usually remained stable during economic uncertainty because they could at least grow their own food, were suddenly in just as much trouble as the rest of the country.<\/phrase>","drought<\/word>","huge clouds of dust<\/word>","unemployment<\/word>","not enough jobs<\/word>","The drought<\/strong> brought hot, dry winds sweeping across the plains, blowing huge clouds of dust<\/strong> across the plains and into many peoples' houses and lungs. Families could not stay in the area. They packed up and left the Great Plains, heading west to places like California to find work. Unfortunately, other states already had their own unemployment<\/strong> problems; there were not enough jobs<\/strong> for the newcomers.<\/phrase>","problems were more extensive<\/word>","unemployment<\/word>","Effects of the Depression\nAt the beginning of the financial problems, few people predicted the crisis would last over a decade. But the problems were more extensive<\/strong> and much deeper than analysts realized at first.\nOne of the most important effects of the Great Depression was unemployment<\/strong>. At its peak in 1933 around 25% of adults were unemployed - this means 1 in 4 adults did not have jobs.<\/phrase>","Hoovervilles<\/word>","Herbert Hoover<\/word>","charity soup kitchens<\/word>","Without steady income, many families were forced out of their homes. Some found other family members to live with, while others had to take to the streets. Some people moved into small shanty towns called Hoovervilles<\/strong>, named after the president at the time Herbert Hoover<\/strong>. These people often had to rely on charity soup kitchens<\/strong> to get enough food to eat.<\/phrase>","President Franklin D. Roosevelt<\/word>","New Deal<\/word>","restructure<\/word>","Political Interventions\nIn 1932, near the worst of the Depression, President Franklin D. Roosevelt<\/strong> was elected. He immediately started working to fix the problems. The set of policies and government programs he instituted are known as the New Deal<\/strong>.\nTo address the banking issues, he temporarily closed all banks to give them a chance to restructure<\/strong> themselves. He set guidelines for future bank operations. He also made more rules for how investors on the stock market could buy and sell stocks more responsibly.<\/phrase>","unemployment<\/word>","Civilian Conservation Corps<\/word>","Works Progress Administration<\/word>","To help families affected by unemployment<\/strong>, he created many employment programs. Groups like the Civilian Conservation Corps<\/strong> (CCC) and Works Progress Administration<\/strong> (WPA) used government funds to pay young men for services like building roads and cleaning parks. This gave families some money to start buying necessities again.\nPresident Roosevelt started dozens of programs during his time in the White House. Not all of them were successful, and a few were even deemed unconstitutional, but many did have positive results.<\/phrase>","Radio<\/word>","Amos \u2018n' Andy<\/word>","The Jack Benny Show<\/word>","New Deal<\/word>","Culture Amid Crisis\nEven though Americans faced one of the greatest challenges in our nation's history during the 1930s, they were able to produce art and entertainment to raise everyone's spirits.\nRadio<\/strong> became a central aspect of many people's home lives. They could listen for free to comedy shows like Amos \u2018n' Andy<\/strong> and The Jack Benny Show<\/strong>. President Roosevelt also made regular speeches on the Radio<\/strong>, known as his fireside chats, to reassure the American people and explain his newest New Deal<\/strong> policies.<\/phrase>","Movies continued to grow<\/word>","swing music<\/word>","big band genre<\/word>","Bing Crosby<\/word>","Brother, Can You Spare a Dime<\/word>","Movies continued to grow<\/strong> in popularity. Many movies featured tough gangsters and witty city-dwellers with exciting plots. Viewers could escape into this world for a few hours any time they watched a movie.\nMusic portrayed a more complex, and for many people more relatable, view of society during the Great Depression. Some songs recalled the better days of the 1920s when the country was happy. The mid-1930s introduced swing music<\/strong> and the big band genre<\/strong>, full of upbeat and exciting melodies. The dancing that accompanied it was fast-paced. But other artists, like Bing Crosby<\/strong>, did not shy away from writing music that reflected the hard times. His song \"Brother, Can You Spare a Dime<\/strong>?\" became popular.<\/phrase>","unemployment<\/word>","World War II in 1941<\/word>","new manufacturing jobs<\/word>","Living standards<\/word>","Recovery\nEven though the worst of the Great Depression came in 1933, its negative effects and high unemployment<\/strong> continued throughout the 1930s.\nWhen the United States entered World War II in 1941<\/strong>, things began to change. The military needed new equipment and supplies, so thousands of new manufacturing jobs<\/strong> opened to support the war effort. This cut down on the still-soaring unemployment<\/strong> rates. Living standards<\/strong> still remained relatively low, because so many factories built war materials instead of every day goods for households. Still, Americans began to regain their sense of hope for the future. After the war ended, their hopes were realized as Living standards<\/strong> rose and economic prosperity spread across the country.<\/phrase>","The Grapes of Wrath<\/word>","Social Security Act<\/word>","The Great Depression lives on through famous literature like John Steinbeck's novel The Grapes of Wrath<\/strong>, published in 1939. But the Great Depression's legacy may best be seen in the Social Security Act<\/strong>, which was passed by Congress in 1935. Since then the government has provided Americans with pensions for the retired, as well as assistance to the unemployed and those with disabilities.<\/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':2416, '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':2416, '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':2416, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }