fix: my skill issue and git

This commit is contained in:
Namonay 2024-04-01 02:04:57 +02:00
parent cdc6a88c50
commit 361eae73f0
2 changed files with 2 additions and 4 deletions

View File

@ -138,9 +138,8 @@ window.addEventListener("popstate", function() {router(location.pathname);});
document.addEventListener("DOMContentLoaded", async () => {
document.body.addEventListener("click", e => {
if (e.target.matches("[data-link]")) {
e.preventDefault();
document.querySelector('[data-link].nav-link.active')?.classList.remove('active');
if (e.target.classList.contains('nav-link')) {
document.querySelector('[data-link].active')?.classList.remove('active');
if (e.target.classList.contains('nav-link'))
e.target.classList.add('active');
navigateTo(e.target.href.slice(location.origin.length));

View File

@ -7,7 +7,6 @@
<title>Bozo Pong</title>
<link rel="stylesheet" href="{% static 'css/bootstrap/bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'css/index.css' %}">
<link rel="stylesheet" href="{% static 'css/index.css' %}">
</head>
<body data-bs-theme="dark">
<nav class="navbar navbar-expand-lg bg-body-tertiary rounded m-2">