Migrate Laysense to upstream LaySite 1.4.3 with external site data

This commit is contained in:
2026-11-27 17:47:31 +08:00
parent b8eb9b35eb
commit 1d2cb2ed1e
277 changed files with 9049 additions and 3222 deletions
+5 -4
View File
@@ -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);