mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Updated mobile look, and fixed error where leaving channel before player initialized crashes
This commit is contained in:
@@ -15,11 +15,11 @@ if(isset($_GET['chan'])){
|
||||
<header>
|
||||
<nav id="fp-nav">
|
||||
<div class="nav-wrapper">
|
||||
<a href="#" class="brand-logo hide-on-small-only noselect">
|
||||
<a href="#" class="brand-logo noselect">
|
||||
<img id="zicon" src="static/images/squareicon_small.png" alt="zöff" title="Zöff" />
|
||||
</a>
|
||||
<span id="frontpage-viewer-counter" class="hide-on-small-only noselect" title="Divided among all channels. Hidden or not"></span>
|
||||
<a href="//zoff.no" class="brand-logo brand-mobile hide-on-med-and-up">Zöff</a>
|
||||
<!--<a href="//zoff.no" class="brand-logo brand-mobile hide-on-med-and-up">Zöff</a>-->
|
||||
<ul id="nav-mobile" class="right hide-on-med-and-down">
|
||||
<li><a class="modal-trigger waves-effect waves-red" title="Need help with the site?" onclick="$('#help').openModal()">Help</a></li>
|
||||
<li><a class="waves-effect green" title="Remote control a Zöff player" href="https://remote.zoff.no">Remote</a></li>
|
||||
@@ -81,7 +81,7 @@ if(isset($_GET['chan'])){
|
||||
<a href="#" class=" modal-action modal-close waves-effect waves-green btn-flat">Close</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</header>
|
||||
|
||||
<div class="section mega">
|
||||
|
||||
@@ -1402,6 +1402,10 @@ nav ul li:hover, nav ul li.active {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
|
||||
#zicon{
|
||||
height:100%;
|
||||
}
|
||||
/*.list-remove{
|
||||
margin-top:-68px;
|
||||
}*/
|
||||
|
||||
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
@@ -72,15 +72,6 @@ if (navigator.serviceWorker) {
|
||||
console.log('Service Worker is not supported in this browser.');
|
||||
}
|
||||
|
||||
/*if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.getRegistration().then(function(r) {
|
||||
try {
|
||||
r.unregister();
|
||||
} catch(e) {}
|
||||
});
|
||||
}*/
|
||||
|
||||
|
||||
$().ready(function(){
|
||||
if(!fromFront && window.location.pathname != "/") init();
|
||||
else if(!fromChannel && window.location.pathname == "/"){
|
||||
@@ -713,8 +704,12 @@ function onepage_load(){
|
||||
$("#video-container").removeClass("no-opacity");
|
||||
$("#main-row").prepend("<div id='player_bottom_overlay' title='To Channel' class='ytplayer player_bottom'></div>");
|
||||
} else {
|
||||
Player.ytplayer.destroy();
|
||||
Player.ytplayer = "";
|
||||
try{
|
||||
Player.ytplayer.destroy();
|
||||
} catch(error){
|
||||
//No player to destroy
|
||||
}
|
||||
Player.ytplayer = "";
|
||||
document.title = "Zöff";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user