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

Unified Diff: static/js/main.js

Issue 29588576: Issue 5635 - Implement website-default navbar component (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Created Oct. 25, 2017, 10:02 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
« pages/navbar.md ('K') | « pages/navbar.md ('k') | static/js/navbar.js » ('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,14 @@
+(function()
+{
+ document.addEventListener("DOMContentLoaded", function()
+ {
+
+ /**************************************************************************
+ * General
+ **************************************************************************/
+
+ // Change html class name from "no-js" to "js"
+ document.documentElement.className = "js";
+
+ }, false);
+}());
« pages/navbar.md ('K') | « pages/navbar.md ('k') | static/js/navbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld