mirror of
https://github.com/statbate/layout.git
synced 2026-08-11 03:12:42 +00:00
update
This commit is contained in:
parent
7716821078
commit
e84e8ecd2b
6 changed files with 66 additions and 17 deletions
4
css/bootstrap.min.css
vendored
4
css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -360,6 +360,9 @@ table.dataTable {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 805px) {
|
@media (max-width: 805px) {
|
||||||
|
.dataTables_paginate,
|
||||||
|
.dataTables_info,
|
||||||
|
.dataTables_length,
|
||||||
.income_chart,
|
.income_chart,
|
||||||
.content_nav,
|
.content_nav,
|
||||||
.header {
|
.header {
|
||||||
|
|
@ -383,6 +386,21 @@ table.dataTable {
|
||||||
.content_table {
|
.content_table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dataTables_filter label {
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control-sm[type=search] {
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.dataTables_wrapper div.dataTables_filter input {
|
||||||
|
margin-left: 0 !important;
|
||||||
|
}
|
||||||
|
.col-md-6 {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (any-hover: hover) {
|
@media (any-hover: hover) {
|
||||||
|
|
|
||||||
10
index.html
10
index.html
|
|
@ -236,7 +236,6 @@
|
||||||
<script src="./js/jquery-3.7.0.min.js"></script>
|
<script src="./js/jquery-3.7.0.min.js"></script>
|
||||||
<script src="./js/d3.min.js"></script>
|
<script src="./js/d3.min.js"></script>
|
||||||
<script src="./js/metricsgraphics.min.js"></script>
|
<script src="./js/metricsgraphics.min.js"></script>
|
||||||
|
|
||||||
<script src="./js/jquery.dataTables.min.js"></script>
|
<script src="./js/jquery.dataTables.min.js"></script>
|
||||||
<script src="./js/bootstrap.bundle.min.js"></script>
|
<script src="./js/bootstrap.bundle.min.js"></script>
|
||||||
<script src="./js/dataTables.bootstrap5.min.js"></script>
|
<script src="./js/dataTables.bootstrap5.min.js"></script>
|
||||||
|
|
@ -244,15 +243,6 @@
|
||||||
<script src="./js/statbate.js"></script>
|
<script src="./js/statbate.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('.dropdown-menu').on( 'click', 'a', function() {
|
|
||||||
text = $(this).html();
|
|
||||||
htmlText = text + ' <span class="caret"></span>';
|
|
||||||
$(this).closest('.dropdown').find('.dropdown-toggle').html(htmlText);
|
|
||||||
});
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
|
||||||
$('#main').DataTable();
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
4
js/bootstrap.bundle.min.js
vendored
4
js/bootstrap.bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,6 @@
|
||||||
var mobile = false;
|
var mobile = false;
|
||||||
var income_chart = false;
|
var income_chart = false;
|
||||||
|
var tables = [];
|
||||||
|
|
||||||
window.addEventListener("resize", function() {
|
window.addEventListener("resize", function() {
|
||||||
if(window.innerWidth > 805){
|
if(window.innerWidth > 805){
|
||||||
|
|
@ -11,7 +12,34 @@ window.addEventListener("resize", function() {
|
||||||
if(!income_chart){
|
if(!income_chart){
|
||||||
showStat();
|
showStat();
|
||||||
}
|
}
|
||||||
|
if(tables["main"]["status"] == "mobile"){
|
||||||
|
tables["main"]["status"] = "desktop";
|
||||||
|
tables["main"].page.len(10).draw();
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(tables["main"]["status"] == "desktop"){
|
||||||
|
tables["main"]["status"] = "mobile";
|
||||||
|
tables["main"].page.len(100).draw();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var dataTableOptions = {
|
||||||
|
bAutoWidth: false,
|
||||||
|
oLanguage: {
|
||||||
|
sLengthMenu: "Show _MENU_ entries",
|
||||||
|
sSearch: "",
|
||||||
|
sSearchPlaceholder: "Search",
|
||||||
|
},
|
||||||
|
pagingType: 'simple_numbers', // or numbers
|
||||||
|
iDisplayLength: 10,
|
||||||
|
order: [[5, "desc"]],
|
||||||
|
};
|
||||||
|
|
||||||
|
$('.dropdown-menu').on( 'click', 'a', function() {
|
||||||
|
text = $(this).html();
|
||||||
|
htmlText = text + ' <span class="caret"></span>';
|
||||||
|
$(this).closest('.dropdown').find('.dropdown-toggle').html(htmlText);
|
||||||
});
|
});
|
||||||
|
|
||||||
function choose() {
|
function choose() {
|
||||||
|
|
@ -131,12 +159,25 @@ function statbate() {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
msgs = {
|
function createTables(){
|
||||||
arr: [],
|
tables["main"] = $('#main').DataTable({...dataTableOptions,});
|
||||||
|
tables["main"]["status"] = "mobile";
|
||||||
|
if(window.innerWidth > 805){
|
||||||
|
tables["main"]["status"] = "desktop";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
msgs = {arr: [],};
|
||||||
|
|
||||||
|
|
||||||
|
//oTable.page.len(100).draw();
|
||||||
|
|
||||||
statbate();
|
statbate();
|
||||||
showStat();
|
showStat();
|
||||||
|
|
||||||
console.log('Debug https://statbate.com/debug.php');
|
console.log('Debug https://statbate.com/debug.php');
|
||||||
console.log('Statbate is open source project (https://github.com/statbate)');
|
console.log('Statbate is open source project (https://github.com/statbate)');
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
createTables();
|
||||||
|
});
|
||||||
|
|
|
||||||
0
js/statbate.tables.js
Normal file
0
js/statbate.tables.js
Normal file
Loading…
Add table
Add a link
Reference in a new issue