!function(){function e(){"#donation"==window.location.hash&&$("#donation").openModal(),t=$("#channel-list-container").html(),$("#channels").empty();var e={secure:!0,"force new connection":!0};"zoff.no"==window.location.hostname?add="https://zoff.no":add="localhost";var n=io.connect(""+add+":8880",e);n.emit("frontpage_lists"),n.on("playlists",function(e){a.populate_channels(e)}),window.socket=n,localStorage.ok_cookie||Materialize.toast("We're using cookies to enhance your experience! ok",1e4);var i=0;document.getElementById("zicon").addEventListener("click",function(){i+=10,document.getElementById("zicon").style.paddingLeft=i+"%",i>=100&&(window.location.href="https://www.youtube.com/v/0IGsNdVoEh0?autoplay=1&showinfo=0&autohide=1")}),!window.mobilecheck()&&a.winter&&a.start_snowfall(),o=$.ajax({type:"GET",url:"https://api.github.com/repos/zoff-music/zoff/commits",async:!1}).responseText,o=$.parseJSON(o),$("#latest-commit").html("Latest Commit:
"+o[0].commit.author.date.substring(0,10)+": "+o[0].committer.login+"
"+o[0].sha.substring(0,10)+": "+o[0].commit.message+"i){var r=e[x][1],l=e[x][0],c="background-image:url('https://img.youtube.com/vi/"+r+"/hqdefault.jpg');",d=e[x][4],u=pre_card;1==e[x][5]?(u.find(".pin").attr("style","display:block;"),u.find(".card").attr("title","Pinned!")):(u.find(".pin").attr("style","display:none;"),u.find(".card").attr("title","")),u.find(".chan-name").text(s),u.find(".chan-name").attr("title",s),u.find(".chan-views").text(l),u.find(".chan-songs").text(d),u.find(".chan-bg").attr("style",c),u.find(".chan-link").attr("href",s),$("#channels").append(u.html())}n+="