").parent().html()),$(".page-footer").removeClass("padding-bottom-extra"),$(".page-footer").removeClass("padding-bottom-novideo"),$("#favicon").attr("href","public/images/favicon.png"),j.log(L),1==$("#alreadyfp").length?t():(Xe=!0,z=!0,t()),0===$("#alreadychannel").length&&$("head").append("
150||(e.value.startsWith("/name ")?P.namechange(e.value.substring(6)):e.value.startsWith("/removename")?P.removename():"#all_chat"==$(".chat-tab-li a.active").attr("href")?L.emit("all,chat",e.value):L.emit("chat",e.value),e.value="")},allchat:function(e){G||":"!=e.msg.substring(0,1)||he||($("#favicon").attr("href","public/images/highlogo.png"),G=!0,J=!0,me=!0,fe||P.chat_blink()),document.hidden&&$("#favicon").attr("href","public/images/highlogo.png");var t=j.intToARGB(j.hashCode(e.from));if(t.length<6)for(x=t.length;x<6;x++)t="0"+t;t=j.hexToRgb(t.substring(0,6));var a=j.rgbToHsl([t.r,t.g,t.b],!1);$("#chatall").append("
"+e.from+"");var n=document.createTextNode(e.msg);$("#chatall li:last")[0].appendChild(n),document.getElementById("chatall").scrollTop=document.getElementById("chatall").scrollHeight},channelchat:function(e){G||":"!=e.msg.substring(0,1)||he||($("#favicon").attr("href","public/images/highlogo.png"),J=!0,me=!0,fe||P.chat_blink());var t=j.intToARGB(j.hashCode(e.from));if(t.length<6)for(x=t.length;x<6;x++)t="0"+t;t=j.hexToRgb(t.substring(0,6));var a=j.rgbToHsl([t.r,t.g,t.b],!1);$("#chatchannel").append("
"+e.from+"");var n=document.createTextNode(e.msg);$("#chatchannel li:last")[0].appendChild(n),document.getElementById("chatchannel").scrollTop=document.getElementById("chatchannel").scrollHeight},chat_blink:function(){fe=!0,$(".chat-link").attr("style","color: grey !important;"),setTimeout(function(){$(".chat-link").attr("style","color: white !important;"),setTimeout(function(){fe&&P.chat_blink()},1e3)},1e3)}},N={conf_pass:void 0,init:function(){"https:"!=location.protocol?document.cookie=q.toLowerCase()+"=;path=/"+q.toLowerCase()+";expires="+new Date(0).toUTCString():document.cookie=q.toLowerCase()+"=;path=/"+q.toLowerCase()+";secure;expires="+new Date(0).toUTCString();try{conf_arr=N.decrypt(N.getCookie("_opt"),"_opt")}catch(e){conf_arr=N.decrypt(N.create_cookie("_opt"),"_opt")}try{N.conf_pass=N.decrypt(N.getCookie(q.toLowerCase()),q.toLowerCase())}catch(e){N.conf_pass=N.decrypt(N.create_cookie(q.toLowerCase()),q.toLowerCase())}D.change_enabled(conf_arr.remote),100!=conf_arr.width&&et.set_width(conf_arr.width),void 0!==conf_arr.name&&""!==conf_arr.name&&P.namechange(conf_arr.name)},decrypt:function(e,t){void 0===N.getCookie(t)&&(e=N.create_cookie(t));var a=CryptoJS.AES.decrypt(e,"0103060703080703080701",{mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return $.parseJSON(a.toString(CryptoJS.enc.Utf8))},decrypt_pass:function(e){var t=CryptoJS.AES.decrypt(e,L.id,{mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return t.toString(CryptoJS.enc.Utf8)},encrypt:function(e,t){var a=JSON.stringify(e),n=CryptoJS.AES.encrypt(a,"0103060703080703080701",{mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}),o=new Date;o.setFullYear(o.getFullYear()+1),"https:"!=location.protocol?document.cookie=t+"="+n.toString()+";expires="+o.toGMTString()+";path=/;":document.cookie=t+"="+n.toString()+";secure;expires="+o.toGMTString()+";path=/;"},encrypt_string:function(e){var t=CryptoJS.AES.encrypt(e,L.id,{mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return t.toString()},get_volume:function(){return N.decrypt(N.getCookie("_opt"),"_opt").volume},set_volume:function(e){conf_arr.volume=e,N.encrypt(conf_arr,"_opt")},create_cookie:function(e){"_opt"==e?cookie_object={volume:100,width:100,remote:!0,name:""}:cookie_object={passwords:{}};var t=JSON.stringify(cookie_object),a=CryptoJS.AES.encrypt(t,"0103060703080703080701",{mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}),n=new Date;return n.setFullYear(n.getFullYear()+1),"https:"!=location.protocol?document.cookie=e+"="+a.toString()+";expires="+n.toGMTString()+";path=/;":document.cookie=e+"="+a.toString()+";secure;expires="+n.toGMTString()+";path=/;",N.getCookie(e)},set_pass:function(e,t){N.conf_pass.passwords[e]=t,N.encrypt(N.conf_pass,e)},remove_pass:function(e){delete N.conf_pass.passwords[e],N.encrypt(N.conf_pass,e.toLowerCase())},set_name:function(e){conf_arr.name=encodeURIComponent(e).replace(/\W/g,""),N.encrypt(conf_arr,"_opt")},remove_name:function(){conf_arr.name="",N.encrypt(conf_arr,"_opt")},get_pass:function(e){if(void 0!==N.conf_pass)return N.conf_pass.passwords[e]},set_remote:function(e){conf_arr.remote=e,N.encrypt(conf_arr,"_opt")},get_remote:function(e){return conf_arr.remote},crypt_pass:function(e){var t=CryptoJS.AES.encrypt(e,L.id,{mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7});return t.toString()},get_width:function(){return conf_arr.width},set_width:function(e){conf_arr.width=e,N.encrypt(conf_arr,"_opt")},getCookie:function(e){var t="; "+document.cookie,a=t.split("; "+e+"=");if(2==a.length)return a.pop().split(";").shift()}},z=!0,V={blob_list:[],winter:(new Date).getMonth()>=10,times_rotated:0,frontpage_function:function(e){$("#channels").empty(),z=!0,j.log("-----------"),j.log("Frontpage fetch"),j.log(e),j.log("------------"),V.populate_channels(e.channels),V.set_viewers(e.viewers)},populate_channels:function(e){var t,a="",n=0;1==e[0].pinned&&(t=e.shift()),e.sort(V.sortFunction),void 0!==t&&e.unshift(t),pre_card=$(E),j.log("------------"),j.log(pre_card),j.log("-------------"),j.mobilecheck()||V.add_backdrop(e,0);for(var o in e){var i=e[o].channel;if(n<12){var s=e[o].id,l=e[o].viewers,r="background-image:url('https://img.youtube.com/vi/"+s+"/hqdefault.jpg');",c=e[o].count,d=pre_card;1==e[o].pinned?(d.find(".pin").attr("style","display:block;"),d.find(".card").attr("title","Pinned!")):(d.find(".pin").attr("style","display:none;"),d.find(".card").attr("title","")),d.find(".chan-name").text(i),d.find(".chan-name").attr("title",i),d.find(".chan-views").text(l),d.find(".chan-songs").text(c),d.find(".chan-bg").attr("style",r),d.find(".chan-link").attr("href",i),$("#channels").append(d.html())}a+="