text: "use strict";var t_ring=$("#ring");var t_odg1a=$("#odg1a");var t_odg1b=$("#bgm");var t_odg1c=$("#odg1c");var canA1=false;var canA2=false;var canA3=false;var id="";var n="";var data=[{id:"fls",n:"方老师"},{id:"wls",n:"王老师"},{id:"gls",n:"高老师"},{id:"gxy",n:"晓勇"},{id:"lyls",n:"李燕老师"},{id:"hql",n:"老黄"},{id:"jh",n:"金慧"},{id:"ct",n:"老崔"},{id:"wxh",n:"老弟"},{id:"djy",n:"老董"},{id:"lang",n:"李昂"},{id:"lwei",n:"老刘"},{id:"lchang",n:"刘畅"},{id:"lj",n:"刘菁"},{id:"lily",n:"Lily"},{id:"ly",n:"罗毅君"},{id:"vv",n:"VV姐"},{id:"qin",n:"覃爷"},{id:"peng",n:"彭爷"},{id:"zz",n:"周喆"},{id:"tzc",n:"谭则慈"},{id:"wdx",n:"王定祥"},{id:"wwt",n:"王文韬"},{id:"wr",n:"吴冉"},{id:"wyh",n:"吴亦豪"},{id:"wwx",n:"王唯希"},{id:"xx",n:"小小"},{id:"joyce",n:"笑笑"},{id:"xwl",n:"文莉老师"},{id:"wyj",n:"老哥"},{id:"zwj",n:"张文君"},{id:"zm",n:"默默"},{id:"zf",n:"周芳"},{id:"zxp",n:"祝晓佩"},{id:"sz",n:"嫂子"},{id:"af",n:"锋哥"}];$((function(){init();function init(){getName();var a="audio/"+id+".mp3";t_odg1c.attr('src',a);$.ajax({url:"audio/Rec_016.mp3",success:function(){canA1=true;$.ajax({url:"audio/bg.mp3",success:function(){canA2=true;$.ajax({url:a,success:function(){canA3=true;audioReady()}})}})}})}function audioReady(){if(canA1==true&&canA2==true&&canA3==true){setTimeout(function(){$('.ring, .stText, .oglasiteSe').addClass('aktiven');$('.ringWrapp').addClass('aktiven');$('.loader').stop(true,true).fadeOut()},2000)}}function getName(){var a=GetUrlParam();if(a.id!=null){let result=data.find(item=>{return item.id==a.id});if(result!=undefined){id=a.id;n=result.n}else{id="friend";n="亲爱的朋友"}}else{id="friend";n="亲爱的朋友"}var b="你好啊，"+n;$("#txt_name").text(b)}function GetUrlParam(){var a=location.search;var b=new Object();if(a.indexOf("?")!=-1){var c=a.substr(1);var d=c.split("&");for(var i=0;i<d.length;i++){b[d[i].split("=")[0]]=unescape(d[i].split("=")[1])}}return b}$("body").on("click",".ring",(function(){$(".ring").addClass("off");$(".stText").removeClass("aktiven");$("header, footer").addClass("inPlay");setTimeout((function(){$(".ringWrapp").fadeOut(350,(function(){$(".videoContainer").delay(1500).fadeIn(2000)}));setTimeout((function(){$(".posnZglas1").delay(300).fadeIn()}),500);setTimeout((function(){$(".posnZglas").fadeOut()}),3500)}),650);t_odg1a.trigger("play");t_odg1b.trigger("play");t_odg1b[0].volume=0.3;vprOdg1()}));function vprOdg1(){t_odg1a.on("timeupdate",(function(){if(this.currentTime>2.5&&this.currentTime<2.8){t_odg1c.trigger("play")}else if(this.currentTime>4.5&&this.currentTime<=4.8){$("#odg1a, #odg1b").prop("muted",true);t_odg1a.trigger("pause");$(".odgovoriWrapp1").addClass("aktiven").children().addClass("zaKlik")}else if(this.currentTime>6.5&&this.currentTime<6.9){$(".vprasanjaWrapp1").addClass("aktiven")}else if(this.currentTime>12.0&&this.currentTime<12.3){$(".vprasanjaWrapp1").removeClass("aktiven")}else if(this.currentTime>12.5&&this.currentTime<12.9){$(".vprasanjaWrapp2").addClass("aktiven")}else if(this.currentTime>17.5&&this.currentTime<17.9){$(".vprasanjaWrapp2").removeClass("aktiven")}else if(this.currentTime>18.5&&this.currentTime<18.9){$(".vprasanjaWrapp3").addClass("aktiven")}else if(this.currentTime>27.5&&this.currentTime<27.9){$(".vprasanjaWrapp3").removeClass("aktiven")}else if(this.currentTime>30.0&&this.currentTime<30.3){$(".vprasanjaWrapp4").addClass("aktiven")}else if(this.currentTime>42.0&&this.currentTime<42.3){$(".vprasanjaWrapp4").removeClass("aktiven")}else if(this.currentTime>43.5&&this.currentTime<43.9){$(".vprasanjaWrapp5").addClass("aktiven")}else if(this.currentTime>52.2&&this.currentTime<52.5){$(".vprasanjaWrapp5").removeClass("aktiven")}else if(this.currentTime>54.5&&this.currentTime<54.9){$(".vprasanjaWrapp6").addClass("aktiven")}else if(this.currentTime>62.2&&this.currentTime<62.5){$(".vprasanjaWrapp6").removeClass("aktiven")}else if(this.currentTime>65.5&&this.currentTime<=65.8){$("#odg1a, #odg1b").prop("muted",true);t_odg1a.trigger("pause");$(".odgovoriWrapp2").addClass("aktiven").children().addClass("zaKlik")}else if(this.currentTime>69.5&&this.currentTime<=69.8){$("#odg1a, #odg1b").prop("muted",true);t_odg1a.trigger("pause");$(".odgovoriWrapp3").addClass("aktiven").children().addClass("zaKlik")}}));t_odg1a.on("ended",(function(){}));$("body").on("click",".odgovoriWrapp1 .odg.zaKlik",(function(){$(".zaKlik").removeClass("zaKlik"),$(this).addClass("aktiven").siblings().addClass("pasiven");$(".odgovoriWrapp1").removeClass("aktiven").children().removeClass("zaKlik");var a=$(this).data("odg");if(a=="#odg1a"){console.log("odg1a");t_odg1a.trigger("play");$(a).prop("muted",false)}else{}}));$("body").on("click",".odgovoriWrapp2 .odg.zaKlik",(function(){$(".zaKlik").removeClass("zaKlik"),$(this).addClass("aktiven").siblings().addClass("pasiven");$(".odgovoriWrapp2").removeClass("aktiven").children().removeClass("zaKlik");var a=$(this).data("odg");if(a=="#odg1a"){console.log("odg1a");t_odg1a.trigger("play");$(a).prop("muted",false)}else{}}));$("body").on("click",".odgovoriWrapp3 .odg.zaKlik",(function(){$(".zaKlik").removeClass("zaKlik"),$(this).addClass("aktiven").siblings().addClass("pasiven");$(".odgovoriWrapp3").removeClass("aktiven").children().removeClass("zaKlik");var a=$(this).data("odg");if(a=="#odg1a"){}}))}}))