Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

633201 Views

Latest files of /cody/atherosai/ui/sidebar-04

assets/ cody/atherosai/ui/sidebar-04/assets/
5 Items
  • left-collapse.svg
  • logo-small.png
  • logo.png
  • right-collapse.svg
  • diamond.png
  • style.css cody/atherosai/ui/sidebar-04/style.css
    93 Views
    0 Comments

    :root {
    --primary-color: #272727;
    --text: white;
    --background: #F4F5FC;
    --sidebar-gray-background: #DCE1EB;
    --red: #F55E5E;
    --item-hover: #F0F0F0;
    index.html cody/atherosai/ui/sidebar-04/index.html
    306 Views
    0 Comments

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <title>Sidebar</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    script.js cody/atherosai/ui/sidebar-04/script.js
    162 Views
    0 Comments

    const expand_btn = document.querySelector(".expand-btn");
    const img = expand_btn.querySelector("img");

    let activeIndex;

    expand_btn.addEventListener("click", () => {
    document.body.classList.toggle("collapsed");