Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="en">
- <head>
- <title>Title</title>
- <!-- Required meta tags -->
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <!-- Bootstrap CSS v5.3.0 -->
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"
- integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM"
- crossorigin="anonymous">
- </head>
- <body>
- <!-- per centrare il menu con margini -->
- <!-- <div class="container"> -->
- <nav class=" fixed-bottom navbar navbar-expand-lg bg-dark border-bottom border-bottom-dark" data-bs-theme="dark" >
- <!-- <a class="navbar-brand" href="#">
- <img src="torta.svg" width="50">
- <span class="text-success fw-bolder">Pie Paradise</span>
- </a> -->
- <!-- <span class="navbar-brand text-success fw-bolder">Pie Paradise</span> -->
- <img class="navbar-brand" src="torta.svg" width="50">
- <button class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#navBar">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navBar">
- <ul class="navbar-nav">
- <li class="nav-item"> <a href="#" class="nav-link">Home</a> </li>
- <li class="nav-item"> <a href="#" class="nav-link">File</a> </li>
- <li class="nav-item dropdown">
- <a role="button" data-bs-toggle="dropdown"
- href="yt_05_menu.html" class="nav-link">Modifica</a>
- <ul class="dropdown-menu">
- <li><a class="dropdown-item" href="#">Copia</a></li>
- <li><a class="dropdown-item" href="#">Incolla</a></li>
- <li><hr class="dropdown-divider"></li>
- <li><a class="dropdown-item" href="#">Elimina</a></li>
- </ul>
- </li>
- <li class="nav-item"> <a href="#" class="nav-link">Strumenti</a> </li>
- <li class="nav-item"> <a href="#" class="nav-link">Contatti</a> </li>
- </ul>
- </div>
- <form class="d-md-inline-flex me-2">
- <input class="form-control me-2" type="search" placeholder="Cerca" >
- <button class="btn btn-outline-success" type="submit">Cerca</button>
- </form>
- </nav>
- <nav class="navbar bg-body-tertiary fixed-top">
- <div class="container-fluid">
- <a class="navbar-brand" href="#">Offcanvas navbar</a>
- <button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasNavbar" aria-controls="offcanvasNavbar" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasNavbar" aria-labelledby="offcanvasNavbarLabel">
- <div class="offcanvas-header">
- <h5 class="offcanvas-title" id="offcanvasNavbarLabel">Offcanvas</h5>
- <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
- </div>
- <div class="offcanvas-body">
- <ul class="navbar-nav justify-content-end flex-grow-1 pe-3">
- <li class="nav-item">
- <a class="nav-link active" aria-current="page" href="#">Home</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="#">Link</a>
- </li>
- <li class="nav-item dropdown">
- <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
- Dropdown
- </a>
- <ul class="dropdown-menu">
- <li><a class="dropdown-item" href="#">Action</a></li>
- <li><a class="dropdown-item" href="#">Another action</a></li>
- <li>
- <hr class="dropdown-divider">
- </li>
- <li><a class="dropdown-item" href="#">Something else here</a></li>
- </ul>
- </li>
- </ul>
- <form class="d-flex mt-3" role="search">
- <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
- <button class="btn btn-outline-success" type="submit">Search</button>
- </form>
- </div>
- </div>
- </div>
- </nav>
- <!-- per centrare il menu con margini -->
- <!-- </div> -->
- <!-- Bootstrap JavaScript Libraries -->
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
- integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
- crossorigin="anonymous"></script>
- <script>
- const pagina = document.URL.substring(document.URL.lastIndexOf('/')+1);
- const link_da_attivare = document.querySelector("a[href='"+pagina+"']");
- link_da_attivare.classList.add("active");
- </script
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement