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

Side by Side Diff: static/js/main.js

Issue 29485575: Issue 5385 - Create Site Header Component for Help Center (Closed)
Patch Set: Fix alignment of search form, reformat JS Created Aug. 22, 2017, 12:14 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 (function(){
2 document.addEventListener("DOMContentLoaded", function()
3 {
4
5 // Change html class name from "no-js" to "js"
6 document.documentElement.className = "js";
7
8 document
juliandoucette 2017/08/23 14:39:04 If you agree with my comments elsewhere then I thi
ire 2017/08/25 08:27:07 Done.
9 .getElementById("toggle-search-form")
10 .addEventListener("click", function(e) {
11 e.preventDefault();
12 document
13 .getElementById("site-search")
14 .classList.toggle("open");
15 }, false);
16
17 }, false);
18 }());
OLDNEW

Powered by Google App Engine
This is Rietveld