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 svgs, Implement search, Show searchbar for no-js Created July 17, 2017, 9:24 a.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.getElementById('toggle-searchform').addEventListener('click', funct ion(e) {
9 e.preventDefault();
10 document.getElementById('site-search').classList.toggle('open');
11 }, false);
12 }, false);
13 }());
OLDNEW

Powered by Google App Engine
This is Rietveld