Fixed header issues

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-17 20:29:38 +01:00
parent 6ceb241170
commit d5c9008d3e
3 changed files with 10 additions and 10 deletions

File diff suppressed because one or more lines are too long

View File

@@ -931,11 +931,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)[55]).html()); $("header").html($($(e)[57]).html());
$($(e)[57]).insertAfter("header"); $($(e)[59]).insertAfter("header");
$($(e)[59]).insertAfter(".mega"); $($(e)[61]).insertAfter(".mega");
if(Helper.mobilecheck()) $("main").html($($(e)[63]).html()); if(Helper.mobilecheck()) $("main").html($($(e)[65]).html());
else $("main").append($($($(e)[63]).html())[0]); else $("main").append($($($(e)[65]).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");

View File

@@ -252,11 +252,11 @@ 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)[55]).html()); $("header").html($($(e)[57]).html());
if($("#alreadychannel").length === 0 || Helper.mobilecheck() || Player.player === undefined){ if($("#alreadychannel").length === 0 || Helper.mobilecheck() || Player.player === undefined){
$("main").html($($(e)[59]).html()); $("main").html($($(e)[61]).html());
} else { } else {
var main = $($($($($(e)[59]).html())[0]).html()); var main = $($($($($(e)[61]).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>");