authsquare/app/templates/prime/html/index.html

39 lines
1.7 KiB
HTML
Raw Permalink Normal View History

2024-09-26 12:25:27 +07:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>${title}</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="/templates/prime/css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
<link href="https://cdn.datatables.net/1.13.5/css/dataTables.bootstrap5.min.css" rel="stylesheet">
</head>
<body class="d-flex flex-column">
${navbar}
${sidebar}
<div class="content flex-grow-1" id="content">
${container}
</div>
${footer}
<button class="sidebar-toggle" id="sidebarToggle">
&#9776;<span>Menu</span>
</button>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
document.getElementById('sidebarToggle').addEventListener('click', function() {
var sidebar = document.getElementById('sidebar');
var content = document.getElementById('content');
var footer = document.getElementById('footer');
if (window.innerWidth <= 768) {
sidebar.classList.toggle('show');
} else {
sidebar.classList.toggle('minimized');
content.classList.toggle('full-width');
footer.classList.toggle('full-width');
}
});
</script>
</body>
</html>