diff --git a/css/statbate.css b/css/statbate.css
index b7345d1..6ca56ad 100644
--- a/css/statbate.css
+++ b/css/statbate.css
@@ -83,6 +83,7 @@ a:active {
.content_activity {
flex: 1;
+ min-width: 272px;
min-height: 123px;
position: relative;
border-radius: 4px;
@@ -92,7 +93,7 @@ a:active {
}
.online {
- min-width: 465px;
+ width: 100%;
padding: 4px;
background: #efefef;
border-radius: 4px;
@@ -538,7 +539,7 @@ input[type="search"]::-webkit-search-cancel-button {
@media (max-width: 690px) {
.content_info {
- flex-direction: column-reverse;
+ flex-direction: column;
}
.content_center {
diff --git a/index.html b/index.html
index e5fd98e..ee860f3 100644
--- a/index.html
+++ b/index.html
@@ -156,7 +156,7 @@
- |
+ |
room |
last |
$.day |
diff --git a/js/statbate.js b/js/statbate.js
index 2aae860..cde2c1e 100644
--- a/js/statbate.js
+++ b/js/statbate.js
@@ -88,7 +88,7 @@ function choose() {
}
function showStat() {
- if($('.income_chart').css('display') == 'none'){
+ if($('.income_chart').css('display') == 'none' || page != "main"){
return;
}
income_chart = $('.income_chart').width();
@@ -211,9 +211,20 @@ function createTables(){
{ "searchable": false, "sWidth": "15%" },
{ "searchable": false, "sWidth": "15%" },
];
+
tables["main"] = $('#main').DataTable({...dataTableOptions, aoColumns: aoColumns,});
aoColumns[2]["searchable"] = false;
tables["top100dons"] = $("#top100dons").DataTable({...dataTableOptions, aoColumns: aoColumns,});
+
+ dataTableOptions.order = [[6, "desc"]];
+ aoColumns[1]["sWidth"] = "36%";
+ aoColumns[2]["sWidth"] = "11%";
+ aoColumns[3]["sWidth"] = "11%";
+ aoColumns[4]["sWidth"] = "11%";
+ aoColumns[5]["sWidth"] = "11%";
+ aoColumns[6] = { "searchable": false, "sWidth": "15%" };
+ tables["list1"] = $("#list1").DataTable({...dataTableOptions, aoColumns: aoColumns,});
+
for (const [key] of Object.entries(tables)) {
tables[key]["status"] = (window.innerWidth > 805) ? "desktop" : "mobile";
}
diff --git a/list.html b/list.html
index 7f003b8..2599473 100644
--- a/list.html
+++ b/list.html
@@ -15,6 +15,9 @@
+
@@ -59,9 +62,6 @@
-
-
-
@@ -95,18 +95,55 @@
-
-
+
-
-
+