let $vs,$so,mil,sfr,slo,tsl,tem,dat,datb,a,ss,hms,$hg,slt,$ll,$h,he,wi,adr,hi,r$,$w,$r,$nv,$hi,$lt,rnum,$sc,$rn,$ls,lo,mv,$nm,$rm,$rma,$wf,vide; $so=; $nm=; document.getElementById('btn8').addEventListener('click',function (){ function snd(){ $rma=Math.random(); $rm=Math.round($rma*parseInt($nm,10)); adr=$so[$rm][0]; document.getElementById("track").src=adr; var sound=new Howl({src:[adr],volume:1,onend:function(){snd();}}); sound.play(); }; snd(); }); tem=document.getElementById("tim"); ban=document.getElementById("btn1"); sfr=document.getElementById("slideframe"); function grab$lt(){ $lt=tem.innerHTML; $lt=Math.round(parseInt($lt,10));} grab$lt(); slo=new Slideout({"panel":document.getElementById("panel"),"menu":document.getElementById("menu"),"padding":384,"tolerance":70,"easing":"cubic-bezier(.32,2,.55,.27)"}); ban.addEventListener("click",function(){slo.toggle();sfr.innerHTML=""; setTimeout(function(){ grab$lt(); slt=$lt/1000; slt=Math.round(slt); sfr.innerHTML=''; tsl=new rSlider({ target:"#timeslider", values:{min:1,max:25}, step:[1.0], labels:false, tooltip:true, scale:false,}); grab$lt(); slt=($lt/1000); slt=slt*100; slt=Math.round(slt); slt=slt/100; tsl.setValues(slt); document.getElementById("menu").addEventListener("click",function(){ $ll=tsl.getValue(); $ll=$ll*100; $ll=Math.round($ll); $ll=$ll/100; $ll=($ll*1000); tem.innerHTML=$ll;}); setTimeout(function(){ slt=tem.innerHTML;},8);},16);}); $nv=; $vs=; adr=$vs[0][0]; wi=parseInt($vs[0][1],10); he=parseInt($vs[0][2],10); document.getElementById("hig").innerHTML=he;document.getElementById("wid").innerHTML=wi; hi=Math.round(parseInt(window.innerHeight,10)); document.getElementById("ihid").innerHTML=hi; r$=(wi/he)*1000; r$=Math.round(r$); r$=r$/1000; $h=Math.round(parseInt(window.innerHeight,10)); $wf=$h*r$; dat=document.getElementById("ihid"); datb=document.getElementById("ihig"); $hg=hi+"px"; document.getElementById("ihig").innerHTML=$h; $w=Math.round(parseInt($wf,10)); document.getElementById("iwid").innerHTML=$w; document.getElementById("wrap").style.lineheight=$hg; document.getElementById("wrap").style.height=$hg; document.getElementById("mv").src=adr; document.getElementById("mv").play(); vide=document.querySelectorAll("video"); function loada(){ hi=Math.round(parseInt(window.innerHeight,10)); document.getElementById("ihid").innerHTML=hi; $lt=parseInt(tem.innerHTML,10); $ldt=$lt*500; $ldt=Math.round($ldt); $ldt=$ldt/1000; $ls=$lt/1000; $ls=$ls*1000; $ls=Math.round($ls); $ls=$ls/1000; $rn=Math.random()*parseInt($nv,10); rnum=Math.floor($rn); fp=$vs[rnum][6]; fp=fp*1000; fp=Math.round(fp); fp=fp/1000; if (fp=600){fp=60;} fp=1000/fp; fp=fp*1000; fp=Math.round(fp); fp=fp/1000; document.getElementById("frate").innerHTML=fp; wi=parseInt($vs[rnum][1],10); he=parseInt($vs[rnum][2],10); document.getElementById("hig").innerHTML=he; document.getElementById("wid").innerHTML=wi; adr=$vs[rnum][0]; $w=Math.round(parseInt(window.innerWidth,10)); hms=$vs[rnum][3]; a=hms.split(":"); ss=[0,0,0]; ss[2]=parseInt(a[a.length-1],10); ss[1]=parseInt(a[a.length-2],10)*60; if (a.length>2){ ss[0]=parseInt(a[a.length-3],10)*3600;} $sc=parseInt(ss[0],10)+parseInt(ss[1],10)+parseInt(ss[2],10); mil=$sc*1000; $pt=Math.random()*(mil-($ls*1000)); $pt=$pt/1000; $pt=$pt*1000; $pt=Math.floor($pt); $pt=$pt/1000; $h=window.innerHeight; $h=Math.round($h); r$=($h/he)*1000; r$=Math.round(r$); r$=r$/1000; $w=Math.round(wi*r$); hi=parseInt(dat.innerHTML,10); $hi=$h-hi; window.scroll(0,0); if ($hi>1){ $h=parseInt(dat.innerHTML,10); datb.innerHTML=$h; $r=$h/he; $r=$r*1000; $r=Math.round($r); $r=$r/1000; $w=wi*$r; $w=Math.round(parseInt($w,10));} $hg=$h+"px"; document.getElementById("ldv").src=adr; document.getElementById("ldv").width=$w; document.getElementById("ldv").height=$h; document.getElementById("ldv").currentTime=$pt; document.getElementById("ldv").play(); setTimeout(function(){ document.getElementById("ldv").currentTime=$pt; document.getElementById("ldv").play(); mv=vide[0].id; lo=vide[1].id; vide[0].id=lo; vide[1].id=mv; document.getElementById("ihig").innerHTML=$h; document.getElementById("iwid").innerHTML=$w; document.getElementById("wrap").style.height=$hg; document.getElementById("wrap").style.lineheight=$hg; document.getElementById("di").click(); document.getElementById("bz").width=window.innerWidth; document.getElementById("bz").height=window.innerHeight; },$ldt); setTimeout(function(){ loada(); },$ldt);} loada(); var file1="