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

Unified Diff: static/src/js/main.js

Issue 29676691: Issue 6237 - Implement wd navbar component in help.eyeo.com (Closed) Base URL: https://hg.adblockplus.org/help.eyeo.com
Patch Set: Created Jan. 22, 2018, 10:39 a.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/src/js/main.js
===================================================================
--- a/static/src/js/main.js
+++ b/static/src/js/main.js
@@ -23,37 +23,16 @@
/**************************************************************************
* General
**************************************************************************/
// Change html class name from "no-js" to "js"
document.documentElement.className = "js";
/**************************************************************************
- * Navbar
- **************************************************************************/
-
- function toggleNavbarCollapse()
- {
- var navbarCollapseEls = this.parentElement.getElementsByClassName("navbar-collapse");
- for (var i = 0; i < navbarCollapseEls.length; i++)
- {
- navbarCollapseEls[i]
- .classList.toggle("open")
- }
- }
-
- var toggleNavbarCollapseEls = document.getElementsByClassName("toggle-navbar-collapse");
- for (var i = 0; i < toggleNavbarCollapseEls.length; i++)
- {
- toggleNavbarCollapseEls[i]
- .addEventListener("click", toggleNavbarCollapse, false);
- }
-
- /**************************************************************************
* CustomSelect
**************************************************************************/
function CustomSelect(select)
{
this.select = select;
this.close();
this.select

Powered by Google App Engine
This is Rietveld