changes
This commit is contained in:
15
views/partials/nav.ejs
Normal file
15
views/partials/nav.ejs
Normal file
@@ -0,0 +1,15 @@
|
||||
<!-- views/partials/nav.ejs -->
|
||||
<nav class="navbar">
|
||||
<div class="menu-icon" id="menu-icon">
|
||||
<!-- The "three lines" hamburger icon -->
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</div>
|
||||
|
||||
<ul class="nav-links" id="nav-links">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/about">Aboot</a></li>
|
||||
<li><a href="/contact">Contact</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
@@ -5,6 +5,7 @@
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<%- include('partials/nav') %>
|
||||
<div id="QRShow" class="modal">
|
||||
<div id="QRBackground" class="modal-content">
|
||||
<p id="QRBanner">Generating QR Code...</p>
|
||||
@@ -36,6 +37,17 @@
|
||||
</table>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const menuIcon = document.getElementById('menu-icon');
|
||||
const navLinks = document.getElementById('nav-links');
|
||||
|
||||
menuIcon.addEventListener('click', function() {
|
||||
navLinks.classList.toggle('active');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// JavaScript to change the form element
|
||||
const blankimage=document.getElementById("QRCodeImage").src;
|
||||
console.log("Blank is ",blankimage);
|
||||
|
||||
Reference in New Issue
Block a user