about summary refs log tree commit diff
path: root/users/wpcarro/website/fragments/addendum.html
blob: 9623db9bf91ecba1876918932b2286c0e9fe220a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
    </div>
    <script>
      const $header = document.querySelector("header");
      const dropShadow = "drop-shadow-md";
      const update = () => window.scrollY !== 0 ?
        $header.classList.add(dropShadow) :
        $header.classList.remove(dropShadow);

      update();
      document.addEventListener("scroll", update);
    </script>
  </body>
</html>