var presentation = ["Yoga<\/word>","postures<\/word>","breathing exercises<\/word>","relaxation<\/word>","meditation<\/word>","Ha\u1e6dha yoga<\/word>","exercise<\/word>","physical activity<\/word>","frequently ending<\/word>","form<\/word>","spiritual discipline<\/word>","Yoga<\/strong> as exercise<\/strong> is a physical activity<\/strong> consisting mainly of postures<\/strong>, often connected by flowing sequences, sometimes accompanied by breathing exercises<\/strong>, and frequently ending<\/strong> with relaxation<\/strong> lying down or meditation<\/strong>. Yoga<\/strong> in this form<\/strong> has become familiar across the world, especially in America and Europe. It is derived from the postures<\/strong> used in the medieval spiritual discipline<\/strong> of Ha\u1e6dha yoga<\/strong>, but it is generally simply called \"Yoga<\/strong>\".<\/phrase>","Yoga<\/word>","Ashtanga Yoga<\/word>","Ha\u1e6dha yoga<\/word>","number<\/word>","schools and styles<\/word>","Western world<\/word>","widespread styles<\/word>","Viniyoga<\/word>","different aspects<\/word>","aerobic exercise<\/word>","The number<\/strong> of schools and styles<\/strong> of Yoga<\/strong> in the Western world<\/strong> has continued to grow rapidly. By 2012, there were at least 19 widespread styles<\/strong> from Ashtanga Yoga<\/strong> to Viniyoga<\/strong>. These emphasise different aspects<\/strong> including aerobic exercise<\/strong>, precision in the asanas, and spirituality in the Ha\u1e6dha yoga<\/strong> tradition.<\/phrase>","Bikram Yoga<\/word>","breathing exercises<\/word>","postures<\/word>","Iyengar Yoga<\/word>","relaxation<\/word>","Sivananda Yoga<\/word>","meditation<\/word>","Jivamukti yoga<\/word>","Kundalini yoga<\/word>","distinctive styles<\/word>","aerobic exercise style<\/word>","fixed pattern<\/word>","24 asanas<\/word>","correct alignment<\/word>","spiritual practice<\/word>","basic poses<\/word>","Sanskrit<\/word>","each class<\/word>","vegetarian diet<\/word>","vinyasa style<\/word>","These aspects can be illustrated by schools with distinctive styles<\/strong>. Thus, Bikram Yoga<\/strong> has an aerobic exercise style<\/strong> with rooms heated to 105 \u00b0F (41 \u00b0C) and a fixed pattern<\/strong> of 2 breathing exercises<\/strong> and 24 asanas<\/strong> (postures<\/strong>). Iyengar Yoga<\/strong> emphasizes correct alignment<\/strong> in the postures<\/strong>, working slowly, if necessary with props, and ending with relaxation<\/strong>. Sivananda Yoga<\/strong> focuses more on spiritual practice<\/strong>, with 12 basic poses<\/strong>, chanting in Sanskrit<\/strong>, pranayama breathing exercises<\/strong>, meditation<\/strong>, and relaxation<\/strong> in each class<\/strong>, and importance is placed on vegetarian diet<\/strong>. Jivamukti yoga<\/strong> uses a flowing vinyasa style<\/strong> of asanas accompanied by music, chanting, and the reading of scriptures. Kundalini yoga<\/strong> emphasizes the awakening of kundalini energy through meditation<\/strong>, pranayama, chanting, and suitable asanas.<\/phrase>","Yoga<\/word>","gentle warm-up<\/word>","Mysore style yoga<\/word>","exercise<\/word>","start<\/word>","move<\/word>","slow<\/word>","end<\/word>","time<\/word>","own<\/word>","Yoga<\/strong> sessions vary widely depending on the school and style, and according to how advanced the class is. As with any exercise<\/strong> class, sessions usually start<\/strong> slowly with gentle warm-up<\/strong> exercises, move<\/strong> on to more vigorous exercises, and slow<\/strong> down again towards the end<\/strong>. A typical session in most styles lasts from an hour to an hour and a half, whereas in Mysore style yoga<\/strong>, the class is scheduled in a three-hour time<\/strong> window during which the students practice on their own<\/strong> at their own<\/strong> speed, following individualized instruction by the teacher.<\/phrase>","Yoga<\/word>","health benefits<\/word>","Iyengar Yoga<\/word>","neck pain<\/word>","back pain<\/word>","depression<\/word>","American Cancer Society<\/word>","anxiety<\/word>","stress<\/word>","strength<\/word>","fatigue<\/word>","sleep quality<\/word>","exercise<\/word>","Western world<\/word>","found<\/word>","reduce<\/word>","improve<\/word>","balance<\/word>","help<\/word>","support<\/word>","Yoga<\/strong> as exercise<\/strong> has been popularized in the Western world<\/strong> by claims about its health benefits<\/strong>. A systematic review of six studies found<\/strong> that Iyengar Yoga<\/strong> is effective at least in the short term for both neck pain<\/strong> and low back pain<\/strong>. A review of six studies found<\/strong> benefits for depression<\/strong>, but noted that the studies' methods imposed limitations, while a clinical practice guideline from the American Cancer Society<\/strong> stated that Yoga<\/strong> may reduce<\/strong> anxiety<\/strong> and stress<\/strong> in people with cancer. The practice of asanas has been claimed to improve<\/strong> flexibility, strength<\/strong>, and balance<\/strong>; to alleviate stress<\/strong> and anxiety<\/strong>, and to reduce<\/strong> the symptoms of lower back pain<\/strong>. A 2017 review found<\/strong> moderate-quality evidence that Yoga<\/strong> reduces back pain<\/strong>. For people with cancer, Yoga<\/strong> may help<\/strong> relieve fatigue<\/strong>, improve<\/strong> psychological outcomes, and support<\/strong> sleep quality<\/strong> and life attitudes, although results vary from reviews published in 2017.<\/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':1436, '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':1436, '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':1436, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }