mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
removing player from iphone for weird sizing issues
This commit is contained in:
@@ -74,7 +74,7 @@ if(isset($_GET['chan'])){
|
|||||||
<div class="section mega">
|
<div class="section mega">
|
||||||
<div id="mega-background"></div>
|
<div id="mega-background"></div>
|
||||||
<h5>Create a radio channel, collaborate and listen</h5>
|
<h5>Create a radio channel, collaborate and listen</h5>
|
||||||
<form class="">
|
<form class="channel-finder">
|
||||||
<p class="prething">zoff.no/</p>
|
<p class="prething">zoff.no/</p>
|
||||||
<input
|
<input
|
||||||
class="input-field room-namer"
|
class="input-field room-namer"
|
||||||
|
|||||||
@@ -1007,7 +1007,7 @@ nav ul li:hover, nav ul li.active {
|
|||||||
|
|
||||||
.mobile-search{display:none;}
|
.mobile-search{display:none;}
|
||||||
|
|
||||||
@media only screen and (max-width: 600px){
|
@media only screen and (max-width: 736px) and (max-width:600px){
|
||||||
#playbar{
|
#playbar{
|
||||||
display:block;
|
display:block;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -1051,7 +1051,7 @@ nav ul li:hover, nav ul li.active {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.main, #main-row, .video-container, #playlist{
|
.main, #main-row, .video-container, #playlist{
|
||||||
height:100% !important;
|
height:auto !important;
|
||||||
margin-bottom: -5px;
|
margin-bottom: -5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
static/dist/frontpage.min.js
vendored
2
static/dist/frontpage.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
@@ -92,10 +92,10 @@ $(document).ready(function()
|
|||||||
socket.emit("password", [localStorage[chan.toLowerCase()], chan.toLowerCase()]);
|
socket.emit("password", [localStorage[chan.toLowerCase()], chan.toLowerCase()]);
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
/*if(window.mobilecheck()){
|
if(/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream){
|
||||||
document.getElementById("search").blur();
|
document.getElementById("search").blur();
|
||||||
Youtube.readyLooks();
|
Youtube.readyLooks();
|
||||||
}else{*/
|
}else{
|
||||||
|
|
||||||
Chat.setup_chat_listener(chan);
|
Chat.setup_chat_listener(chan);
|
||||||
Chat.allchat_listener();
|
Chat.allchat_listener();
|
||||||
@@ -129,7 +129,7 @@ $(document).ready(function()
|
|||||||
+ git_info[0].commit.message+"<br");
|
+ git_info[0].commit.message+"<br");
|
||||||
|
|
||||||
Helper.sample();
|
Helper.sample();
|
||||||
//}
|
}
|
||||||
|
|
||||||
$( "#results" ).hover( function() { $("div.result").removeClass("hoverResults"); i = 0; }, function() { });
|
$( "#results" ).hover( function() { $("div.result").removeClass("hoverResults"); i = 0; }, function() { });
|
||||||
$("#search").focus();
|
$("#search").focus();
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ var Youtube = {
|
|||||||
document.getElementById('song-title').innerHTML = "Empty channel. Add some songs!";
|
document.getElementById('song-title').innerHTML = "Empty channel. Add some songs!";
|
||||||
$("#player_overlay").height($("#player").height());
|
$("#player_overlay").height($("#player").height());
|
||||||
|
|
||||||
if(!window.mobilecheck()) $("#player_overlay").toggleClass("hide");
|
if(!/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) $("#player_overlay").toggleClass("hide");
|
||||||
try{
|
try{
|
||||||
ytplayer.stopVideo();
|
ytplayer.stopVideo();
|
||||||
}catch(e){}
|
}catch(e){}
|
||||||
@@ -28,7 +28,7 @@ var Youtube = {
|
|||||||
Youtube.getTitle(song_title, viewers);
|
Youtube.getTitle(song_title, viewers);
|
||||||
Youtube.setBGimage(video_id);
|
Youtube.setBGimage(video_id);
|
||||||
//if(player_ready && !window.mobilecheck())
|
//if(player_ready && !window.mobilecheck())
|
||||||
if(player_ready)
|
if(player_ready && !/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream)
|
||||||
{
|
{
|
||||||
if(ytplayer.getVideoUrl().split('v=')[1] != video_id)
|
if(ytplayer.getVideoUrl().split('v=')[1] != video_id)
|
||||||
{
|
{
|
||||||
@@ -123,15 +123,15 @@ var Youtube = {
|
|||||||
onPlayerReady: function(event) {
|
onPlayerReady: function(event) {
|
||||||
beginning = true;
|
beginning = true;
|
||||||
player_ready = true;
|
player_ready = true;
|
||||||
/*if(!window.mobilecheck())
|
if(!/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream)
|
||||||
{*/
|
{
|
||||||
$("#player").css("opacity", "1");
|
$("#player").css("opacity", "1");
|
||||||
$("#controls").css("opacity", "1");
|
$("#controls").css("opacity", "1");
|
||||||
$(".playlist").css("opacity", "1");
|
$(".playlist").css("opacity", "1");
|
||||||
ytplayer.loadVideoById(video_id);
|
ytplayer.loadVideoById(video_id);
|
||||||
ytplayer.playVideo();
|
ytplayer.playVideo();
|
||||||
ytplayer.seekTo(seekTo);
|
ytplayer.seekTo(seekTo);
|
||||||
//}
|
}
|
||||||
Youtube.readyLooks();
|
Youtube.readyLooks();
|
||||||
Playercontrols.initYoutubeControls(ytplayer);
|
Playercontrols.initYoutubeControls(ytplayer);
|
||||||
Playercontrols.initSlider();
|
Playercontrols.initSlider();
|
||||||
|
|||||||
Reference in New Issue
Block a user