diff --git a/devjs/core.js b/devjs/core.js index 7b4999e8..1c2d30d9 100644 --- a/devjs/core.js +++ b/devjs/core.js @@ -30,7 +30,7 @@ var settings = { "Save logs locally": { "id": "bda-gs-0", "info": "Saves chat logs locally", "implemented":false }, "Public Servers": { "id": "bda-gs-1", "info": "Display public servers", "implemented":false}, "Minimal Mode": { "id": "bda-gs-2", "info": "Hide elements and reduce the size of elements.", "implemented":true}, - "Voidce Mode": { "id": "bda-gs-4", "info": "Only show voice chat", "implemented":true}, + "Voice Mode": { "id": "bda-gs-4", "info": "Only show voice chat", "implemented":true}, "Hide Channels": { "id": "bda-gs-3", "info": "Hide channels in minimal mode", "implemented":true}, "Quick Emote Menu": { "id": "bda-es-0", "info": "Show quick emote menu for adding emotes", "implemented":true }, "FrankerFaceZ Emotes": { "id": "bda-es-1", "info": "Show FrankerFaceZ Emotes", "implemented":true }, @@ -73,6 +73,9 @@ Core.prototype.init = function() { //Incase were too fast function gwDefer() { if($(".guilds-wrapper").size() > 0) { + + + $(".guilds li:first-child").after($("
", { css: { "height": "20px" } }).append($("", { class: "guild-inner", css: { "height": "20px" } }).append($("").append($("", { css: { "line-height": "20px" }, text: "public", id: "bd-pub-button" }))))); $(".guilds li:first-child").after($("", {id:"tc-settings-li"}).append($("", { class: "guild-inner" }).append($("").append($("", { class: "avatar-small", id: "tc-settings-button" }))))); settingsPanel = new SettingsPanel(); @@ -84,6 +87,7 @@ Core.prototype.init = function() { quickEmoteMenu.init(false); $("#tc-settings-button").on("click", function(e) { settingsPanel.show(); }); + $("#bd-pub-button").on("click", function(e) { opublicServers.show(); }); } else { setTimeout(gwDefer(), 100); diff --git a/devjs/main.js b/devjs/main.js index 89c04ad4..ddd27dd6 100644 --- a/devjs/main.js +++ b/devjs/main.js @@ -30,7 +30,7 @@ var settings = { "Save logs locally": { "id": "bda-gs-0", "info": "Saves chat logs locally", "implemented":false }, "Public Servers": { "id": "bda-gs-1", "info": "Display public servers", "implemented":false}, "Minimal Mode": { "id": "bda-gs-2", "info": "Hide elements and reduce the size of elements.", "implemented":true}, - "Voidce Mode": { "id": "bda-gs-4", "info": "Only show voice chat", "implemented":true}, + "Voice Mode": { "id": "bda-gs-4", "info": "Only show voice chat", "implemented":true}, "Hide Channels": { "id": "bda-gs-3", "info": "Hide channels in minimal mode", "implemented":true}, "Quick Emote Menu": { "id": "bda-es-0", "info": "Show quick emote menu for adding emotes", "implemented":true }, "FrankerFaceZ Emotes": { "id": "bda-es-1", "info": "Show FrankerFaceZ Emotes", "implemented":true }, @@ -73,6 +73,9 @@ Core.prototype.init = function() { //Incase were too fast function gwDefer() { if($(".guilds-wrapper").size() > 0) { + + + $(".guilds li:first-child").after($("", { css: { "height": "20px" } }).append($("", { class: "guild-inner", css: { "height": "20px" } }).append($("").append($("", { css: { "line-height": "20px" }, text: "public", id: "bd-pub-button" }))))); $(".guilds li:first-child").after($("", {id:"tc-settings-li"}).append($("", { class: "guild-inner" }).append($("").append($("", { class: "avatar-small", id: "tc-settings-button" }))))); settingsPanel = new SettingsPanel(); @@ -84,6 +87,7 @@ Core.prototype.init = function() { quickEmoteMenu.init(false); $("#tc-settings-button").on("click", function(e) { settingsPanel.show(); }); + $("#bd-pub-button").on("click", function(e) { opublicServers.show(); }); } else { setTimeout(gwDefer(), 100); @@ -285,9 +289,13 @@ function PublicServers() { } +SettingsPanel.prototype.getPanel = function() { + return this.container; +} + PublicServers.prototype.init = function() { - var container = $("", { + this.container = $("", { id: "bd-ps-container" }); @@ -304,13 +312,13 @@ PublicServers.prototype.init = function() { text: "X" }).appendTo(header); - header.appendTo(container); + header.appendTo(this.getPanel()); var psbody = $("", { id: "bd-ps-body" }); - psbody.appendTo(container); + psbody.appendTo(this.getPanel()); var table = $("