var presentation = ["groundbreaking<\/word>","theorized<\/word>","isolated<\/word>","Marie Curie is one of the most renowned and groundbreaking<\/strong> scientists in history. Curie was a chemist who theorized<\/strong> about radiation, and discovered and isolated<\/strong> the element radium, used in cancer treatments and other medicine. Curie was the first woman to win the Nobel Prize and the only person ever to win a Nobel in two different fields.<\/phrase>","Marie Sk\u0142odowska<\/word>","inquisitive<\/word>","academically gifted<\/word>","Marie Curie was born as Marie Sk\u0142odowska<\/strong> in Warsaw, Poland, in 1867, as the youngest of five siblings. Her parents were teachers, and she followed the example of her father who was a math and physics instructor. Curie excelled in school, was bright and inquisitive<\/strong>, and loved learning. But the Curie family soon experienced a period of hardship. When Russia invaded Poland, Curie's father lost his job because he supported Polish nationalism. Soon after, her mother died of tuberculosis. After her mother's death, Curie started attending an elite boarding school for academically gifted<\/strong> students.<\/phrase>","education<\/word>","the Sorbonne<\/word>","prestigious<\/word>","prohibitive<\/word>","Curie was a top student in her secondary school, but when she graduated she faced a difficult challenge - how was she going to continue her education<\/strong>? Under Russian rule, women were not permitted to attend university. Curie and her sister, Bronya, longed to pursue their studies at the Sorbonne<\/strong> in Paris, one of the most prestigious<\/strong> universities the world and one of the few that allowed women to attend. However, between school tuition, traveling, and living in Paris, the cost of attending the Sorbonne<\/strong> was prohibitive<\/strong> for the Curies. The sisters came to an agreement - Curie would work to support Bronya while she studied medicine, and then when Bronya graduated, she would do the same for Curie. It took six years for Bronya to complete her studies and become a doctor. During this time, Curie worked as a tutor to financially support her sister. In the evenings, she read physics and math textbooks and took courses at a free underground university.<\/phrase>","the Sorbonne<\/word>","destitute lifestyle<\/word>","In 1891, Curie finally moved to Paris and began studying at the Sorbonne<\/strong>. Living in Paris was expensive and she struggled financially. She survived off of bread and butter in an unheated apartment. Curie was one of the top students in her class, but her health suffered as a result of her destitute lifestyle<\/strong>. She graduated after two years with a master's degree in Physics, and after a third year she earned a second master's degree in Chemistry.<\/phrase>","yearned<\/word>","Pierre Curie<\/word>","Curie missed her home and yearned<\/strong> to return. She decided to look for a job in Poland but realized that women were still unwelcome at the university, even as researchers. She returned to Paris, where her fianc\u00e9 and fellow physicist Pierre Curie<\/strong> was waiting for her.<\/phrase>","Henri Becquerel<\/word>","Wilhelm Roentgen<\/word>","theorized<\/word>","theory of radioactivity<\/word>","atomic physics<\/word>","Curie was fascinated by the rays discovered by Henri Becquerel<\/strong> and Wilhelm Roentgen<\/strong>. Roentgen discovered Xrays and Becquerel discovered weaker rays that the element uranium emitted. Curie did her own experiments on uranium. She discovered that the rays remained constant no matter what. Curie theorized<\/strong> that the rays came from the atomic structure of uranium. Based off of these experiments, Curie came up with the theory of radioactivity<\/strong> and created a new field of physics called atomic physics<\/strong>.<\/phrase>","pitchblende<\/word>","radium and polonium<\/word>","After the birth of their first daughter, Pierre asked to join Curie in her lab because her work was so impressive and exciting. They looked for uranium rays in a mineral called pitchblende<\/strong>. But there were more rays than they expected and they realized there must be other elements emitting rays as well as uranium. After continuing to experiment with pitchblende<\/strong> they discovered two new elements that they named radium and polonium<\/strong> - named after Curie's native country of Poland.<\/phrase>","the Sorbonne<\/word>","Henri Becquerel<\/word>","In 1903, when Curie finished her PhD at the Sorbonne<\/strong>, her examiners thought that her work was the greatest contribution to science ever made in a PhD thesis. That year, she also won the Nobel Prize with her husband and Henri Becquerel<\/strong> for their work on radiation. She was the first woman to earn a Nobel Prize in physics. A few years later, Pierre was struck by a horse carriage and died. the Sorbonne<\/strong> offered Curie his position as professor of physics at the Sorbonne<\/strong>, making her their first female professor.<\/phrase>","Solvay Congress<\/word>","Albert Einstein<\/word>","In 1911, Marie Curie won her second Nobel Prize, this time in the field of Chemistry for discovering polonium and radium. This would make her the first and only person to win a Nobel Prize in two different fields. Curie became famous for her scientific discoveries and was invited to attend the Solvay Congress<\/strong> in physics with Albert Einstein<\/strong> and other famous scientists.<\/phrase>","portable x-ray machines<\/word>","Petite Curies<\/word>","When World War One broke out, Curie devoted herself to helping soldiers. She realized there was a shortage of X-ray machines, which meant they couldn't help all of the wounded soldiers. With her daughter's help, she made portable x-ray machines<\/strong> to be taken near battle lines and immediately provide medical attention to the wounded. She was so famous for promoting these portable X-rays that people started to call the trucks \"Petite Curies<\/strong>\" meaning \"little Curies.\"<\/phrase>","isolated<\/word>","groundbreaking<\/word>","After the war, Curie continued her research, now focusing on how radium could be used medically. She had always been interested in the medical use of radium and had learned that it could be used to treat tumors. However, she did not have enough money to buy all of the radium she needed for her research. She could only afford one gram. Radium was really expensive because it had to go through a difficult process to be isolated<\/strong>. Curie traveled to the United States to fundraise for her research and for the creation of a research institute. When she raised enough money, she also created a radium research institute in her hometown of Warsaw. She created this institute to study how radium could be used medically, and to this day they continue to study groundbreaking<\/strong> cancer treatments.<\/phrase>","aplastic anemia<\/word>","special lead boxes<\/word>","Panth\u00e9on<\/word>","education<\/word>","equal opportunities<\/word>","Curie died in 1934 when she was 66 years old of aplastic anemia<\/strong>, a disease that is often caused by prolonged exposure to radiation. Curie did not know how dangerous radiation was back then, and she often carried around tubes of radium in her lab coat. Her notes and papers have been contaminated with so much radiation that they had to be kept in special lead boxes<\/strong> and could only be touched using protective gear. The Curies were buried in the Panth\u00e9on<\/strong> in Paris, a place where France's greatest minds are buried. Marie Curie is the first female to be recognized for her achievements by the Panth\u00e9on<\/strong>. To date, Marie Curie is the only female to win two Nobel Prizes and the only person - of any gender - to win two Nobel Prizes in science. Curie's achievements are held up today as an example to the world that women can make huge contributions in any field when they are allowed to pursue it through education<\/strong> and equal opportunities<\/strong>.<\/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':2725, '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':2725, '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':2725, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }