diff --git a/static/css/style.css b/static/css/style.css index ae0f9290..374a35b7 100755 --- a/static/css/style.css +++ b/static/css/style.css @@ -1009,6 +1009,7 @@ nav ul li:hover, nav ul li.active { margin-top: -27px; max-height: calc(100vh - 64px); overflow: overlay; + overflow-x: hidden; } .result:hover, .hoverResults { background-color: rgba(0,0,0,0.4); diff --git a/static/dist/frontpage.min.js b/static/dist/frontpage.min.js deleted file mode 100755 index 7edccf33..00000000 --- a/static/dist/frontpage.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function t(){$("#facebook-code-link").attr("href","https://www.facebook.com/sharer/sharer.php?u=https://zoff.no/"),$("#facebook-code-link").attr("onclick","window.open('https://www.facebook.com/sharer/sharer.php?u=https://zoff.no/', 'Share Zöff','width=600,height=300'); return false;"),$("#twitter-code-link").attr("href","http://twitter.com/intent/tweet?url=https://zoff.no/&text=Check%20out%20Zöff!&via=zoffmusic"),$("#twitter-code-link").attr("onclick","window.open('http://twitter.com/intent/tweet?url=https://zoff.no/&text=Check%20out%20Zöff!&via=zoffmusic','Share Playlist','width=600,height=300'); return false;"),$("#qr-code-link").attr("href","//chart.googleapis.com/chart?chs=500x500&cht=qr&chl=https://zoff.no/&choe=UTF-8&chld=L%7C1"),$("#qr-code-image-link").attr("src","//chart.googleapis.com/chart?chs=150x150&cht=qr&chl=https://zoff.no/&choe=UTF-8&chld=L%7C1")}function e(){var e=new Date;3==e.getMonth()&&1==e.getDate()&&($(".mega").css("-webkit-transform","rotate(180deg)"),$(".mega").css("-moz-transform","rotate(180deg)")),window.onpopstate=function(t){var e=window.location.href.split("/");""!=e[3]&&"#"!=e[3].substring(0,1)&&c.to_channel(e[3],!0)},o=$("#channel-list-container").html(),t();var i={secure:!0,"force new connection":!0};"zoff.no"==window.location.hostname?add="https://zoff.no":add="localhost",a=io.connect(""+add+":8880",i),a.on("playlists",function(t){$("#channels").empty(),c.populate_channels(t.channels),c.set_viewers(t.viewers)}),a.emit("frontpage_lists"),$("#channel-load").css("display","none"),"#donation"==window.location.hash&&(window.location.hash="#",$("#donation").openModal()),localStorage.ok_cookie||Materialize.toast("We're using cookies to enhance your experience! ok",1e4);var r=0;document.getElementById("zicon").addEventListener("click",function(){r+=10,document.getElementById("zicon").style.paddingLeft=r+"%",r>=100&&(window.location.href="http://etys.no")}),!window.mobilecheck()&&c.winter&&c.start_snowfall(),n=$.ajax({type:"GET",url:"https://api.github.com/repos/zoff-music/zoff/commits",async:!1}).responseText,n=$.parseJSON(n),$("#latest-commit").html("Latest Commit:
"+n[0].commit.author.date.substring(0,10)+": "+n[0].committer.login+"
"+n[0].sha.substring(0,10)+": "+n[0].commit.message+"a){var r=t[x][1],s=t[x][0],l="background-image:url('https://img.youtube.com/vi/"+r+"/hqdefault.jpg');",m=t[x][4],d=pre_card;1==t[x][5]?(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(s),d.find(".chan-songs").text(m),d.find(".chan-bg").attr("style",l),d.find(".chan-link").attr("href",i),$("#channels").append(d.html())}n+="