var presentation = ["Gratitude journals<\/word>","wish<\/word>","their attention<\/word>","positive things<\/word>","their lives<\/word>","A gratitude journal is a diary of things for which one is grateful. Gratitude journals<\/strong> are used by individuals who wish<\/strong> to focus their attention<\/strong> on the positive things<\/strong> in their lives<\/strong>.<\/phrase>","happier<\/word>","mental and physical health benefits<\/word>","consistently enhance gratitude levels<\/word>","appreciation or thanks<\/word>","positive psychology<\/word>","found<\/word>","suggest<\/word>","even possess<\/word>","develop<\/word>","help<\/word>","depressive symptoms<\/word>","Gratitude, the feeling of appreciation or thanks<\/strong>, has gained a lot of attention in the field of positive psychology<\/strong>. Some studies have found<\/strong> that those who are habitually grateful are happier<\/strong> than those who are not. Furthermore, studies suggest<\/strong> that feelings of gratitude may even possess<\/strong> mental and physical health benefits<\/strong>. positive psychology<\/strong> strives to develop<\/strong> methods by which one can consistently enhance gratitude levels<\/strong>. Furthermore, the maintenance of a gratitude journal can help<\/strong> relieve depressive symptoms<\/strong>.<\/phrase>","Emmons & McCullough<\/word>","psychological and physical functioning<\/word>","help others<\/word>","more connected to others<\/word>","psychological and physical benefits<\/word>","early research studies<\/word>","Gratitude journals<\/word>","found<\/word>","weekly journals<\/word>","five things<\/word>","upcoming week and life<\/word>","more time exercising<\/word>","fewer symptoms<\/word>","physical illness<\/word>","daily gratitude journals<\/word>","overall gratitude<\/word>","positive affect<\/word>","personal goals<\/word>","not keep<\/word>","neuromuscular disease<\/word>","3 weeks<\/word>","refreshing sleep<\/word>","positive emotions<\/word>","One of the early research studies<\/strong> on Gratitude journals<\/strong> by Emmons & McCullough<\/strong> found<\/strong> that \"counting one's blessings\" in a journal led to improved psychological and physical functioning<\/strong>. Participants who recorded weekly journals<\/strong>, each consisting of five things<\/strong> they were grateful for, were more optimistic towards the upcoming week and life<\/strong> as a whole, spent more time exercising<\/strong>, and had fewer symptoms<\/strong> of physical illness<\/strong>. Participants who kept daily gratitude journals<\/strong> reported increased overall gratitude<\/strong>, positive affect<\/strong>, enthusiasm, determination, and alertness. They were also more likely to help others<\/strong> and make progress towards their personal goals<\/strong>, compared to those who did not keep<\/strong> Gratitude journals<\/strong>. For a sample of adults with neuromuscular disease<\/strong>, writing daily gratitude journals<\/strong> for 3 weeks<\/strong> lead to increased optimism about one's life, longer and more refreshing sleep<\/strong>, greater positive emotions<\/strong>, and feeling more connected to others<\/strong>. Overall, participants who kept weekly or daily gratitude journals<\/strong> had greater psychological and physical benefits<\/strong> when compared to participants who did not keep<\/strong> Gratitude journals<\/strong>.<\/phrase>","easy<\/word>","Goal evaluation and tracking<\/word>","Savoring the moment<\/word>","Seligman et al.<\/word>","three good things<\/word>","Gratitude journals<\/word>","enjoyable way<\/word>","found<\/word>","different happiness interventions<\/word>","continue<\/word>","exercise<\/word>","own<\/word>","one-week intervention<\/word>","other exercises<\/word>","its benefits<\/word>","Another benefit may be that Gratitude journals<\/strong> are a relatively easy<\/strong> and enjoyable way<\/strong> to boost happiness: Parks et al. found<\/strong> that when presented with eight different happiness interventions<\/strong>, Gratitude journals<\/strong> were the third most popular (preceded by \"Goal evaluation and tracking<\/strong>\" and \"Savoring the moment<\/strong>\"). Similarly, Seligman et al.<\/strong> found<\/strong> that participants were more likely to continue<\/strong> their \"three good things<\/strong>\" exercise<\/strong> on their own<\/strong> after the one-week intervention<\/strong> than the other exercises<\/strong>, and this lack of attrition mediated the link between the exercise<\/strong> and its benefits<\/strong>.<\/phrase>","weekly gratitude journals<\/word>","a once-weekly gratitude journal<\/word>","beneficial<\/word>","Gratitude journals<\/word>","many researchers<\/word>","One study<\/word>","number<\/word>","complete<\/word>","increase<\/word>","suggest<\/word>","In light of the growing body of literature on the benefits of Gratitude journals<\/strong>, many researchers<\/strong> have also investigated how to maximize these benefits. One study<\/strong> investigating the efficacy of a number<\/strong> of happiness interventions instructed participants to complete<\/strong> Gratitude journals<\/strong> either once or three times per week. Results indicated that weekly gratitude journals<\/strong> led to a significant increase<\/strong> in happiness, but thrice-weekly gratitude journals<\/strong> did not. This study compared the gratitude intervention to a different activity in which participants completed five acts of kindness, either all in one day or spread out over the week. The results for this activity were remarkably similar to the results of the gratitude journals: those in the single-day condition reported a significant increase<\/strong> in well-being, while those who spread their acts of kindness across several days did not. The authors suggested that spreading out these happiness-boosting activities-gratitude or kindness-may have diminished their saliency or their novelty. These results suggest<\/strong> that a once-weekly gratitude journal<\/strong> is most beneficial<\/strong>.<\/phrase>","beneficial<\/word>","template<\/word>","found<\/word>","answer<\/word>","happen<\/word>","cause<\/word>","recognize<\/word>","use<\/word>","Some research has found<\/strong> that gratitude journal entries that address and answer<\/strong> the questions \"Why am I grateful for this? Why did this good thing happen<\/strong>?\" are exceptionally beneficial<\/strong> because they cause<\/strong> the individual to think about and recognize<\/strong> their gratitude and its cause<\/strong>. Some studies have had participants use<\/strong> a template<\/strong> for writing in their journal entry. Following the \"I am grateful for ___________, because ________________\" template<\/strong> has been shown to result in increased happiness and subjective well being. Having deeper, more personal things to be grateful for yields greater happiness and increased gratitude.<\/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':1438, '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':1438, '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':1438, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }