iiab-tools/android/dashboard/views/index.ejs

42 lines
1.5 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IIAB-oA | Dashboard</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="/css/dashboard.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script>
const socket = io();
function switchTab(tabName) {
document.querySelectorAll('.nav-link').forEach(el => el.classList.remove('active'));
document.querySelectorAll('.app-panel').forEach(el => el.classList.add('hidden-section'));
document.getElementById(`tab-${tabName}`).classList.add('active');
document.getElementById(`panel-${tabName}`).classList.remove('hidden-section');
}
document.addEventListener("DOMContentLoaded", () => {
switchTab('home');
});
</script>
</head>
<body class="bg-dark text-light">
<div class="container-fluid">
<div class="row">
<%- include('./components/sidebar') %>
<div class="col-md-9 col-lg-10 p-4">
<%- include('./components/app_home') %>
<%- include('./components/app_maps') %>
<%- include('./components/app_kiwix') %>
</div>
</div>
</div>
</body>
</html>