parent
42cea45430
commit
52cec81afb
15
js/main.js
15
js/main.js
|
@ -420,16 +420,27 @@ PublicServers.prototype.addServer = function(name, code, title, language, descri
|
|||
text: language
|
||||
}));
|
||||
|
||||
tr.append(desc);
|
||||
|
||||
tr.append($("<button/>", {
|
||||
text: "Join",
|
||||
css: {
|
||||
"width": "100%",
|
||||
"height": "30px",
|
||||
"display": "block",
|
||||
"margin-top": "10px",
|
||||
"background-color": "#36393E",
|
||||
"border": "1px solid #404040",
|
||||
"outline": "1px solid #000",
|
||||
"color": "#EDEDED"
|
||||
},
|
||||
click: function() { self.joinServer(code); }
|
||||
}));
|
||||
|
||||
tr.append(desc);
|
||||
|
||||
tableBody.append(tr);
|
||||
};
|
||||
|
||||
|
||||
PublicServers.prototype.show = function() {
|
||||
this.getPanel().toggle();
|
||||
var li = $("#bd-pub-li");
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -124,14 +124,24 @@ PublicServers.prototype.addServer = function(name, code, title, language, descri
|
|||
tr.append($("<td/>", {
|
||||
text: language
|
||||
}));
|
||||
|
||||
tr.append($("<button/>", {
|
||||
text: "Join",
|
||||
click: function() { self.joinServer(code); }
|
||||
}));
|
||||
|
||||
tr.append(desc);
|
||||
|
||||
tr.append($("<button/>", {
|
||||
text: "Join",
|
||||
css: {
|
||||
"width": "100%",
|
||||
"height": "30px",
|
||||
"display": "block",
|
||||
"margin-top": "10px",
|
||||
"background-color": "#36393E",
|
||||
"border": "1px solid #404040",
|
||||
"outline": "1px solid #000",
|
||||
"color": "#EDEDED"
|
||||
},
|
||||
click: function() { self.joinServer(code); }
|
||||
}));
|
||||
|
||||
tableBody.append(tr);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue