mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed errors with navigating from and to a channel, and some mobile looks
This commit is contained in:
@@ -87,7 +87,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="channel-finder" onsubmit="return false;">
|
<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"
|
||||||
@@ -114,7 +114,7 @@ if(isset($_GET['chan'])){
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section mobile-search">
|
<div class="section mobile-search">
|
||||||
<form class="row" id="base" method="get" onsubmit="return false;">
|
<form class="channel-finder-mobile row" id="base">
|
||||||
<div class="input-field col s12">
|
<div class="input-field col s12">
|
||||||
<input
|
<input
|
||||||
class="input-field"
|
class="input-field"
|
||||||
|
|||||||
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
@@ -345,13 +345,12 @@ $(document).on("submit", ".channel-finder", function(e){
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on("submit", "#base", function(e){
|
$(document).on("submit", ".channel-finder-mobile", function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
Nochan.to_channel($("#search-mobile").val());
|
Nochan.to_channel($("#search-mobile").val());
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$(document).on("change", 'input[class=remote_switch_class]', function()
|
$(document).on("change", 'input[class=remote_switch_class]', function()
|
||||||
{
|
{
|
||||||
Hostcontroller.change_enabled(document.getElementsByName("remote_switch")[0].checked);
|
Hostcontroller.change_enabled(document.getElementsByName("remote_switch")[0].checked);
|
||||||
@@ -718,11 +717,11 @@ function onepage_load(){
|
|||||||
$("main").attr("class", "center-align container");
|
$("main").attr("class", "center-align container");
|
||||||
$("body").attr("id", "");
|
$("body").attr("id", "");
|
||||||
$("body").attr("style", "");
|
$("body").attr("style", "");
|
||||||
$("header").html($($(e)[61]).html());
|
$("header").html($($(e)[59]).html());
|
||||||
$($(e)[63]).insertAfter("header");
|
$($(e)[61]).insertAfter("header");
|
||||||
$($(e)[65]).insertAfter(".mega");
|
$($(e)[63]).insertAfter(".mega");
|
||||||
if(Helper.mobilecheck()) $("main").html($($(e)[69]).html());
|
if(Helper.mobilecheck()) $("main").html($($(e)[67]).html());
|
||||||
else $("main").append($($($(e)[69]).html())[0]);
|
else $("main").append($($($(e)[67]).html())[0]);
|
||||||
$(".page-footer").removeClass("padding-bottom-extra");
|
$(".page-footer").removeClass("padding-bottom-extra");
|
||||||
$(".page-footer").removeClass("padding-bottom-novideo");
|
$(".page-footer").removeClass("padding-bottom-novideo");
|
||||||
$("#favicon").attr("href", "static/images/favicon.png");
|
$("#favicon").attr("href", "static/images/favicon.png");
|
||||||
|
|||||||
@@ -247,16 +247,15 @@ var Nochan = {
|
|||||||
window.chan = new_channel;
|
window.chan = new_channel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$(".mega").remove();
|
$(".mega").remove();
|
||||||
$(".mobile-search").remove();
|
$(".mobile-search").remove();
|
||||||
$("main").attr("class", "container center-align main");
|
$("main").attr("class", "container center-align main");
|
||||||
$("body").attr("id", "channelpage");
|
$("body").attr("id", "channelpage");
|
||||||
$("header").html($($(e)[61]).html());
|
$("header").html($($(e)[59]).html());
|
||||||
if($("#alreadychannel").length === 0 || Helper.mobilecheck() || Player.ytplayer === undefined){
|
if($("#alreadychannel").length === 0 || Helper.mobilecheck() || Player.ytplayer === undefined){
|
||||||
$("main").html($($(e)[65]).html());
|
$("main").html($($(e)[63]).html());
|
||||||
} else {
|
} else {
|
||||||
var main = $($($($($(e)[65]).html())[0]).html());
|
var main = $($($($($(e)[63]).html())[0]).html());
|
||||||
$("#main-row").append($(main[2]).wrap("<div>").parent().html());
|
$("#main-row").append($(main[2]).wrap("<div>").parent().html());
|
||||||
$("#video-container").append($($($(main[0]).html())[4]).wrap("<div>").parent().html());
|
$("#video-container").append($($($(main[0]).html())[4]).wrap("<div>").parent().html());
|
||||||
$("#main-row").append("<div id='playbar'></div>");
|
$("#main-row").append("<div id='playbar'></div>");
|
||||||
|
|||||||
Reference in New Issue
Block a user