about summary refs log tree commit diff
path: root/users/wpcarro/website/fragments/addendum.html
diff options
context:
space:
mode:
Diffstat (limited to 'users/wpcarro/website/fragments/addendum.html')
-rw-r--r--users/wpcarro/website/fragments/addendum.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/users/wpcarro/website/fragments/addendum.html b/users/wpcarro/website/fragments/addendum.html
new file mode 100644
index 000000000000..9623db9bf91e
--- /dev/null
+++ b/users/wpcarro/website/fragments/addendum.html
@@ -0,0 +1,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>