Remove category visibility controller
This commit is contained in:
parent
d7e3ebc127
commit
aecb45fe07
@ -72,11 +72,6 @@ a {
|
|||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Category controls */
|
|
||||||
#category-controller {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Footer */
|
/* Footer */
|
||||||
#footer {
|
#footer {
|
||||||
width: 1540px;
|
width: 1540px;
|
||||||
|
@ -35,14 +35,6 @@
|
|||||||
<p class="text-uppercase">Source code available on <a href="https://github.com/Cryptkeeper/Minetrack">Github</a></p>
|
<p class="text-uppercase">Source code available on <a href="https://github.com/Cryptkeeper/Minetrack">Github</a></p>
|
||||||
<p class="text-uppercase">Made with <span style="color: #e74c3c;">♥</span> by <a href="http://cryptkpr.me">Cryptkeeper</a></p>
|
<p class="text-uppercase">Made with <span style="color: #e74c3c;">♥</span> by <a href="http://cryptkpr.me">Cryptkeeper</a></p>
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<div id="category-controller">
|
|
||||||
|
|
||||||
<a class="text-uppercase" onclick="setCategoriesVisible(true);">Show Categories</a> // <a class="text-uppercase" onclick="setCategoriesVisible(false);">Hide Categories</a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -228,8 +228,6 @@ $(document).ready(function() {
|
|||||||
$('#big-graph-checkboxes').html('');
|
$('#big-graph-checkboxes').html('');
|
||||||
$('#big-graph-controls').css('display', 'none');
|
$('#big-graph-controls').css('display', 'none');
|
||||||
|
|
||||||
$('#category-controller').css('display', 'none');
|
|
||||||
|
|
||||||
$("#stat_totalPlayers").text(0);
|
$("#stat_totalPlayers").text(0);
|
||||||
$("#stat_networks").text(0);
|
$("#stat_networks").text(0);
|
||||||
|
|
||||||
@ -316,10 +314,6 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
socket.on('add', function(servers) {
|
socket.on('add', function(servers) {
|
||||||
if (Object.keys(publicConfig.categories).length > 1) {
|
|
||||||
$('#category-controller').css('display', 'block');
|
|
||||||
}
|
|
||||||
|
|
||||||
for (var i = 0; i < servers.length; i++) {
|
for (var i = 0; i < servers.length; i++) {
|
||||||
var history = servers[i];
|
var history = servers[i];
|
||||||
var listing = [];
|
var listing = [];
|
||||||
|
@ -16,16 +16,13 @@ function setPublicConfig(json) {
|
|||||||
createdCategories = false;
|
createdCategories = false;
|
||||||
|
|
||||||
createCategories();
|
createCategories();
|
||||||
setCategoriesVisible(publicConfig.categoriesVisible);
|
|
||||||
}
|
|
||||||
|
|
||||||
function setCategoriesVisible(newCategoriesVisible) {
|
if (publicConfig.categoriesVisible) {
|
||||||
categoriesVisible = newCategoriesVisible;
|
$('.category-header').css('display', 'block');
|
||||||
|
$('.server-container').css('margin', '10px auto');
|
||||||
|
|
||||||
$('.category-header').css('display', (categoriesVisible ? 'block' : 'none'));
|
sortServers();
|
||||||
$('.server-container').css('margin', (categoriesVisible ? '10px auto' : '0 auto'));
|
}
|
||||||
|
|
||||||
sortServers();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function createCategories() {
|
function createCategories() {
|
||||||
|
Loading…
Reference in New Issue
Block a user