Explorar o código

adds navbar functionality

rosenclosed %!s(int64=2) %!d(string=hai) anos
pai
achega
f4df7c4731
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      src/script/site.js

+ 8 - 0
src/script/site.js

@@ -0,0 +1,8 @@
+function updatemenu() {
+    if (document.getElementById('responsive-menu').checked == true) {
+        document.getElementById('menu').style.borderBottomRightRadius = '0';
+        document.getElementById('menu').style.borderBottomLeftRadius = '0';
+    } else {
+        document.getElementById('menu').style.borderRadius = '30px';
+    }
+}