Albisrieden/admin/includes/footer.php

91 lines
3.0 KiB
PHP
Raw Normal View History

2025-01-07 04:13:11 +01:00
</div>
</div>
</div>
<script src="../assets/js/sidebarmenu.js"></script>
<script src="../assets/js/app.min.js"></script>
<script src="../assets/libs/simplebar/dist/simplebar.js"></script>
<script src="../assets/js/dashboard.js"></script>
<script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-lite.min.js"></script>
<script src="../assets/summernote-0.8.18-dist/lang/summernote-de-DE.js"></script>
<script>
$(document).ready(function() {
$("#summernote").summernote({
lang: 'de-DE'
});
});
</script>
<script>
var sortAscending = true;
function myFunction() {
// Declare variables
var input, filter, table, tr, td, i, txtValue;
input = document.getElementById("myInput");
filter = input.value.toUpperCase();
table = document.getElementById("sortTable");
tr = table.getElementsByTagName("tbody")[0].getElementsByTagName("tr");
// Loop through all table rows in tbody, and hide those who don't match the search query
for (i = 0; i < tr.length; i++) {
td = tr[i];
if (td) {
txtValue = td.textContent || td.innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
tr[i].style.display = "";
} else {
tr[i].style.display = "none";
}
}
}
}
function sortTable(columnIndex) {
var table, rows, switching, i, x, y, shouldSwitch;
table = document.getElementById("sortTable");
switching = true;
while (switching) {
switching = false;
rows = table.rows;
for (i = 1; i < (rows.length - 1); i++) {
shouldSwitch = false;
x = rows[i].getElementsByTagName("td")[columnIndex];
y = rows[i + 1].getElementsByTagName("td")[columnIndex];
var xValue = x.innerHTML.toLowerCase();
var yValue = y.innerHTML.toLowerCase();
if (sortAscending) {
if (xValue > yValue) {
shouldSwitch = true;
break;
}
} else {
if (xValue < yValue) {
shouldSwitch = true;
break;
}
}
}
if (shouldSwitch) {
rows[i].parentNode.insertBefore(rows[i + 1], rows[i]);
switching = true;
}
}
sortAscending = !sortAscending;
}
</script>
<script>
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl))
const popoverTriggerList = document.querySelectorAll('[data-bs-toggle="popover"]')
const popoverList = [...popoverTriggerList].map(popoverTriggerEl => new bootstrap.Popover(popoverTriggerEl))
</script>
</body>
</html>