Removed unnecessary files when having index.php and nochan.php and made changes accordingly

This commit is contained in:
Kasper Rynning-Tønnesen
2016-02-08 11:16:29 +01:00
parent 7f339e4ea4
commit 02ccc9ee4f
8 changed files with 16 additions and 454 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -411,7 +411,7 @@ function onepage_load(){
socket.removeAllListeners();
$.ajax({
url: "php/nochan_content.php",
url: "php/nochan.php",
success: function(e){
socket.disconnect();
@@ -434,14 +434,14 @@ function onepage_load(){
$("main").attr("class", "center-align container");
$("body").attr("id", "");
$("body").attr("style", "");
$("header").html($($(e)[0]).html());
$($(e)[2]).insertAfter("header");
$($(e)[4]).insertAfter(".mega");
$("main").html($($(e)[8]).html());
$("header").html($($(e)[35]).html());
$($(e)[37]).insertAfter("header");
$($(e)[39]).insertAfter(".mega");
$("main").html($($(e)[43]).html());
if($("#alreadychannel").length == 0) $("head").append("<div id='alreadychannel'></div")
if($("#alreadyfp").length == 1) window.initfp();
else $("#scripts").append($($(e)[10]).html());
else $("#scripts").append($($(e)[63]).html());
$("#channel-load").css("display", "none");
}, 1000);

View File

@@ -226,9 +226,11 @@ var Nochan = {
socket.removeAllListeners();
$.ajax({
url: chan + "/php/channel.php",
url: chan + "/php/index.php",
success: function(e){
//console.log($(e));
delete Nochan
socket.disconnect();
@@ -239,13 +241,13 @@ var Nochan = {
$(".mobile-search").remove();
$("main").attr("class", "container center-align main");
$("body").attr("id", "channelpage");
$("header").html($($(e)[0]).html());
$("main").html($($(e)[4]).html());
$("header").html($($(e)[35]).html());
$("main").html($($(e)[39]).html());
$("#search").attr("placeholder", "Find song on youtube");
if($("#alreadychannel").length == 1){
window.init();
}else{
$("#scripts").append($($(e)[6]).html());
$("#scripts").append($($(e)[51]).html());
}
if($("#alreadyfp").length == 0) $("head").append("<div id='alreadyfp'></div>");
}