var presentation = ["Bacteria<\/word>","constitute<\/word>","large domain<\/word>","prokaryotic microorganisms<\/word>","few micrometers in length<\/word>","number of shapes<\/word>","spheres<\/word>","rods<\/word>","spirals<\/word>","first life forms to appear<\/word>","present<\/word>","most of its habitats<\/word>","Bacteria inhabit<\/word>","soil<\/word>","water<\/word>","acidic hot springs<\/word>","radioactive waste<\/word>","deep biosphere<\/word>","earth's crust<\/word>","symbiotic<\/word>","parasitic relationships<\/word>","plants<\/word>","animals<\/word>","Most bacteria have not been characterized<\/word>","only<\/word>","27 percent<\/word>","bacterial phyla<\/word>","can be grown in the laboratory<\/word>","Bacteria<\/strong> are a type of cell that constitute<\/strong> a large domain<\/strong> of prokaryotic microorganisms<\/strong>. Typically a few micrometers in length<\/strong>, Bacteria<\/strong> have a number of shapes<\/strong>, ranging from spheres<\/strong> to rods<\/strong> and spirals<\/strong>. Bacteria<\/strong> were among the first life forms to appear<\/strong> on Earth, and are present<\/strong> in most of its habitats<\/strong>. Bacteria inhabit<\/strong> soil<\/strong>, water<\/strong>, acidic hot springs<\/strong>, radioactive waste<\/strong>, and the deep biosphere<\/strong> of the earth's crust<\/strong>. Bacteria<\/strong> also live in symbiotic<\/strong> and parasitic relationships<\/strong> with plants<\/strong> and animals<\/strong>. Most bacteria have not been characterized<\/strong>, and only<\/strong> about 27 percent<\/strong> of the bacterial phyla<\/strong> have species that can be grown in the laboratory<\/strong>.<\/phrase>","Archaea<\/word>","constitute<\/word>","other domain<\/word>","prokaryotic cells<\/word>","initially classified as<\/word>","Bacteria<\/word>","unique properties<\/word>","Archaea and bacteria<\/word>","similar in size and shape<\/word>","few archaea<\/word>","very different shapes<\/word>","flat<\/word>","square cells<\/word>","morphological<\/word>","archaea possess genes<\/word>","several metabolic pathways<\/word>","closely related<\/word>","eukaryotes<\/word>","enzymes involved<\/word>","transcription<\/word>","translation<\/word>","archaeal biochemistry<\/word>","reliance<\/word>","lipids<\/word>","cell membranes<\/word>","Archaea use more energy sources than eukaryotes<\/word>","organic compounds<\/word>","sugars<\/word>","ammonia<\/word>","metal ions<\/word>","hydrogen gas<\/word>","Salt-tolerant archaea<\/word>","Haloarchaea<\/word>","sunlight<\/word>","energy source<\/word>","fix carbon<\/word>","unlike<\/word>","plants<\/word>","cyanobacteria<\/word>","no known species of archaea does both<\/word>","reproduce asexually<\/word>","binary fission<\/word>","fragmentation<\/word>","budding<\/word>","no known species of Archaea<\/word>","form endospores<\/word>","Archaea<\/strong> constitute<\/strong> the other domain<\/strong> of prokaryotic cells<\/strong> and were initially classified as<\/strong> Bacteria<\/strong>, receiving the name archaebacteria, a term that has fallen out of use. Archaeal cells have unique properties<\/strong> separating them from the other two domains, Bacteria<\/strong> and Eukaryota. Archaea<\/strong> are further divided into multiple recognized phyla. Archaea and bacteria<\/strong> are generally similar in size and shape<\/strong>, although a few archaea<\/strong> have very different shapes<\/strong>, such as the flat<\/strong> and square cells<\/strong> of Haloquadratum walsbyi.Despite this morphological<\/strong> similarity to Bacteria<\/strong>, archaea possess genes<\/strong> and several metabolic pathways<\/strong> that are more closely related<\/strong> to those of eukaryotes<\/strong>, notably for the enzymes involved<\/strong> in transcription<\/strong> and translation<\/strong>. Other aspects of archaeal biochemistry<\/strong> are unique, such as their reliance<\/strong> on ether lipids<\/strong> in their cell membranes<\/strong>, including archaeols. Archaea use more energy sources than eukaryotes<\/strong>-- these range from organic compounds<\/strong>, such as sugars<\/strong>, to ammonia<\/strong>, metal ions<\/strong> or even hydrogen gas<\/strong>. Salt-tolerant archaea<\/strong> (the Haloarchaea<\/strong>) use sunlight<\/strong> as an energy source<\/strong>, and other species of Archaea<\/strong> fix carbon<\/strong>, but unlike<\/strong> plants<\/strong> and cyanobacteria<\/strong>, no known species of archaea does both<\/strong>. Archaea<\/strong> reproduce asexually<\/strong> by binary fission<\/strong>, fragmentation<\/strong>, or budding<\/strong>; unlike<\/strong> Bacteria<\/strong>, no known species of Archaea<\/strong> form endospores<\/strong>.<\/phrase>","Archaea<\/word>","extremophiles<\/word>","extreme environments<\/word>","hot springs<\/word>","salt lakes<\/word>","molecular detection tools<\/word>","discovery of archaea<\/word>","soil<\/word>","oceans<\/word>","marshlands<\/word>","The first observed Archaea<\/strong> were extremophiles<\/strong>, living in extreme environments<\/strong>, such as hot springs<\/strong> and salt lakes<\/strong> with no other organisms. Improved molecular detection tools<\/strong> led to the discovery of archaea<\/strong> in almost every habitat, including soil<\/strong>, oceans<\/strong>, and marshlands<\/strong>. Archaea<\/strong> are particularly numerous in the oceans<\/strong>, and the Archaea<\/strong> in plankton may be one of the most abundant groups of organisms on the planet.<\/phrase>","Archaea<\/word>","microbiota of all organisms<\/word>","human microbiome<\/word>","important<\/word>","gut<\/word>","mouth<\/word>","skin<\/word>","morphological<\/word>","metabolic<\/word>","geographical diversity<\/word>","play multiple ecological roles<\/word>","carbon fixation<\/word>","nitrogen cycling<\/word>","organic compound turnover<\/word>","maintaining<\/word>","symbiotic<\/word>","syntrophic communities<\/word>","Archaea<\/strong> are a major part of Earth's life. They are part of the microbiota of all organisms<\/strong>. In the human microbiome<\/strong>, they are important<\/strong> in the gut<\/strong>, mouth<\/strong>, and on the skin<\/strong>. Their morphological<\/strong>, metabolic<\/strong>, and geographical diversity<\/strong> permits them to play multiple ecological roles<\/strong>-- carbon fixation<\/strong>; nitrogen cycling<\/strong>; organic compound turnover<\/strong>; and maintaining<\/strong> microbial symbiotic<\/strong> and syntrophic communities<\/strong>, for example.<\/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':3179, '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':3179, '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':3179, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }