mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed error where elements are added wrongly
This commit is contained in:
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
@@ -426,6 +426,8 @@ function onepage_load(){
|
|||||||
url: "php/nochan.php",
|
url: "php/nochan.php",
|
||||||
success: function(e){
|
success: function(e){
|
||||||
|
|
||||||
|
console.log($(e));
|
||||||
|
|
||||||
socket.disconnect();
|
socket.disconnect();
|
||||||
|
|
||||||
document.getElementById("volume-button").removeEventListener("click", Playercontrols.mute_video);
|
document.getElementById("volume-button").removeEventListener("click", Playercontrols.mute_video);
|
||||||
@@ -446,16 +448,16 @@ 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)[35]).html());
|
$("header").html($($(e)[37]).html());
|
||||||
$($(e)[37]).insertAfter("header");
|
$($(e)[39]).insertAfter("header");
|
||||||
$($(e)[39]).insertAfter(".mega");
|
$($(e)[41]).insertAfter(".mega");
|
||||||
$("main").html($($(e)[43]).html());
|
$("main").html($($(e)[45]).html());
|
||||||
|
|
||||||
if($("#alreadyfp").length == 1){
|
if($("#alreadyfp").length == 1){
|
||||||
window.initfp();
|
window.initfp();
|
||||||
}else {
|
}else {
|
||||||
if(window.location.hostname == "zoff.no") number = 45;
|
if(window.location.hostname == "zoff.no") number = 47;
|
||||||
else number = 63;
|
else number = 65;
|
||||||
$("#scripts").append($($(e)[number]).html());
|
$("#scripts").append($($(e)[number]).html());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -230,8 +230,6 @@ var Nochan = {
|
|||||||
|
|
||||||
success: function(e){
|
success: function(e){
|
||||||
|
|
||||||
//console.log($(e));
|
|
||||||
|
|
||||||
socket.disconnect();
|
socket.disconnect();
|
||||||
|
|
||||||
if(!popstate) window.history.pushState("to the channel!", "Title", "/" + chan + "/");
|
if(!popstate) window.history.pushState("to the channel!", "Title", "/" + chan + "/");
|
||||||
@@ -240,13 +238,13 @@ var Nochan = {
|
|||||||
$(".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)[35]).html());
|
$("header").html($($(e)[37]).html());
|
||||||
$("main").html($($(e)[39]).html());
|
$("main").html($($(e)[41]).html());
|
||||||
$("#search").attr("placeholder", "Find song on youtube");
|
$("#search").attr("placeholder", "Find song on youtube");
|
||||||
if($("#alreadychannel").length == 1){
|
if($("#alreadychannel").length == 1){
|
||||||
window.init();
|
window.init();
|
||||||
}else{
|
}else{
|
||||||
$("#scripts").append($($(e)[53]).html());
|
$("#scripts").append($($(e)[55]).html());
|
||||||
}
|
}
|
||||||
if($("#alreadyfp").length == 0) $("head").append("<div id='alreadyfp'></div>");
|
if($("#alreadyfp").length == 0) $("head").append("<div id='alreadyfp'></div>");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user