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

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>");
}