mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
More compliances
This commit is contained in:
@@ -38,13 +38,13 @@ gulp.task("js", function() {
|
|||||||
])
|
])
|
||||||
//.pipe(sourcemaps.init())
|
//.pipe(sourcemaps.init())
|
||||||
.pipe(concat("main.min.js"))
|
.pipe(concat("main.min.js"))
|
||||||
.pipe(
|
/*.pipe(
|
||||||
uglify({
|
uglify({
|
||||||
mangle: true,
|
mangle: true,
|
||||||
compress: true,
|
compress: true,
|
||||||
enclose: true
|
enclose: true
|
||||||
})
|
})
|
||||||
)
|
)*/
|
||||||
//.pipe(sourcemaps.write('maps'))
|
//.pipe(sourcemaps.write('maps'))
|
||||||
.pipe(gulp.dest("server/public/assets/dist"))
|
.pipe(gulp.dest("server/public/assets/dist"))
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -161,6 +161,22 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#main_components {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#duration,
|
||||||
|
#playpause,
|
||||||
|
.playbar-btn.skip,
|
||||||
|
#volume-button,
|
||||||
|
#bar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cast-button-header {
|
||||||
|
height: 56px;
|
||||||
|
}
|
||||||
|
|
||||||
.slider-vol-mobile {
|
.slider-vol-mobile {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
@@ -299,10 +315,19 @@
|
|||||||
|
|
||||||
#player {
|
#player {
|
||||||
height: calc(100%);
|
height: calc(100%);
|
||||||
display: none;
|
/*display: none;*/
|
||||||
|
pointer-events: all !important;
|
||||||
|
opacity: 1 !important;
|
||||||
|
display: block !important;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#search-btn {
|
||||||
|
position: absolute;
|
||||||
|
top: 56px;
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.pointer-events-all-mobile {
|
.pointer-events-all-mobile {
|
||||||
pointer-events: all !important;
|
pointer-events: all !important;
|
||||||
}
|
}
|
||||||
@@ -430,12 +455,6 @@
|
|||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.castButton {
|
|
||||||
width: 39px;
|
|
||||||
height: 51px;
|
|
||||||
padding-top: 0em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.label-for-mobile-frontpage {
|
.label-for-mobile-frontpage {
|
||||||
display: initial;
|
display: initial;
|
||||||
width: auto !important;
|
width: auto !important;
|
||||||
@@ -552,7 +571,7 @@
|
|||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-footer {
|
footer {
|
||||||
padding-top: 40px !important;
|
padding-top: 40px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -597,7 +616,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#player {
|
#player {
|
||||||
pointer-events: none;
|
/*pointer-events: none;*/
|
||||||
margin-top: 7px;
|
margin-top: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1441,6 +1441,7 @@ function resizePlaylistPlaying(playing, resizing) {
|
|||||||
if (document.querySelector("#wrapper") == null || embed || client) return;
|
if (document.querySelector("#wrapper") == null || embed || client) return;
|
||||||
if (window.innerWidth < 601) {
|
if (window.innerWidth < 601) {
|
||||||
var subtract = 0;
|
var subtract = 0;
|
||||||
|
playing = true;
|
||||||
if (playing) {
|
if (playing) {
|
||||||
var height = window.innerHeight - 246 - 170 - subtract;
|
var height = window.innerHeight - 246 - 170 - subtract;
|
||||||
Helper.css("#chat-bar", "height", height + "px");
|
Helper.css("#chat-bar", "height", height + "px");
|
||||||
|
|||||||
@@ -199,9 +199,9 @@ var Player = {
|
|||||||
}
|
}
|
||||||
if (!embed && !client && window.location.pathname != "/") {
|
if (!embed && !client && window.location.pathname != "/") {
|
||||||
if (Helper.mobilecheck()) {
|
if (Helper.mobilecheck()) {
|
||||||
Helper.css("#player", "display", "block");
|
/*Helper.css("#player", "display", "block");
|
||||||
Helper.toggleClass(".video-container", "click-through");
|
Helper.toggleClass(".video-container", "click-through");*/
|
||||||
Helper.toggleClass(".page-footer", "padding-bottom-extra");
|
//Helper.toggleClass(".page-footer", "padding-bottom-extra");
|
||||||
}
|
}
|
||||||
resizePlaylistPlaying(
|
resizePlaylistPlaying(
|
||||||
newState.data == YT.PlayerState.PLAYING ||
|
newState.data == YT.PlayerState.PLAYING ||
|
||||||
@@ -213,8 +213,8 @@ var Player = {
|
|||||||
Helper.css("#player", "opacity", "1");
|
Helper.css("#player", "opacity", "1");
|
||||||
Helper.css("#channel-load", "display", "none");
|
Helper.css("#channel-load", "display", "none");
|
||||||
|
|
||||||
Helper.addClass("#player", "pointer-events-all-mobile");
|
//Helper.addClass("#player", "pointer-events-all-mobile");
|
||||||
Helper.removeClass("#video-container", "click-through");
|
//Helper.removeClass("#video-container", "click-through");
|
||||||
Helper.addClass("#player", "small-display");
|
Helper.addClass("#player", "small-display");
|
||||||
Helper.css("#playpause", "visibility", "visible");
|
Helper.css("#playpause", "visibility", "visible");
|
||||||
Helper.css("#playpause", "pointer-events", "all");
|
Helper.css("#playpause", "pointer-events", "all");
|
||||||
@@ -266,9 +266,9 @@ var Player = {
|
|||||||
mobile_beginning = true;
|
mobile_beginning = true;
|
||||||
if (!embed && !client && window.location.pathname != "/") {
|
if (!embed && !client && window.location.pathname != "/") {
|
||||||
if (Helper.mobilecheck() && !embed) {
|
if (Helper.mobilecheck() && !embed) {
|
||||||
Helper.css("#player", "display", "none");
|
/*Helper.css("#player", "display", "none");
|
||||||
Helper.toggleClass(".video-container", "click-through");
|
Helper.toggleClass(".video-container", "click-through");
|
||||||
Helper.toggleClass(".page-footer", "padding-bottom-extra");
|
Helper.toggleClass(".page-footer", "padding-bottom-extra");*/
|
||||||
}
|
}
|
||||||
|
|
||||||
resizePlaylistPlaying(
|
resizePlaylistPlaying(
|
||||||
@@ -279,9 +279,9 @@ var Player = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Helper.removeClass("#player", "pointer-events-all-mobile");
|
//Helper.removeClass("#player", "pointer-events-all-mobile");
|
||||||
Helper.addClass("#video-container", "click-through");
|
//Helper.addClass("#video-container", "click-through");
|
||||||
Helper.removeClass("#player", "small-display");
|
//Helper.removeClass("#player", "small-display");
|
||||||
break;
|
break;
|
||||||
case YT.PlayerState.BUFFERING:
|
case YT.PlayerState.BUFFERING:
|
||||||
//was_stopped = false;
|
//was_stopped = false;
|
||||||
@@ -1062,7 +1062,7 @@ var Player = {
|
|||||||
if (Helper.mobilecheck()) {
|
if (Helper.mobilecheck()) {
|
||||||
/*Helper.css("#playpause", "visibility", "hidden");
|
/*Helper.css("#playpause", "visibility", "hidden");
|
||||||
Helper.css("#playpause", "pointer-events", "none");*/
|
Helper.css("#playpause", "pointer-events", "none");*/
|
||||||
Helper.css("#player", "opacity", "1");
|
//Helper.css("#player", "opacity", "1");
|
||||||
if (offline) {
|
if (offline) {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
Helper.css("#channel-load", "display", "none");
|
Helper.css("#channel-load", "display", "none");
|
||||||
@@ -1222,6 +1222,9 @@ var Player = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onYouTubeIframeAPIReady: function() {
|
onYouTubeIframeAPIReady: function() {
|
||||||
|
if (Helper.mobilecheck()) {
|
||||||
|
resizePlaylistPlaying(true, false);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
Player.player = new YT.Player("player", {
|
Player.player = new YT.Player("player", {
|
||||||
videoId: video_id,
|
videoId: video_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user