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

Unified Diff: static/js/main.js

Issue 29485575: Issue 5385 - Create Site Header Component for Help Center (Closed)
Patch Set: Created July 10, 2017, 4:08 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
Index: static/js/main.js
===================================================================
new file mode 100644
--- /dev/null
+++ b/static/js/main.js
@@ -0,0 +1,9 @@
+(function(){
+ document.addEventListener("DOMContentLoaded", function()
+ {
+ document.getElementById('toggle-searchform').addEventListener('click', function(e) {
+ e.preventDefault();
+ document.getElementById('site-search').classList.toggle('open');
juliandoucette 2017/07/14 14:11:29 I don't remember if we agreed upon browser require
ire 2017/07/17 09:25:54 It was my impression the support was ie 9 and up a
+ }, false);
+ }, false);
+}());

Powered by Google App Engine
This is Rietveld