Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: static/js/main.js

Issue 29516622: Issue 5511 - Create Product Help Home Template for help.eyeo.com (Closed) Base URL: https://hg.adblockplus.org/help.eyeo.com
Patch Set: Addressed first comments Created Aug. 28, 2017, 2:51 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « static/img/svg/settings-icon.svg ('k') | static/scss/base/_font.scss » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+}());
« no previous file with comments | « static/img/svg/settings-icon.svg ('k') | static/scss/base/_font.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld