File Manager
Editing: header.php
//for blogs <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>header</title> </head> <body> <nav> <div class="topro"> <div class="title">e!zon</div> <input type="text" id="search" placeholder="Search anything..." onkeyup="liveSearch()"> <div class="nav"> <span class="open-btn" onclick="openNav()">☰</span> </div> </div> <div id="myNav" class="overlay"> <a href="javascript:void(0)" class="close-btn" onclick="closeNav()">×</a> <div class="overlay-content"> <a href="../index.php">Home</a> <div class="categs"> <h4>Categories</h4> <a href="allproducts.php?">All Categories</a> <a href="allproducts.php?category=Electronics">Electronics</a> <a href="allproducts.php?category=Fashion and Beauty">Fashion & Beauty</a> <a href="allproducts.php?category=Home Accessories">Home Accessories</a> <a href="allproducts.php?category=Decorations">Decorations</a> <a href="allproducts.php?category=Food and Nutrition">Food & Nutrition</a> <a href="allproducts.php?category=Services">Services</a> <a href="allproducts.php?category=transport">transport</a> <a href="allproducts.php?category=Other">Other</a> </div> <a href="add_request.php">Request a product</a> <a href="requests_page.php">See product requests</a> <a href="#">About Us</a> <button style="background-color: orange;border: none;border-radius: 5px;padding: 9px 4px;"> <a href="/addproduct.php">SELL ON EIZON NOW !</a> </button> </div> </div> <div id="result" class="search-result"></div> </nav> <script> function openNav() { document.getElementById("myNav").style.width = "250px"; } function closeNav() { document.getElementById("myNav").style.width = "0"; } // Close the navigation menu when clicking outside of it document.addEventListener("click", function (event) { const nav = document.getElementById("myNav"); const openButton = document.querySelector(".open-btn"); // Assuming you have a button to open the nav // Check if the click is outside the nav and not on the open button if (!nav.contains(event.target) && !openButton.contains(event.target)) { closeNav(); } }); </script> </body> </html>
💾 Save
⬅ Back