forked from laysense/laysite
Edit shared headers and footers as page types
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
jQuery(function ($) {
|
||||
const $toggle = $('.menu-toggle');
|
||||
const $nav = $('.primary-nav');
|
||||
if ($toggle.length && $nav.length) {
|
||||
$('.menu-toggle[aria-controls]').each(function () {
|
||||
const $toggle = $(this);
|
||||
const $nav = $(document.getElementById(this.getAttribute('aria-controls')));
|
||||
if (!$nav.hasClass('primary-nav')) return;
|
||||
$toggle.prop('hidden', false);
|
||||
$nav.addClass('has-toggle');
|
||||
|
||||
@@ -20,7 +21,7 @@ jQuery(function ($) {
|
||||
$toggle.trigger('focus');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('[data-article-tabs]').each(function () {
|
||||
const $feed = $(this);
|
||||
|
||||
Reference in New Issue
Block a user