Index: static/js/main.js |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/static/js/main.js |
@@ -0,0 +1,13 @@ |
+(function(){ |
+ document.addEventListener("DOMContentLoaded", function() |
+ { |
+ |
+ // Change html class name from "no-js" to "js" |
+ document.documentElement.className = "js"; |
+ |
+ document.getElementById('toggle-search-form').addEventListener('click', function(e) { |
+ e.preventDefault(); |
+ document.getElementById('site-search').classList.toggle('open'); |
+ }, false); |
+ }, false); |
+}()); |