mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Fixed following issues caused
This commit is contained in:
@@ -3097,7 +3097,7 @@ nav ul li:hover, nav ul li.active {
|
|||||||
#player_overlay {
|
#player_overlay {
|
||||||
height: calc(30vh);
|
height: calc(30vh);
|
||||||
bottom: -33px !important;
|
bottom: -33px !important;
|
||||||
top: initial;
|
top: 7px;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
|
|||||||
@@ -148,6 +148,7 @@ var Player = {
|
|||||||
//was_stopped = false;
|
//was_stopped = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Helper.css("#player_overlay", "display", "none");
|
||||||
if(embed) {
|
if(embed) {
|
||||||
Helper.css("#player", "visibility", "visible");
|
Helper.css("#player", "visibility", "visible");
|
||||||
}
|
}
|
||||||
@@ -679,7 +680,12 @@ var Player = {
|
|||||||
document.getElementById("song-title").setAttribute("title", title);
|
document.getElementById("song-title").setAttribute("title", title);
|
||||||
//elem.title = title;
|
//elem.title = title;
|
||||||
if(chromecastAvailable){
|
if(chromecastAvailable){
|
||||||
|
try {
|
||||||
|
Helper.css("#player_overlay", "background", "url(" + Player.np.thumbnail + ")");
|
||||||
|
|
||||||
|
} catch(e) {
|
||||||
Helper.css("#player_overlay", "background", "url(https://img.youtube.com/vi/" + video_id + "/hqdefault.jpg)");
|
Helper.css("#player_overlay", "background", "url(https://img.youtube.com/vi/" + video_id + "/hqdefault.jpg)");
|
||||||
|
}
|
||||||
Helper.css("#player_overlay", "background-position", "center");
|
Helper.css("#player_overlay", "background-position", "center");
|
||||||
Helper.css("#player_overlay", "background-size", "100%");
|
Helper.css("#player_overlay", "background-size", "100%");
|
||||||
Helper.css("#player_overlay", "background-color", "black");
|
Helper.css("#player_overlay", "background-color", "black");
|
||||||
@@ -767,7 +773,7 @@ var Player = {
|
|||||||
|
|
||||||
soundcloudPlay: function() {
|
soundcloudPlay: function() {
|
||||||
Helper.addClass("#player_loader_container", "hide");
|
Helper.addClass("#player_loader_container", "hide");
|
||||||
Helper.removeClass("#player_overlay", "hide");
|
Helper.css("#player_overlay", "display", "block");
|
||||||
Helper.addClass("#player", "hide");
|
Helper.addClass("#player", "hide");
|
||||||
if(videoSource == "youtube") {
|
if(videoSource == "youtube") {
|
||||||
Player.soundcloud_player.pause();
|
Player.soundcloud_player.pause();
|
||||||
|
|||||||
Reference in New Issue
Block a user