var presentation = ["Beneficent<\/word>","In the name of God, The Most Beneficent<\/strong>, The Most Merciful.\nHonorable UN Secretary-General Mr. Ban Kimoon,\nRespected President General Assembly Vuk Jeremic\nHonorable UN Envoy for Global Education Mr. Gordon Brown,\nRespected elders and my dear brothers and sisters;\nToday, it is an honor for me to be speaking again after a long time. Being here with such honorable people is a great moment in my life.<\/phrase>","encouraged<\/word>","strengthened<\/word>","I don't know where to begin my speech. I don't know what people would be expecting me to say. But first of all, thank you to God for whom we all are equal and thank you to every person who has prayed for my fast recovery and a new life. I cannot believe how much love people have shown me. I have received thousands of good wish cards and gifts from all over the world. Thank you to all of them. Thank you to the children whose innocent words encouraged<\/strong> me. Thank you to my elders whose prayers strengthened<\/strong> me.<\/phrase>","Ban Ki-moon<\/word>","Global Education First Initiative<\/word>","I would like to thank my nurses, doctors and all of the staff of the hospitals in Pakistan and the UK and the UAE government who have helped me get better and recover my strength. I fully support Mr. Ban Ki-moon<\/strong> the Secretary-General in his Global Education First Initiative<\/strong> and the work of the UN Special Envoy Mr. Gordon Brown. And I thank them both for the leadership they continue to give. They continue to inspire all of us to action.<\/phrase>","Malala Day<\/word>","raised their voice for their rights<\/word>","struggling to achieve their goals<\/word>","Dear brothers and sisters, do remember one thing. Malala Day<\/strong> is not my day. Today is the day of every woman, every boy and every girl who have raised their voice for their rights<\/strong>. There are hundreds of human rights activists and social workers who are not only speaking for human rights, but who are struggling to achieve their goals<\/strong> of education, peace and equality. Thousands of people have been killed by the terrorists and millions have been injured. I am just one of them.<\/phrase>","one girl among many<\/word>","So here I stand.... one girl among many<\/strong>.\nI speak \u2013 not for myself, but for all girls and boys.\nI raise up my voice \u2013 not so that I can shout, but so that those without a voice can be heard.\nThose who have fought for their rights:\nTheir right to live in peace.\nTheir right to be treated with dignity.\nTheir right to equality of opportunity.\nTheir right to be educated.<\/phrase>","the bullets would silence us<\/word>","thousands of voices<\/word>","ambitions<\/word>","Dear Friends, on the 9th of October 2012, the Taliban shot me on the left side of my forehead. They shot my friends too. They thought that the bullets would silence us<\/strong>. But they failed. And then, out of that silence came, thousands of voices<\/strong>. The terrorists thought that they would change our aims and stop our ambitions<\/strong> but nothing changed in my life except this: Weakness, fear and hopelessness died. Strength, power and courage was born. I am the same Malala. My ambitions<\/strong> are the same. My hopes are the same. My dreams are the same.<\/phrase>","right of education of every child<\/word>","Dear sisters and brothers, I am not against anyone. Neither am I here to speak in terms of personal revenge against the Taliban or any other terrorists group. I am here to speak up for the right of education of every child<\/strong>. I want education for the sons and the daughters of all the extremists especially the Taliban.<\/phrase>","compassion<\/word>","inherited<\/word>","non-violence<\/word>","forgiveness<\/word>","I do not even hate the Talib who shot me. Even if there is a gun in my hand and he stands in front of me. I would not shoot him. This is the compassion<\/strong> that I have learnt from Muhammad-the prophet of mercy, Jesus Christ and Lord Buddha. This is the legacy of change that I have inherited<\/strong> from Martin Luther King, Nelson Mandela and Muhammad Ali Jinnah. This is the philosophy of non-violence<\/strong> that I have learnt from Gandhi Jee, Bacha Khan and Mother Teresa. And this is the forgiveness<\/strong> that I have learnt from my mother and father. This is what my soul is telling me, be peaceful and love everyone.<\/phrase>","Swat<\/word>","Dear sisters and brothers, we realize the importance of light when we see darkness. We realize the importance of our voice when we are silenced. In the same way, when we were in Swat<\/strong>, the north of Pakistan, we realized the importance of pens and books when we saw the guns.<\/phrase>","The pen is mightier than sword<\/word>","power of education<\/word>","Quetta<\/word>","afraid of change<\/word>","The wise saying, \"The pen is mightier than sword<\/strong>\" was true. The extremists are afraid of books and pens. The power of education<\/strong> frightens them. They are afraid of women. The power of the voice of women frightens them. And that is why they killed 14 innocent medical students in the recent attack in Quetta<\/strong>. And that is why they killed many female teachers and polio workers in Khyber Pukhtoon Khwa and FATA. That is why they are blasting schools every day. Because they were and they are afraid of change<\/strong>, afraid of the equality that we will bring into our society.<\/phrase>","misusing<\/word>","personal benefits<\/word>","democratic<\/word>","duty and responsibility<\/word>","I remember that there was a boy in our school who was asked by a journalist, \"Why are the Taliban against education?\" He answered very simply. By pointing to his book he said, \"A Talib doesn't know what is written inside this book.\" They think that God is a tiny, little conservative being who would send girls to the hell just because of going to school. The terrorists are misusing<\/strong> the name of Islam and Pashtun society for their own personal benefits<\/strong>. Pakistan is peace-loving democratic<\/strong> country. Pashtuns want education for their daughters and sons. And Islam is a religion of peace, humanity and brotherhood. Islam says that it is not only each child's right to get education, rather it is their duty and responsibility<\/strong>.<\/phrase>","peace is necessary for education<\/word>","child labor<\/word>","deprivation of basic rights<\/word>","Honorable Secretary General, peace is necessary for education<\/strong>. In many parts of the world especially Pakistan and Afghanistan; terrorism, wars and conflicts stop children to go to their schools. We are really tired of these wars.\nWomen and children are suffering in many parts of the world in many ways. In India, innocent and poor children are victims of child labor<\/strong>. Many schools have been destroyed in Nigeria. People in Afghanistan have been affected by the hurdles of extremism for decades. Young girls have to do domestic child labor<\/strong> and are forced to get married at early age. Poverty, ignorance, injustice, racism and the deprivation of basic rights<\/strong> are the main problems faced by both men and women.<\/phrase>","women's rights<\/word>","girls' education<\/word>","independent<\/word>","Dear fellows, today I am focusing on women's rights<\/strong> and girls' education<\/strong> because they are suffering the most. There was a time when women social activists asked men to stand up for their rights. But, this time, we will do it by ourselves. I am not telling men to step away from speaking for women's rights<\/strong> rather I am focusing on women to be independent<\/strong> to fight for themselves.<\/phrase>","strategic policies<\/word>","prosperity<\/word>","Dear sisters and brothers, now it's time to speak up.\nSo today, we call upon the world leaders to change their strategic policies<\/strong> in favor of peace and prosperity<\/strong>.<\/phrase>","peace deals<\/word>","free compulsory education<\/word>","brutality<\/word>","We call upon the world leaders that all the peace deals<\/strong> must protect women and children's rights. A deal that goes against the dignity of women and their rights is unacceptable.\nWe call upon all governments to ensure free compulsory education<\/strong> for every child all over the world.\nWe call upon all governments to fight against terrorism and violence, to protect children from brutality<\/strong> and harm.<\/phrase>","reject prejudice<\/word>","We call upon the developed nations to support the expansion of educational opportunities for girls in the developing world.\nWe call upon all communities to be tolerant \u2013 to reject prejudice<\/strong> based on cast, creed, sect, religion or gender. To ensure freedom and equality for women so that they can flourish. We cannot all succeed when half of us are held back.\nWe call upon our sisters around the world to be brave \u2013 to embrace the strength within themselves and realize their full potential.<\/phrase>","bright future<\/word>","destination<\/word>","Dear brothers and sisters, we want schools and education for every child's bright future<\/strong>. We will continue our journey to our destination<\/strong> of peace and education for everyone. No one can stop us. We will speak for our rights and we will bring change through our voice. We must believe in the power and the strength of our words. Our words can change the world.<\/phrase>","united<\/word>","weapon of knowledge<\/word>","Because we are all together, united<\/strong> for the cause of education. And if we want to achieve our goal, then let us empower ourselves with the weapon of knowledge<\/strong> and let us shield ourselves with unity and togetherness.\nDear brothers and sisters, we must not forget that millions of people are suffering from poverty, injustice and ignorance. We must not forget that millions of children are out of schools. We must not forget that our sisters and brothers are waiting for a bright peaceful future.<\/phrase>","global struggle<\/word>","Education First<\/word>","So let us wage a global struggle<\/strong> against illiteracy, poverty and terrorism and let us pick up our books and pens. They are our most powerful weapons.\nOne child, one teacher, one pen and one book can change the world.\nEducation is the only solution. Education First<\/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':2671, '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':2671, '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':2671, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }