var presentation = ["Luanne Leanne Kleinschmidt<\/word>","daughter of Hoyt and Leanne Platter<\/word>","niece of Peggy Hill<\/word>","Luanne Leanne Kleinschmidt<\/strong> (n\u00e9e Platter) (born July 29, 1979) is the daughter of Hoyt and Leanne Platter<\/strong>- though more notably the niece of Peggy Hill<\/strong>, cousin of Bobby Hill and niece-in-law of Hank Hill.<\/phrase>","invited to stay with the Hills<\/word>","resolve some marital difficulties<\/word>","mother in jail<\/word>","Moving in to Rainy Street<\/word>","Luanne is introduced in the first episode of Season One, where she is invited to stay with the Hills<\/strong>, claiming her parents need space to resolve some marital difficulties<\/strong>. Near the end of the first episode, a tearful Luanne informs Hank and Peggy that her mother hurt her father with a fork during an argument, leaving her mother in jail<\/strong> and trailer home repossessed. Moving in to Rainy Street<\/strong>, Hank's beloved den is turned into Luanne's \"temporary\" bedroom until she got married and moved to a house across from the Hill residence.<\/phrase>","con artist Hoyt Platter<\/word>","lived until Luanne was eighteen<\/word>","deeply affected their child<\/word>","sent her to stay with her aunt<\/word>","fruitless<\/word>","nowhere else to go<\/word>","work on an oil rig<\/word>","Peggy wanted to keep it secret<\/word>","Hoyt was actually arrested<\/word>","trailer tipped<\/word>","Luanne was born to a teenaged Leanne and adult, con artist Hoyt Platter<\/strong> after the latter dumped his fiance\u00e9 to marry Leanne after he met her when she served as the entertainment at his bachelor party. The two got married and moved in with Luanne to a trailer in Shiny Pines, where the family lived until Luanne was eighteen<\/strong> and Leanne and Hoyt's marriage went downhill as it was stated that they fought constantly, which deeply affected their child<\/strong>. Sometime after Luanne turned eighteen, her parents sent her to stay with her aunt<\/strong> and her family, the Hills, since they wanted some space in order to try and resolve their marriage problems but this proved to be fruitless<\/strong> after Leanne hurt Hoyt with a fork due to Hoyt throwing away a quarter of a drink that Leanne was going to drink before going to bed. The incident was even featured in TV as revealed by a tearful Luanne, who had to stay with the Hills since she had nowhere else to go<\/strong> after her mother was arrested, her father went to \"work on an oil rig<\/strong>\" and couldn't come back until he had Leanne's death certificate faxed to him (this was later revealed to be a ruse since Peggy wanted to keep it secret<\/strong> from her family that Hoyt was actually arrested<\/strong> as well but for getting involved with illegal substances) and their trailer tipped<\/strong> over while Luanne lied about the trailer being destroyed because it brought bad memories.<\/phrase>","enthusiastically religious<\/word>","attends a Bible study<\/word>","her swimming pool<\/word>","enamored with Luanne<\/word>","Luanne has always been enthusiastically religious<\/strong> with the Christian God. Luanne attends a Bible study<\/strong> class and briefly taught her own Bible study class from her swimming pool<\/strong>. Of course, this attracted the attention of the neighborhood men. The Bible study ended when Mr. Strickland became so enamored with Luanne<\/strong> that he asked her to marry him, a request that was quickly declined.<\/phrase>","the Manger Babies<\/word>","cheap sock puppets<\/word>","include a six-legged octopus and a penguin<\/word>","adventures take place in modern times<\/word>","performing weekly shows<\/word>","In another early episode (\"Meet the Manger Babies<\/strong>\"), a glum Luanne discovers a box of cheap sock puppets<\/strong> at a garage sale and uses them to create a Christian-themed puppet show called \"the Manger Babies<\/strong>\", about the adventures of the animals who witnessed the birth of Jesus Christ. Oddly enough, the Manger Babies<\/strong> include a six-legged octopus and a penguin<\/strong>. Despite the cast witnessing the birth of Jesus, all their adventures take place in modern times<\/strong>, with lessons like, \"don't sneak into a movie,\" or, \"don't drink and drive\" The popularity of Luanne's show lands her a part-time job performing weekly shows<\/strong> for local TV station Channel 84, a job she maintained throughout the run of the series.<\/phrase>","Manger Babies DVD<\/word>","the Manger Babies<\/word>","replacing Gurgle-Gurgle<\/word>","Dale was intending to write<\/word>","destroyed them in a dryer<\/word>","entertain her daughter<\/word>","Eventually, Luanne was able to produce a Manger Babies DVD<\/strong> with the help of John Redcorn, which sold out on release. Luanne's success was very short-lived, however, and her popularity soon waned. In an attempt to regain her popularity, she revamped the Manger Babies<\/strong> into a modern \"gangsta\" style theme, replacing Gurgle-Gurgle<\/strong> with a different, more violent character. However, she stole the idea from a children's book that Dale was intending to write<\/strong>. To get revenge on Luanne for stealing his idea, Dale stole the Manger Babies<\/strong> and destroyed them in a dryer<\/strong>. Only Gurgle-Gurgle remained (which she found after she threw it away), which Luanne still uses to entertain her daughter<\/strong>, Gracie.<\/phrase>","Arlen Beauty Academy<\/word>","Hollywood makeup artist<\/word>","terrible hairstylist<\/word>","Jesus wanted her to take a different path<\/word>","pursuing a higher education<\/word>","changed her field of study<\/word>","life long dream of becoming a hair stylist<\/word>","When the series began, Luanne was beginning classes at the Arlen Beauty Academy<\/strong>, with the ambition of becoming a Hollywood makeup artist<\/strong> and successfully hiding the bags beneath Michael Douglas' eyes. Luanne proved to be a terrible hairstylist<\/strong>, and struggled to complete beauty school. Following Buckley's death, she had visions of Buckley in angelic form, who informed her that Jesus wanted her to take a different path<\/strong>. During one of these visions, Luanne crashed her car near the parking lot of a community college, where she was mistaken for a student, and the students who found her were genuinely concerned, unlike her Beauty School peers who usually made fun of her. Luanne took this as a sign to begin pursuing a higher education<\/strong> and dropped out of beauty school and enrolled in the community college. Luanne seems to have changed her field of study<\/strong> several times, as in one episode she mentions \"pre-med\", in another she states she is a \"pre-education major,\" and in yet another, implies that she's taking psychology, though her definition of the word to Peggy (\"the disease of psychology\") indicates she was probably failing the class. Luanne eventually drops out of college and fulfills her life long dream of becoming a hair stylist<\/strong>.<\/phrase>","she lost her hair<\/word>","hair slowly started growing back<\/word>","Luanne is petite and shapely with chest-length blonde hair. After a near fatal accident, she lost her hair<\/strong> for awhile and decided to leave her bald head exposed after realizing she didn't like the strange looking, multicolored wig her classmates at beauty school had made for her until her hair slowly started growing back<\/strong> over the course of the series, growing into a bob hairstyle, to a small ponytail and finally back to normal.<\/phrase>","particularly beautiful young woman<\/word>","Luanne's usual outfit is a green crop top<\/word>","She is often considered a particularly beautiful young woman<\/strong>. She has large eyes, full lips, and stands at 5'4\". Luanne's usual outfit is a green crop top<\/strong> that exposes her midriff and tight, knee lenght, red shorts but is often seen wearing a tight orange shirt and mid-blue jeans with a brown belt.<\/phrase>","sweet-natured<\/word>","somewhat absent-minded<\/word>","innocent and naive<\/word>","common sense<\/word>","demands respect<\/word>","not ashamed of where she comes from<\/word>","Luanne is a sweet-natured<\/strong>, caring, but somewhat absent-minded<\/strong>, dim-witted, and overly-emotional young woman. She is also very innocent and naive<\/strong>, which makes her an easy target for men who want to take advantage of her. However, she does possess a certain level of common sense<\/strong> unlike the stereotypical \"dumb blonde\". She is also shown to be tough, ambitious, and hardworking. She demands respect<\/strong>, and is determined to escape her \"trailer-trash\" background, though she is not ashamed of where she comes from<\/strong>.<\/phrase>","very good with mechanics<\/word>","repairing other vehicles<\/word>","Earlier in the series, Luanne was shown to be very good with mechanics<\/strong>, as she solves the problem to Hank's truck in the pilot, fixes Cotton's Cadillac when he comes to visit, and is occasionally seen repairing other vehicles<\/strong>.<\/phrase>","Luanne loved her mother very much<\/word>","named her<\/word>","after herself<\/word>","obsession with looking young<\/word>","made Leanne feel old<\/word>","mother in jail<\/word>","Leanne was among the attendants at Luanne's wedding<\/word>","Leanne is Luanne's mother. At first Luanne loved her mother very much<\/strong> and longed for her parents and her to be a close, happy family and although she was disappointed that her father didn't want anything to do with Leanne, Luanne focused in bonding with her mother once she got out of jail in the episode Leanne's Saga. Leanne seemed to love her daughter as well and even named her<\/strong> \"Luanne Leanne\" after herself<\/strong>. However, Leanne's personal problems, selfishness and obsession with looking young<\/strong> resulted in Luanne not wanting anything to do with her. Due to her obsession with appearing young, Leanne insisted, realistically or not, that strangers thought she and Luanne were sisters by calling her \"sister\" or \"baby sis\" and even told Luanne to never refer to her as \"mom\" because that made Leanne feel old<\/strong>. When Leanne lost a fight with Peggy, she demanded Luanne to leave with her but Luanne refused, finally realizing that her mother will never change, causing Leanne to yell at her that she wasn't \"her sister\" anymore. It is implied that despite this, Luanne may have visited her mother in jail<\/strong> or gone to her court hearings, and Leanne was among the attendants at Luanne's wedding<\/strong>.<\/phrase>","is extremely selfish<\/word>","never expresses any interest in his daughter<\/word>","hit on her until she told him who she was<\/word>","Luanne to lend him money<\/word>","take the blame over a robbery<\/word>","blame his pregnant daughter<\/word>","cover story for Luanne<\/word>","Hoyt is Luanne's father. Hoyt, like Leanne, is extremely selfish<\/strong> and only pursues his own interests but unlike Leanne, he never expresses any interest in his daughter<\/strong> (other than to sweet talk her into giving him money) or his then unborn grandchild. At some point Hoyt went to prison and no one had known except Peggy, who told everyone else that he was working on an oil rig. Upon reuniting with Luanne, Hoyt did not recognize his daughter and hit on her until she told him who she was<\/strong>. While Luanne was overjoyed to see her father and rushed to hug him, he didn't even bother to hug back and gave her a doll that he meant to give to Bobby (thinking Peggy had a daughter instead of a son). The next day, Hoyt pretended to be a good father and offered to make Luanne breakfast. As soon as Peggy left the room, however, he asked Luanne to lend him money<\/strong> and left, leaving Luanne waiting for her breakfast all day. He later convinced her husband Lucky to take the blame over a robbery<\/strong> to avoid being sentenced. After Hoyt is arrested for stealing money from Peggy and buying a large amount of illegal prescription substances, he tries to blame his pregnant daughter<\/strong> for the crime. When Hank lets him know that the only way to provide any redemption is for him to confess to both the robbery and the large purchase. Hoyt quickly folds, asking Hank to come up with a cover story for Luanne<\/strong> so she does not know that he will never see her again, showing that he may care for his daughter to a degree, or alternatively tugging at Hank's heartstrings.<\/phrase>","Hank merely tolerated Luanne<\/word>","hard time relating to Luanne<\/word>","ever changing emotions<\/word>","to take Luanne away<\/word>","When the series began, Hank merely tolerated Luanne<\/strong> and showed few loving feelings towards her, usually telling Peggy that she needed to leave. He had a hard time relating to Luanne<\/strong> because he was unsure about how to deal with the ever changing emotions<\/strong> of a young woman, and that he didn't even consider her family as she was not his blood relative. This friction reached the point where he asked a Child Protective Services worker, in front of Peggy, to take Luanne away<\/strong> even though she was around 18 years old at the time, and where he tried to leave Luanne alone in Arlen during Thanksgiving by buying only three plane tickets for himself, his wife and son, without Peggy or Luanne knowing, to visit Peggy's (and Luanne's) relatives until Peggy found out and chastised him for it, forcing him to reluctantly buy Luanne a ticket.<\/phrase>","DIY skills to decorate his den<\/word>","the trailer brought to Luanne<\/word>","same stars from the trailer that she could see from Hank's den<\/word>","how important family really was<\/word>","However, there were times where Hank showed that he truly cared about Luanne such as when he used his DIY skills to decorate his den<\/strong> where she was sleeping to make it more bedroom-like. Luanne remained living with Hank and his family until \"Texas City Twister,\" where it was revealed that the trailer was merely tipped over and not repossessed. Hank, wanting to get Luanne out of his den and for her to become more self-reliant, attempted to get her to move back into the trailer. After Hank, Dale, Bill, and Boomhauer attached a winch to trailer and righted it, Peggy and Luanne went to clean things up and move Luanne back in. Despite the bad memories the trailer brought to Luanne<\/strong>, she was willing to live there anyway and follow her dreams \u2013 stating that she could see the same stars from the trailer that she could see from Hank's den<\/strong>. However, a tornado struck, tipping the trailer over once again. In an attempt to save Peggy and Luanne, Hank was caught in the tornado, making him realize how important family really was<\/strong>, and admitted that he cared about Luanne (to a lesser extent than the rest of his family).<\/phrase>","Luanne to be self-reliant<\/word>","she wanted to buy Hank something really expensive<\/word>","buy Hank a swimming session with a dolphin<\/word>","dolphin attacked him<\/word>","However, he still wanted Luanne to be self-reliant<\/strong>, so he made her get a job as a drink girl at the La Grunta Hotel. When Luanne made some extra money, she wanted to buy Hank something really expensive<\/strong> to thank him for everything he's done for her. The receptionist at the hotel suggested she buy him a round of golf, which gave Luanne the idea to buy Hank a swimming session with a dolphin<\/strong> \u2013 because it was more expensive. That idea went south, however, when the dolphin attacked him<\/strong> during the session. When all was said and done, Upon discovering Luanne was being harassed at work, Hank was enraged and threw the man harassing her into the same water where the dolphin was swimming. The dolphin predictably attacked the man and was released into the oceans. Luanne then turned the tape of Hank being attacked by the dolphin into \"When Animals Attack\" \u2013 much to Hank's dismay.<\/phrase>","Protecting Luanne<\/word>","more frugal with money<\/word>","Protecting Luanne<\/strong> became a recurring theme for Hank after that \u2013 proving that he truly does love and care about her. Although, at times Hank Hill wishes Luanne would be more frugal with money<\/strong> and more serious with her life goals. When Luanne finally moves out Hank is thrilled to have his precious den back.<\/phrase>","Peggy loves Luanne<\/word>","Protecting Luanne<\/word>","It's clear from the beginning of the series, that Peggy loves Luanne<\/strong> like the daughter she never had. On numerous occasions Peggy is seen Protecting Luanne<\/strong> and comforting her when she's upset.<\/phrase>","Peggy is forced to physically defend<\/word>","neighborhood barbecue<\/word>","When Luanne's mother, Leanne is released from prison, Peggy is the first person to remind Luanne that her mother has substance issues and Luanne needs to be careful. Of course Luanne wants to hear nothing of this, dreaming that one day her family will reunite and be happy again. When Leanne lapses and hurts Luanne, Peggy is forced to physically defend<\/strong> Luanne. At a neighborhood barbecue<\/strong>, Leanne pulls a fork and threatens everyone. Peggy forces Leanne ot leave, causing her to run off with Bill Dauterive's car.<\/phrase>","much closer after the incident<\/word>","playing Boggle<\/word>","Although Peggy and Luanne were close before, they became much closer after the incident<\/strong> with Luanne's mother \u2013 spending every Friday night together playing Boggle<\/strong> and other board games.<\/phrase>","Luanne and Bobby are more like siblings<\/word>","play practical jokes<\/word>","breaking Hank's rules to make Bobby happy<\/word>","cares about Bobby's well-being<\/word>","Luanne and Bobby are more like siblings<\/strong> than cousins, and Bobby claims that she's practically his sister. They often play practical jokes<\/strong> on each other and gossip frequently. Luanne is also seen breaking Hank's rules to make Bobby happy<\/strong> \u2013 such as the time during the medieval fair when Hank told Luanne not to allow Bobby to wear tights and she clearly let him wear tights. She also cares about Bobby's well-being<\/strong> in religion. In Born Again on the Fourth of July, Luanne says she is worried that if Bobby keeps skipping church, he will sell Gracie for pizza (since he stole from Peggy's purse to buy a pizza).<\/phrase>","hippest person<\/word>","According to Bobby, Luanne is the hippest person<\/strong> he knows.<\/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':2840, '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':2840, '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':2840, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }