mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Rehid player on iphone
This commit is contained in:
2
static/dist/embed.min.js
vendored
2
static/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -125,6 +125,7 @@ function init(){
|
||||
|
||||
socket = io.connect(''+add+':8880', connection_options);
|
||||
Player.setup_youtube_listener(chan);
|
||||
|
||||
Admin.admin_listener();
|
||||
List.channel_listener();
|
||||
|
||||
@@ -153,11 +154,17 @@ function init(){
|
||||
Player.getTitle(song_title, viewers);
|
||||
});
|
||||
|
||||
|
||||
if(/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream){
|
||||
document.getElementById("search").blur();
|
||||
Player.readyLooks();
|
||||
} else {
|
||||
window.onYouTubeIframeAPIReady = Player.onYouTubeIframeAPIReady;
|
||||
Player.loadPlayer();
|
||||
}
|
||||
Chat.setup_chat_listener(chan);
|
||||
Chat.allchat_listener();
|
||||
if(!window.mobilecheck()) Hostcontroller.host_listener();
|
||||
window.onYouTubeIframeAPIReady = Player.onYouTubeIframeAPIReady;
|
||||
Player.loadPlayer();
|
||||
|
||||
if(!Helper.msieversion()) Notification.requestPermission();
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ var Playercontrols = {
|
||||
|
||||
initYoutubeControls: function()
|
||||
{
|
||||
if(window.mobilecheck() && !window.MSStream){
|
||||
if(window.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream){
|
||||
$("#controls").appendTo("#playbar");
|
||||
}
|
||||
Playercontrols.initControls();
|
||||
@@ -55,7 +55,7 @@ var Playercontrols = {
|
||||
if(Player.ytplayer.getPlayerState() == 1)
|
||||
{
|
||||
Player.ytplayer.pauseVideo();
|
||||
if(window.mobilecheck() && !window.MSStream){
|
||||
if(window.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream){
|
||||
document.getElementById("player").style.display = "none";
|
||||
$(".video-container").toggleClass("click-through");
|
||||
$(".page-footer").toggleClass("padding-bottom-extra");
|
||||
@@ -63,7 +63,7 @@ var Playercontrols = {
|
||||
}else if(Player.ytplayer.getPlayerState() == 2 || Player.ytplayer.getPlayerState() == 0)
|
||||
{
|
||||
Player.ytplayer.playVideo();
|
||||
if(window.mobilecheck() && !window.MSStream){
|
||||
if(window.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream){
|
||||
document.getElementById("player").style.display = "block";
|
||||
$(".video-container").toggleClass("click-through");
|
||||
$(".page-footer").toggleClass("padding-bottom-extra");
|
||||
|
||||
@@ -16,8 +16,6 @@ var Search = {
|
||||
},
|
||||
|
||||
search: function(search_input){
|
||||
console.log(result_html);
|
||||
console.log(empty_results_html);
|
||||
if(result_html == undefined || empty_results_html == undefined) {
|
||||
result_html = $("#temp-results-container");
|
||||
empty_results_html = $("#empty-results-container").html();
|
||||
|
||||
Reference in New Issue
Block a user