Download script.js from Mono9992/knowledge-navigator-navigator: direct link, hf CLI and curl.
- Browser
- Download file 652 Bytes
-
https://huggingface.co/spaces/Mono9992/knowledge-navigator-navigator/resolve/main/script.js
- Command line
-
hf download hf://spaces/Mono9992/knowledge-navigator-navigator/script.js
-
curl -L -o script.js https://huggingface.co/spaces/Mono9992/knowledge-navigator-navigator/resolve/main/script.js
652 Bytes
| class CustomNavbar extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| .navbar { | |
| transition: background-color 0.3s ease; | |
| } | |
| .nav-link:hover { | |
| color: #6366f1; | |
| } | |
| </style> | |
| <nav class="navbar bg-white shadow-sm py-4 px-6"> | |
| <div class="container mx-auto flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <i data-feather="book" class="w-6 h-6 text-indigo-600 mr-2"></i> | |
| </div> | |
| </div> | |
| </nav> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-navbar', CustomNavbar); |