mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Updated templates a bit, and improved frontpage sorting
This commit is contained in:
@@ -1190,6 +1190,10 @@ hide mdi-action-visibility mdi-action-visibility-off
|
|||||||
color: orange;
|
color: orange;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.channel_info_container {
|
||||||
|
padding-top: 18px !important;
|
||||||
|
}
|
||||||
|
|
||||||
#thumbnail_image{
|
#thumbnail_image{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
@@ -1199,6 +1203,7 @@ hide mdi-action-visibility mdi-action-visibility-off
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
color: black;
|
color: black;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#chan_thumbnail:disabled{
|
#chan_thumbnail:disabled{
|
||||||
@@ -2258,6 +2263,7 @@ nav ul li:hover, nav ul li.active {
|
|||||||
|
|
||||||
#main_section_frontpage {
|
#main_section_frontpage {
|
||||||
margin-top: -20px;
|
margin-top: -20px;
|
||||||
|
padding-top: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.delete_button, .del_suggested, .del_user_suggested{
|
.delete_button, .del_suggested, .del_user_suggested{
|
||||||
|
|||||||
2
server/public/assets/dist/callback.min.js
vendored
2
server/public/assets/dist/callback.min.js
vendored
@@ -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)}})}();
|
||||||
2
server/public/assets/dist/embed.min.js
vendored
2
server/public/assets/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
2
server/public/assets/dist/main.min.js
vendored
2
server/public/assets/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -35,7 +35,7 @@ var Frontpage = {
|
|||||||
var num = 0;
|
var num = 0;
|
||||||
var pinned;
|
var pinned;
|
||||||
|
|
||||||
for(var i = 0; i < lists.length; i++) {
|
/*for(var i = 0; i < lists.length; i++) {
|
||||||
if(!lists[i].hasOwnProperty("viewers")){
|
if(!lists[i].hasOwnProperty("viewers")){
|
||||||
lists[i].viewers = 0;
|
lists[i].viewers = 0;
|
||||||
}
|
}
|
||||||
@@ -48,10 +48,13 @@ var Frontpage = {
|
|||||||
pinned = lists[i];
|
pinned = lists[i];
|
||||||
delete lists[i];
|
delete lists[i];
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if(popular) {
|
if(popular) {
|
||||||
lists = lists.sort(Helper.predicate({
|
lists = lists.sort(Helper.predicate({
|
||||||
|
name: 'pinned',
|
||||||
|
reverse: true
|
||||||
|
}, {
|
||||||
name: 'viewers',
|
name: 'viewers',
|
||||||
reverse: true
|
reverse: true
|
||||||
}, {
|
}, {
|
||||||
@@ -71,7 +74,7 @@ var Frontpage = {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
lists.unshift(pinned);
|
//lists.unshift(pinned);
|
||||||
|
|
||||||
if(!Helper.mobilecheck()) {
|
if(!Helper.mobilecheck()) {
|
||||||
clearTimeout(rotation_timeout);
|
clearTimeout(rotation_timeout);
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ var Helper = {
|
|||||||
field, name, cmp;
|
field, name, cmp;
|
||||||
|
|
||||||
var default_cmp = function (a, b) {
|
var default_cmp = function (a, b) {
|
||||||
|
if(a == undefined) a = 0;
|
||||||
|
if(b == undefined) b = 0;
|
||||||
if (a === b) return 0;
|
if (a === b) return 0;
|
||||||
return a < b ? -1 : 1;
|
return a < b ? -1 : 1;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -83,8 +83,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="empty-results-container">
|
<div id="empty-results-container">
|
||||||
<div id='empty-results' class='valign-wrapper'>
|
<div id="empty-results" class="valign-wrapper">
|
||||||
<span class='valign'>No results found..</span>
|
<span class="valign">No results found..</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -133,7 +133,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li class="channel_info_container">
|
||||||
<div id="thumbnail_image">
|
<div id="thumbnail_image">
|
||||||
</div>
|
</div>
|
||||||
<div id="description_area">
|
<div id="description_area">
|
||||||
|
|||||||
Reference in New Issue
Block a user