| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/vhost/itms.arukustech.com/public/js-not-using/ |
Upload File : |
// app.js - base UI helpers
document.addEventListener("DOMContentLoaded", function () {
console.log("IT Asset Manager Loaded");
// Auto-hide alerts
document.querySelectorAll('.auto-close-alert').forEach(alert => {
setTimeout(() => alert.style.display = 'none', 3000);
});
});
// Helper: AJAX loader toggle
function showLoader() {
const loader = document.createElement("div");
loader.id = "ajaxLoader";
loader.style.position = "fixed";
loader.style.top = "0";
loader.style.left = "0";
loader.style.width = "100%";
loader.style.height = "100%";
loader.style.background = "rgba(255,255,255,0.6)";
loader.style.zIndex = "9999";
loader.innerHTML = '<div style="position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)">Loading...</div>';
document.body.appendChild(loader);
}
function hideLoader() {
const el = document.getElementById("ajaxLoader");
if (el) el.remove();
}