commit 27/10/2025

This commit is contained in:
2025-10-27 16:02:57 +07:00
parent 2986433706
commit 0ef35b2b0c
26 changed files with 1106 additions and 433 deletions

View File

@@ -444,8 +444,15 @@ $(document).ready(function () {
let json = JSON.parse(data);
if (Array.isArray(json) && json.length > 0) {
json.forEach((net) => {
if (result.length > 0) result += "\n"
if (net){
if (net.displayName && net.displayName.length>0){
if (net.ipV4addr && Array.isArray(net.ipV4addr) && net.ipV4addr.length>0){
if (result.length > 0) result += "\n"
result += `${net.displayName} (${net.ipV4addr.join(";")}) TX:${(net.txSpeed / 1024).toFixed(1)} KB/s RX:${(net.rxSpeed / 1024).toFixed(1)} KB/s`
}
}
}
})
} else result = "N/A";
$('#networkstatus').text(result)
@@ -585,6 +592,15 @@ $(document).ready(function () {
}
});
})
$('#filemanagement').click(() => {
sidemenu.hide();
$('#content').load('filemanagement.html', function (response, status, xhr) {
if (status === "success") {
console.log("File Management content loaded successfully");
// pindah ke filemanagement.js
}
});
});
$('#logoutlink').click(() => {
//window.location.href = "login.html"
fetch("/logout", {method: 'GET'})