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

Unified Diff: static/js/main.js

Issue 29558641: Issue 5740 - Implemented new abp.org footer styles (Closed) Base URL: https://bitbucket.org/adblockplus/adblockplus.org
Patch Set: Rebased on body styles Created Oct. 10, 2017, 11:54 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
« no previous file with comments | « static/img/footer-youtube-glyphicon.png ('k') | templates/default.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: static/js/main.js
===================================================================
--- a/static/js/main.js
+++ b/static/js/main.js
@@ -92,34 +92,11 @@
}
function initMenu()
{
if ("querySelector" in document)
document.querySelector("header nav").onclick = navigationClick;
}
- function initFooterSection(section)
- {
- var header = section.getElementsByTagName("h1")[0];
- header.onclick = function()
- {
- toggleClass(section, "visible");
- };
- }
-
- function initFooter()
- {
- var footerContent = document.getElementById("footer-content");
- var footerNav = footerContent.getElementsByTagName("nav")[0];
- var footerNavSections = footerNav.getElementsByTagName("section");
-
- for (var i = 0; i < footerNavSections.length; i++)
- {
- var section = footerNavSections[i];
- initFooterSection(section);
- }
- }
-
initLanguageSelection();
initMenu();
- initFooter();
})();
« no previous file with comments | « static/img/footer-youtube-glyphicon.png ('k') | templates/default.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld