mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-01-20 08:25:34 +00:00
Better background and positioning of the volumeslider for mobile
This commit is contained in:
@@ -502,6 +502,9 @@ initializeCastApi = function() {
|
||||
Helper.log(event.castState);
|
||||
if(event.castState == "NOT_CONNECTED"){
|
||||
$(".castButton").css("display", "block");
|
||||
if(!$(".volume-container").hasClass("volume-container-cast")) {
|
||||
$(".volume-container").addClass("volume-container-cast");
|
||||
}
|
||||
cast_ready_connect = true;
|
||||
if(!localStorage.getItem("_chSeen") || localStorage.getItem("_chSeen") != "seen") {
|
||||
$(".castButton").css("display", "block");
|
||||
@@ -515,6 +518,7 @@ initializeCastApi = function() {
|
||||
}
|
||||
} else if(event.castState == "NO_DEVICES_AVAILABLE"){
|
||||
cast_ready_connect = false;
|
||||
$(".volume-container").removeClass("volume-container-cast");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ var Playercontrols = {
|
||||
};
|
||||
if(Helper.mobilecheck()) {
|
||||
slider_values.orientation = "vertical";
|
||||
$("#volume").toggleClass("hide");
|
||||
$(".volume-container").toggleClass("hide");
|
||||
}
|
||||
$("#volume").slider(slider_values);
|
||||
Playercontrols.choose_button(vol, false);
|
||||
@@ -110,7 +110,7 @@ var Playercontrols = {
|
||||
|
||||
mute_video: function() {
|
||||
if(Helper.mobilecheck()) {
|
||||
$("#volume").toggleClass("hide");
|
||||
$(".volume-container").toggleClass("hide");
|
||||
} else {
|
||||
if(!Player.player.isMuted()) {
|
||||
if(chromecastAvailable) castSession.sendMessage("urn:x-cast:zoff.me", {type: "mute"});
|
||||
|
||||
Reference in New Issue
Block a user