Public servers
This commit is contained in:
parent
ec89afe953
commit
32110e8c9c
|
@ -28,9 +28,9 @@ var bttvEmoteUrlEnd = "";
|
|||
|
||||
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},
|
||||
"Public Servers": { "id": "bda-gs-1", "info": "BETA : Display public servers button", "implemented":true},
|
||||
"Minimal Mode": { "id": "bda-gs-2", "info": "Hide elements and reduce the size of elements.", "implemented":true},
|
||||
"Voice 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 },
|
||||
|
@ -75,7 +75,7 @@ Core.prototype.init = function() {
|
|||
if($(".guilds-wrapper").size() > 0) {
|
||||
|
||||
|
||||
$(".guilds li:first-child").after($("<li/>", { css: { "height": "20px" } }).append($("<div/>", { class: "guild-inner", css: { "height": "20px" } }).append($("<a/>").append($("<div/>", { css: { "line-height": "20px" }, text: "public", id: "bd-pub-button" })))));
|
||||
$(".guilds li:first-child").after($("<li/>", { id: "bd-pub-li", css: { "height": "20px", "display": settingsCookie["bda-gs-1"] == true ? "" : "none" } }).append($("<div/>", { class: "guild-inner", css: { "height": "20px" } }).append($("<a/>").append($("<div/>", { css: { "line-height": "20px" }, text: "public", id: "bd-pub-button" })))));
|
||||
$(".guilds li:first-child").after($("<li/>", {id:"tc-settings-li"}).append($("<div/>", { class: "guild-inner" }).append($("<a/>").append($("<div/>", { class: "avatar-small", id: "tc-settings-button" })))));
|
||||
|
||||
settingsPanel = new SettingsPanel();
|
||||
|
|
|
@ -28,9 +28,9 @@ var bttvEmoteUrlEnd = "";
|
|||
|
||||
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},
|
||||
"Public Servers": { "id": "bda-gs-1", "info": "BETA : Display public servers button", "implemented":true},
|
||||
"Minimal Mode": { "id": "bda-gs-2", "info": "Hide elements and reduce the size of elements.", "implemented":true},
|
||||
"Voice 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 },
|
||||
|
@ -75,7 +75,7 @@ Core.prototype.init = function() {
|
|||
if($(".guilds-wrapper").size() > 0) {
|
||||
|
||||
|
||||
$(".guilds li:first-child").after($("<li/>", { css: { "height": "20px" } }).append($("<div/>", { class: "guild-inner", css: { "height": "20px" } }).append($("<a/>").append($("<div/>", { css: { "line-height": "20px" }, text: "public", id: "bd-pub-button" })))));
|
||||
$(".guilds li:first-child").after($("<li/>", { id: "bd-pub-li", css: { "height": "20px", "display": settingsCookie["bda-gs-1"] == true ? "" : "none" } }).append($("<div/>", { class: "guild-inner", css: { "height": "20px" } }).append($("<a/>").append($("<div/>", { css: { "line-height": "20px" }, text: "public", id: "bd-pub-button" })))));
|
||||
$(".guilds li:first-child").after($("<li/>", {id:"tc-settings-li"}).append($("<div/>", { class: "guild-inner" }).append($("<a/>").append($("<div/>", { class: "avatar-small", id: "tc-settings-button" })))));
|
||||
|
||||
settingsPanel = new SettingsPanel();
|
||||
|
@ -612,6 +612,11 @@ SettingsPanel.prototype.handler = function(e){
|
|||
} else {
|
||||
$("body").removeClass("bd-minimal-chan");
|
||||
}
|
||||
if(settingsCookie["bda-gs-1"]) {
|
||||
$("#bd-pub-li").show();
|
||||
} else {
|
||||
$("#bd-pub-li").hide();
|
||||
}
|
||||
|
||||
mainCore.saveSettings();
|
||||
}
|
||||
|
|
|
@ -18,7 +18,10 @@ PublicServers.prototype.getPanel = function() {
|
|||
PublicServers.prototype.init = function() {
|
||||
|
||||
this.container = $("<div/>", {
|
||||
id: "bd-ps-container"
|
||||
id: "bd-ps-container",
|
||||
css: {
|
||||
"display": "none"
|
||||
}
|
||||
});
|
||||
|
||||
var header = $("<div/>", {
|
||||
|
|
|
@ -115,6 +115,11 @@ SettingsPanel.prototype.handler = function(e){
|
|||
} else {
|
||||
$("body").removeClass("bd-minimal-chan");
|
||||
}
|
||||
if(settingsCookie["bda-gs-1"]) {
|
||||
$("#bd-pub-li").show();
|
||||
} else {
|
||||
$("#bd-pub-li").hide();
|
||||
}
|
||||
|
||||
mainCore.saveSettings();
|
||||
}
|
Loading…
Reference in New Issue