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