mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Update way of showing play button on android and iPhone
This commit is contained in:
4
public/dist/embed.min.js
vendored
4
public/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
4
public/dist/main.min.js
vendored
4
public/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1231,15 +1231,15 @@ function searchTimeout(event) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(/iPad|iPhone|iPod/.test(navigator.userAgent)){
|
/*if(/iPad|iPhone|iPod/.test(navigator.userAgent)){
|
||||||
$(document).on('touchend', '.search_input', function(event) {
|
$(document).on('touchend', '.search_input', function(event) {
|
||||||
searchTimeout(event);
|
searchTimeout(event);
|
||||||
});
|
});
|
||||||
} else {
|
} else {*/
|
||||||
$(document).on('keyup', ".search_input", function(event) {
|
$(document).on('keyup', ".search_input", function(event) {
|
||||||
searchTimeout(event);
|
searchTimeout(event);
|
||||||
});
|
});
|
||||||
}
|
//}
|
||||||
|
|
||||||
$(document).on("click", ".chat-tab", function(){
|
$(document).on("click", ".chat-tab", function(){
|
||||||
$("#text-chat-input").focus();
|
$("#text-chat-input").focus();
|
||||||
|
|||||||
@@ -153,6 +153,7 @@ var Player = {
|
|||||||
if(Helper.mobilecheck()){
|
if(Helper.mobilecheck()){
|
||||||
$("#playpause").css("visibility", "visible");
|
$("#playpause").css("visibility", "visible");
|
||||||
$("#playpause").css("pointer-events", "all");
|
$("#playpause").css("pointer-events", "all");
|
||||||
|
$("#channel-load").css("display", "none");
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
@@ -331,16 +332,17 @@ var Player = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onPlayerReady: function(event) {
|
onPlayerReady: function(event) {
|
||||||
$("#channel-load").css("display", "none");
|
|
||||||
try{
|
try{
|
||||||
beginning = true;
|
beginning = true;
|
||||||
player_ready = true;
|
player_ready = true;
|
||||||
if(!window.MSStream)
|
if(!window.MSStream)
|
||||||
{
|
{
|
||||||
if(Helper.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent)){
|
if(Helper.mobilecheck()){
|
||||||
$("#playpause").css("visibility", "hidden");
|
$("#playpause").css("visibility", "hidden");
|
||||||
$("#playpause").css("pointer-events", "none");
|
$("#playpause").css("pointer-events", "none");
|
||||||
}
|
} else {
|
||||||
|
$("#channel-load").css("display", "none");
|
||||||
|
}
|
||||||
$("#player").css("opacity", "1");
|
$("#player").css("opacity", "1");
|
||||||
$("#controls").css("opacity", "1");
|
$("#controls").css("opacity", "1");
|
||||||
$(".playlist").css("opacity", "1");
|
$(".playlist").css("opacity", "1");
|
||||||
|
|||||||
Reference in New Issue
Block a user