aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/nativekit.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/nativekit.js b/scripts/nativekit.js
index ffea5f8..846822d 100644
--- a/scripts/nativekit.js
+++ b/scripts/nativekit.js
@@ -1 +1,7 @@
-console.log("Hello World! This app is built using NativeKit") \ No newline at end of file
+// Dropdown Toggle
+
+document.querySelector('.button-dropdown').addEventListener('click', function () {
+ var element = this
+ var id = element.getAttribute('name')
+ document.getElementById(id).classList.toggle("showDropdown");
+}, false);