From d1bb670cb3c8d1d4cc277cbff0438bbe6da5ccfe Mon Sep 17 00:00:00 2001 From: Israel Roldan Date: Sat, 15 Jul 2017 16:42:26 +0200 Subject: [PATCH] Fix obsolete references to nav- components (#869) --- docs/documentation/components/navbar.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/documentation/components/navbar.html b/docs/documentation/components/navbar.html index 32cb32a51..db206e3d4 100644 --- a/docs/documentation/components/navbar.html +++ b/docs/documentation/components/navbar.html @@ -354,21 +354,21 @@ doc-subtab: navbar {% capture navbar_js_code %} document.addEventListener('DOMContentLoaded', function () { - // Get all "nav-burger" elements - var $navBurgers = Array.prototype.slice.call(document.querySelectorAll('.nav-burger'), 0); + // Get all "navbar-burger" elements + var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0); // Check if there are any nav burgers - if ($navBurgers.length > 0) { + if ($navbarBurgers.length > 0) { // Add a click event on each of them - $navBurgers.forEach(function ($el) { + $navbarBurgers.forEach(function ($el) { $el.addEventListener('click', () => { // Get the target from the "data-target" attribute var target = $el.dataset.target; var $target = document.getElementById(target); - // Toggle the class on both the "nav-burger" and the "nav-menu" + // Toggle the class on both the "navbar-burger" and the "navbar-menu" $el.classList.toggle('is-active'); $target.classList.toggle('is-active'); @@ -578,7 +578,7 @@ document.addEventListener('DOMContentLoaded', function () {

The Bulma package does not come with any JavaScript.
- Here is however an implementation example, which toggles the class is-active on both the nav-burger and the targeted nav-menu. + Here is however an implementation example, which toggles the class is-active on both the navbar-burger and the targeted navbar-menu.

{% highlight html %}{{ navbar_js_html }}{% endhighlight %} -- 2.47.3