var presentation = ["permafrost<\/word>","climate change transplants<\/word>","\"Many folks are not happy to be leaving the place they've known their whole lives.\" After 20 years of melting permafrost<\/strong>, residents of Newtok now must move.\nThey've boxed their clothes and piled into boats and said goodbye to neighbors - for now.\nThis month, a group of residents from the Alaska village of Newtok finally began settling into a brand new town. In the process, they have become some of North America's earliest climate change transplants<\/strong>.<\/phrase>","Yup'ik<\/word>","Ninglick River<\/word>","permafrost<\/word>","The Yup'ik<\/strong> village of about 380 people on the Ninglick River<\/strong> near the Bering Sea has spent more than two decades preparing to move. Thawing permafrost<\/strong> and erosion has increased flooding risks and caused the land around their homes to crumble and sink. The community landfill has washed away, fuel storage tanks are damaged, and some houses have already been torn down because they were in danger of collapsing.<\/phrase>","energy-efficient homes<\/word>","the calm between storms<\/word>","So, after years of planning and construction, families two weeks ago began arriving in the new village of Mertarvik, about 10 miles southeast on Nelson Island. During breaks in the high winds and heavy rains that lashed the area last week, 18 families began unpacking belongings in their newly built energy-efficient homes<\/strong>.\n\"We're moving, literally, in the calm between storms<\/strong>,\" says Andrew John, Newtok Village tribal administrator.<\/phrase>","Mertarvik-Newtok village<\/word>","Gavin Dixon<\/word>","More families are expected to make the move. However, it will probably take until at least 2023 before enough homes are built for everyone. Until then the Mertarvik-Newtok village<\/strong> will operate from two locations separated by water.\n\"It will be challenging, but this is a very strong community,\" says Gavin Dixon<\/strong>, a manager of a community organization. He is assisting Newtok residents with the move.<\/phrase>","Yup'ik<\/word>","hunters<\/word>","hunter-gatherer lifestyle<\/word>","For thousands of years, until the early 20th century, the Yup'ik<\/strong> people were hunters<\/strong> who moved between camps as they hunted seals, moose, and musk oxen and gathered berries and wild greens. While this community still maintains a hunter-gatherer lifestyle<\/strong>, residents were forced in 1949 to settle in Newtok after the government chose the site for the village school without first seeking residents' input.<\/phrase>","permafrost<\/word>","greenhouse gases<\/word>","Since then, climate change has warmed the planet and started thawing the frozen ground that sits below the surface across the far north. Melting permafrost<\/strong> is causing roads, pipelines, and building foundations to crack while also releasing more greenhouse gases<\/strong>. This drives global temperature increases even higher. Meanwhile, as sea ice melts and moves offshore, storm surges cause rivers to rise, destroying river banks and splashing into communities. Rising seas accelerate this erosion.<\/phrase>","enormous<\/word>","isolated<\/word>","As a result, Newtok residents for years have watched enormous<\/strong> chunks of once-stable soil crumble into the Ninglick, bringing the waters ever closer to homes, sometimes as much as 83 feet per year. Floods frequently leave households isolated<\/strong>. One study in the early 2000s showed vast sections of the town could become part of the river as early as 2027.<\/phrase>","isolated<\/word>","alternative home<\/word>","sanitation<\/word>","But as with many other isolated<\/strong> Alaskan communities facing similar problems, securing an alternative home<\/strong> and finding money to move has been a long process. The government hasn't been willing to invest in services in the meantime. So for decades residents have lived without plumbing, instead gathering drinking water in jugs. The lack of proper sanitation<\/strong> has led to health problems, especially among infants.<\/phrase>","water treatment plant<\/word>","landing strip<\/word>","In 2003 Congress finally agreed to create the new village of Mertarvik on higher ground.\nSince then, money slowly has come from state and federal agencies to build roads, a community center, a landfill and a power station. A water treatment plant<\/strong> will be finished in a few weeks and a new school will be up and running in November. A landing strip<\/strong> for airplanes is coming soon.<\/phrase>","public water<\/word>","sewer systems<\/word>","But only about a third of the 60 or so new homes that are needed have been built. They have electricity but don't yet have access to public water<\/strong> or sewer systems<\/strong>. The community first wanted to get as many homes built and occupied as possible. Getting money to install running water and sewer could take many more years.<\/phrase>","transforming Mertarvik<\/word>","maintaining<\/word>","So for now, residents get to begin transforming Mertarvik<\/strong> into a new community - all while maintaining<\/strong> their old one several miles away.\nIt won't be simple. For now, some tribal officials will live in Mertarvik while others will remain in Newtok. There will be school teachers in each village, as well as a principal on each site. Some educating will be done via video.<\/phrase>","Emotions<\/word>","demolished<\/word>","But with 40 students in one community and 60 in the other, \"half of their friends will be 10 miles away,\" Dixon says.\nEmotions<\/strong> about all of this change are mixed. Newtok resident Martha Kasaiuli, 19, already has had her Newtok home demolished<\/strong>. Her family moved to Mertarvik last week, but she plans to remain on the other side of the water with friends for a few months. She expressed her thoughts in a poem, which reads in part:<\/phrase>","unwanted feelings<\/word>","unfamiliar place<\/word>","grow vacant<\/word>","The unwanted feelings<\/strong> about moving grow stronger.\nHowever, staying here isn't fun though.\nWe will be moving to an unfamiliar place<\/strong>.\nBut this place will grow vacant<\/strong> as the years go by.<\/phrase>","relieved<\/word>","feel anxious<\/word>","separation anxiety<\/word>","Dixon puts it this way: \"Many folks are not happy to be leaving the place they've known their whole lives.\"\nJohn says some residents are relieved<\/strong> while others feel anxious<\/strong>, and a few already experience separation anxiety<\/strong>. Some are too busy gathering food for winter to give it much thought.<\/phrase>","traditional hunting grounds<\/word>","attribute<\/word>","ability to adapt<\/word>","The move might leave some residents a bit farther from traditional hunting grounds<\/strong>, \"but frankly that's a small price to pay for the safety and security they will now have,\" John says.\n\"I think as a people, our greatest attribute<\/strong> has been our ability to adapt<\/strong>,\" John says. \"Our people have been flexible. We've found a way.\"\nOr, as Kasaiuli sees it, \"Our story is unfolding to a better ending, even if we don't want to leave this place.\"<\/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':2708, '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':2708, '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':2708, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }