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 id="mega-background"></div>
|
||||
<h5>Create a radio channel, collaborate and listen</h5>
|
||||
<form class="">
|
||||
<form class="channel-finder">
|
||||
<p class="prething">zoff.no/</p>
|
||||
<input
|
||||
class="input-field room-namer"
|
||||
|
||||
@@ -1007,7 +1007,7 @@ nav ul li:hover, nav ul li.active {
|
||||
|
||||
.mobile-search{display:none;}
|
||||
|
||||
@media only screen and (max-width: 600px){
|
||||
@media only screen and (max-width: 736px) and (max-width:600px){
|
||||
#playbar{
|
||||
display:block;
|
||||
position: fixed;
|
||||
@@ -1051,7 +1051,7 @@ nav ul li:hover, nav ul li.active {
|
||||
}
|
||||
|
||||
.main, #main-row, .video-container, #playlist{
|
||||
height:100% !important;
|
||||
height:auto !important;
|
||||
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()]);
|
||||
}*/
|
||||
|
||||
/*if(window.mobilecheck()){
|
||||
if(/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream){
|
||||
document.getElementById("search").blur();
|
||||
Youtube.readyLooks();
|
||||
}else{*/
|
||||
}else{
|
||||
|
||||
Chat.setup_chat_listener(chan);
|
||||
Chat.allchat_listener();
|
||||
@@ -129,7 +129,7 @@ $(document).ready(function()
|
||||
+ git_info[0].commit.message+"<br");
|
||||
|
||||
Helper.sample();
|
||||
//}
|
||||
}
|
||||
|
||||
$( "#results" ).hover( function() { $("div.result").removeClass("hoverResults"); i = 0; }, function() { });
|
||||
$("#search").focus();
|
||||
|
||||
@@ -9,7 +9,7 @@ var Youtube = {
|
||||
document.getElementById('song-title').innerHTML = "Empty channel. Add some songs!";
|
||||
$("#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{
|
||||
ytplayer.stopVideo();
|
||||
}catch(e){}
|
||||
@@ -28,7 +28,7 @@ var Youtube = {
|
||||
Youtube.getTitle(song_title, viewers);
|
||||
Youtube.setBGimage(video_id);
|
||||
//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)
|
||||
{
|
||||
@@ -123,15 +123,15 @@ var Youtube = {
|
||||
onPlayerReady: function(event) {
|
||||
beginning = true;
|
||||
player_ready = true;
|
||||
/*if(!window.mobilecheck())
|
||||
{*/
|
||||
if(!/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream)
|
||||
{
|
||||
$("#player").css("opacity", "1");
|
||||
$("#controls").css("opacity", "1");
|
||||
$(".playlist").css("opacity", "1");
|
||||
ytplayer.loadVideoById(video_id);
|
||||
ytplayer.playVideo();
|
||||
ytplayer.seekTo(seekTo);
|
||||
//}
|
||||
}
|
||||
Youtube.readyLooks();
|
||||
Playercontrols.initYoutubeControls(ytplayer);
|
||||
Playercontrols.initSlider();
|
||||
|
||||
Reference in New Issue
Block a user