Updated templates a bit, and improved frontpage sorting

This commit is contained in:
Kasper Rynning-Tønnesen
2017-09-13 22:38:28 +02:00
parent a6d238e4df
commit f241243d28
8 changed files with 20 additions and 9 deletions

View File

@@ -1190,6 +1190,10 @@ hide mdi-action-visibility mdi-action-visibility-off
color: orange;
}
.channel_info_container {
padding-top: 18px !important;
}
#thumbnail_image{
text-align: center;
}
@@ -1199,6 +1203,7 @@ hide mdi-action-visibility mdi-action-visibility-off
margin: auto;
color: black;
justify-content: center;
line-height: 30px;
}
#chan_thumbnail:disabled{
@@ -2258,6 +2263,7 @@ nav ul li:hover, nav ul li.active {
#main_section_frontpage {
margin-top: -20px;
padding-top: 0px;
}
.delete_button, .del_suggested, .del_user_suggested{

View File

@@ -1 +1 @@
!function(){function e(e){var t,a=e.substring(1).split("&"),n={};for(var s in a)t=a[s].split("="),2==t.length&&(n[t[0]]=t[1]);return n}window.addEventListener("load",function(){var t,a,n,s=e(window.location.hash),i=window.location.protocol+"//"+window.location.hostname+"/o_callback";if(s.spotify)t="b934ecdd173648f5bcd38738af529d58",a="token",n="playlist-read-private playlist-read-collaborative user-read-private playlist-modify-public",state=s.nonce,window.location.href="https://accounts.spotify.com/authorize?client_id="+t+"&scope="+n+"&show_dialog=false&response_type="+a+"&redirect_uri="+i+"&state="+state;else if(s.youtube)t="944988770273-butsmlr1aotlsskk8lmgvh0etqqekigf.apps.googleusercontent.com",a="token",n="https://www.googleapis.com/auth/youtube",state=s.nonce,window.location.href="https://accounts.google.com/o/oauth2/v2/auth?client_id="+t+"&response_type="+a+"&state="+state+"&redirect_uri="+i+"&scope="+n;else{var o=e(window.location.hash);window.opener.callback(o)}})}();
!function(){function e(e){var t,a=e.substring(1).split("&"),n={};for(var i in a)t=a[i].split("="),2==t.length&&(n[t[0]]=t[1]);return n}window.addEventListener("load",function(){var t,a,n,i=e(window.location.hash),s=window.location.protocol+"//"+window.location.hostname+"/o_callback";if(i.spotify)t="b934ecdd173648f5bcd38738af529d58",a="token",n="playlist-read-private playlist-read-collaborative user-read-private playlist-modify-public",state=i.nonce,window.location.href="https://accounts.spotify.com/authorize?client_id="+t+"&scope="+n+"&show_dialog=false&response_type="+a+"&redirect_uri="+s+"&state="+state;else if(i.youtube)t="944988770273-butsmlr1aotlsskk8lmgvh0etqqekigf.apps.googleusercontent.com",a="token",n="https://www.googleapis.com/auth/youtube",state=i.nonce,window.location.href="https://accounts.google.com/o/oauth2/v2/auth?client_id="+t+"&response_type="+a+"&state="+state+"&redirect_uri="+s+"&scope="+n;else{var o=e(window.location.hash);window.opener.callback(o)}})}();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -35,7 +35,7 @@ var Frontpage = {
var num = 0;
var pinned;
for(var i = 0; i < lists.length; i++) {
/*for(var i = 0; i < lists.length; i++) {
if(!lists[i].hasOwnProperty("viewers")){
lists[i].viewers = 0;
}
@@ -48,10 +48,13 @@ var Frontpage = {
pinned = lists[i];
delete lists[i];
}
}
}*/
if(popular) {
lists = lists.sort(Helper.predicate({
name: 'pinned',
reverse: true
}, {
name: 'viewers',
reverse: true
}, {
@@ -71,7 +74,7 @@ var Frontpage = {
}));
}
lists.unshift(pinned);
//lists.unshift(pinned);
if(!Helper.mobilecheck()) {
clearTimeout(rotation_timeout);

View File

@@ -25,6 +25,8 @@ var Helper = {
field, name, cmp;
var default_cmp = function (a, b) {
if(a == undefined) a = 0;
if(b == undefined) b = 0;
if (a === b) return 0;
return a < b ? -1 : 1;
},

View File

@@ -83,8 +83,8 @@
</div>
</div>
<div id="empty-results-container">
<div id='empty-results' class='valign-wrapper'>
<span class='valign'>No results found..</span>
<div id="empty-results" class="valign-wrapper">
<span class="valign">No results found..</span>
</div>
</div>
</div>

View File

@@ -133,7 +133,7 @@
</div>
</form>
</li>
<li>
<li class="channel_info_container">
<div id="thumbnail_image">
</div>
<div id="description_area">