Trying to fix pinned posts

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-13 23:40:14 +01:00
parent 69a5dba6b1
commit 6f20b1285e
95 changed files with 4 additions and 4 deletions

0
server/node_modules/cors-anywhere/.jshintrc generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/.npmignore generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/Procfile generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/README.md generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/demo.html generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/lib/cors-anywhere.js generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/lib/help.txt generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/lib/regexp-top-level-domain.js generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/node_modules/http-proxy/.npmignore generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/node_modules/http-proxy/LICENSE generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/node_modules/http-proxy/README.md generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/node_modules/http-proxy/index.js generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/node_modules/http-proxy/lib/http-proxy.js generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/node_modules/http-proxy/lib/http-proxy/common.js generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/node_modules/http-proxy/lib/http-proxy/index.js generated vendored Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

0
server/node_modules/cors-anywhere/node_modules/http-proxy/package.json generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/package.json generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/server.js generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/test-old-for-leak-testing/runner.js generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/test-old-for-leak-testing/sub-no-cors-server.js generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/test-old-for-leak-testing/sub-server.js generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/test/cert.pem generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/test/child.js generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/test/dummy.txt generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/test/key.pem generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/test/setup.js generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/test/test-memory.js generated vendored Normal file → Executable file
View File

0
server/node_modules/cors-anywhere/test/test.js generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/.npmignore generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/LICENSE generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/README.md generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/emoji-strip.sublime-project generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/emoji-strip.sublime-workspace generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/examples/emoji-strip.js generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/index.js generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/node_modules/gemoji/.jscs.json generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/node_modules/gemoji/.npmignore generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/node_modules/gemoji/History.md generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/node_modules/gemoji/LICENSE generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/node_modules/gemoji/Readme.md generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/node_modules/gemoji/Supported-Gemoji.md generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/node_modules/gemoji/bower.json generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/node_modules/gemoji/build-data.js generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/node_modules/gemoji/build-supported-gemoji.js generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/node_modules/gemoji/component.json generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/node_modules/gemoji/data/gemoji.json generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/node_modules/gemoji/index.js generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/node_modules/gemoji/package.json generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/package.json generated vendored Normal file → Executable file
View File

0
server/node_modules/emoji-strip/tests/emoji-strip.js generated vendored Normal file → Executable file
View File

View File

@@ -67,7 +67,7 @@ db.on('error',function(err) {
});
io.on('connection', function(socket){
console.log("connection");
socket.emit("get_list");
var guid = hash_pass(socket.handshake.headers["user-agent"] + socket.handshake.address + socket.handshake.headers["accept-language"]);
@@ -112,7 +112,6 @@ io.on('connection', function(socket){
socket.on('frontpage_lists', function()
{
console.log("connected");
var playlists_to_send = [];
var i = 0;
var playlists_to_send = [];

0
static/css/materialize.css vendored Normal file → Executable file
View File

0
static/css/materialize.min.css vendored Normal file → Executable file
View File

View File

@@ -1 +1 @@
!function(){var e,t,o={populate_channels:function(t){var n,a="",s=0;1==t[0][5]&&(n=t.shift()),t.sort(o.sortFunction),void 0!==n&&t.unshift(n),pre_card=$(e);for(x in t){var i=t[x][3];if(20>s){var l=t[x][1],r=t[x][0],c="background-image:url('https://img.youtube.com/vi/"+l+"/hqdefault.jpg');",d=t[x][4],u=pre_card;1==t[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(i),u.find(".chan-name").attr("title",i),u.find(".chan-views").text(r),u.find(".chan-songs").text(d),u.find(".chan-bg").attr("style",c),u.find(".chan-link").attr("href",i),$("#channels").append(u.html())}a+="<option value='"+i+"'> ",s++}document.getElementById("preloader").style.display="none",document.getElementById("searches").innerHTML=a,$("#channels").fadeIn(800),$("#search").focus()},sortFunction:function(e,t){var o=e[0],n=t[0],a=e[4],s=t[4];return n>o?1:o>n?-1:s>a?1:a>s?-1:0},getCookie:function(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var a=o[n];" "==a.charAt(0);)a=a.substring(1);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return""}};String.prototype.capitalizeFirstLetter=function(){return this.charAt(0).toUpperCase()+this.slice(1)},$(document).ready(function(){"#donation"==window.location.hash&&$("#donation").openModal(),e=$("#channel-list-container").html(),window.list_html=e,$("#channels").empty();var n=io.connect("//"+window.location.hostname+":8880");n.emit("frontpage_lists"),n.on("playlists",function(e){o.populate_channels(e)});var a=0;if(document.getElementById("zicon").addEventListener("click",function(){a+=10,document.getElementById("zicon").style.paddingLeft=a+"%",a>=100&&(window.location.href="https://www.youtube.com/v/0IGsNdVoEh0?autoplay=1&showinfo=0&autohide=1")}),navigator.userAgent.toLowerCase().indexOf("android")>-1&&""==o.getCookie("show_prompt")){var s=confirm("Do you want to download the native app for this webpage?");if(s)window.location.href="https://play.google.com/store/apps/details?id=no.lqasse.zoff";else{var i=new Date;i.setTime(i.getTime()+864e6);var l="expires="+i.toUTCString();document.cookie="show_prompt=false;"+l}}t=$.ajax({type:"GET",url:"https://api.github.com/repos/zoff-music/zoff/commits",async:!1}).responseText,t=$.parseJSON(t),$("#latest-commit").html("Latest Commit: <br>"+t[0].commit.author.date.substring(0,10)+": "+t[0].committer.login+"<br><a href='"+t[0].html_url+"'>"+t[0].sha.substring(0,10)+"</a>: "+t[0].commit.message+"<br")})}();
!function(){var t,e,n={populate_channels:function(e){var o,i="",a=0;console.log(e),1==e[0][5]&&(o=e.shift()),e.sort(n.sortFunction),void 0!==o&&e.unshift(o),pre_card=$(t);for(x in e){var r=e[x][3];if(20>a){var s=e[x][1],c=e[x][0],l="background-image:url('https://img.youtube.com/vi/"+s+"/hqdefault.jpg');",d=e[x][4],h=pre_card;1==e[x][5]?(h.find(".pin").attr("style","display:block;"),h.find(".card").attr("title","Pinned!")):(h.find(".pin").attr("style","display:none;"),h.find(".card").attr("title","")),h.find(".chan-name").text(r),h.find(".chan-name").attr("title",r),h.find(".chan-views").text(c),h.find(".chan-songs").text(d),h.find(".chan-bg").attr("style",l),h.find(".chan-link").attr("href",r),$("#channels").append(h.html())}i+="<option value='"+r+"'> ",a++}document.getElementById("preloader").style.display="none",document.getElementById("searches").innerHTML=i,$("#channels").fadeIn(800),$("#search").focus()},sortFunction:function(t,e){var n=t[0],o=e[0],i=t[4],a=e[4];return o>n?1:n>o?-1:a>i?1:i>a?-1:0},getCookie:function(t){for(var e=t+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var i=n[o];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(e))return i.substring(e.length,i.length)}return""}};String.prototype.capitalizeFirstLetter=function(){return this.charAt(0).toUpperCase()+this.slice(1)},$(document).ready(function(){"#donation"==window.location.hash&&$("#donation").openModal(),t=$("#channel-list-container").html(),window.list_html=t,$("#channels").empty();var o=io.connect("//"+window.location.hostname+":8880");o.emit("frontpage_lists"),o.on("playlists",function(t){n.populate_channels(t)});var i=0;if(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")}),navigator.userAgent.toLowerCase().indexOf("android")>-1&&""==n.getCookie("show_prompt")){var a=confirm("Do you want to download the native app for this webpage?");if(a)window.location.href="https://play.google.com/store/apps/details?id=no.lqasse.zoff";else{var r=new Date;r.setTime(r.getTime()+864e6);var s="expires="+r.toUTCString();document.cookie="show_prompt=false;"+s}}e=$.ajax({type:"GET",url:"https://api.github.com/repos/zoff-music/zoff/commits",async:!1}).responseText,e=$.parseJSON(e),$("#latest-commit").html("Latest Commit: <br>"+e[0].commit.author.date.substring(0,10)+": "+e[0].committer.login+"<br><a href='"+e[0].html_url+"'>"+e[0].sha.substring(0,10)+"</a>: "+e[0].commit.message+"<br")})}();

0
static/dist/lib/materialize.js vendored Normal file → Executable file
View File

0
static/dist/lib/materialize.min.js vendored Normal file → Executable file
View File

File diff suppressed because one or more lines are too long

0
static/font/material-design-icons/LICENSE.txt Normal file → Executable file
View File

View File

View File

Before

Width:  |  Height:  |  Size: 322 KiB

After

Width:  |  Height:  |  Size: 322 KiB

View File

View File

View File

0
static/font/roboto/Roboto-Bold.ttf Normal file → Executable file
View File

0
static/font/roboto/Roboto-Bold.woff Normal file → Executable file
View File

0
static/font/roboto/Roboto-Bold.woff2 Normal file → Executable file
View File

0
static/font/roboto/Roboto-Light.ttf Normal file → Executable file
View File

0
static/font/roboto/Roboto-Light.woff Normal file → Executable file
View File

0
static/font/roboto/Roboto-Light.woff2 Normal file → Executable file
View File

0
static/font/roboto/Roboto-Medium.ttf Normal file → Executable file
View File

0
static/font/roboto/Roboto-Medium.woff Normal file → Executable file
View File

0
static/font/roboto/Roboto-Medium.woff2 Normal file → Executable file
View File

0
static/font/roboto/Roboto-Regular.ttf Normal file → Executable file
View File

0
static/font/roboto/Roboto-Regular.woff Normal file → Executable file
View File

0
static/font/roboto/Roboto-Regular.woff2 Normal file → Executable file
View File

0
static/font/roboto/Roboto-Thin.ttf Normal file → Executable file
View File

0
static/font/roboto/Roboto-Thin.woff Normal file → Executable file
View File

0
static/font/roboto/Roboto-Thin.woff2 Normal file → Executable file
View File

0
static/images/loading.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 786 B

After

Width:  |  Height:  |  Size: 786 B

0
static/images/pin.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 299 B

After

Width:  |  Height:  |  Size: 299 B

View File

@@ -21,6 +21,7 @@ var Nochan = {
var output = "";
var num = 0;
var pinned;
console.log(lists);
if(lists[0][5] == 1){
pinned = lists.shift();
}