Prechádzať zdrojové kódy

adds navbar functionality

rosenclosed 2 rokov pred
rodič
commit
f4df7c4731
1 zmenil súbory, kde vykonal 8 pridanie a 0 odobranie
  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';
+    }
+}