feat: release B2B Trade theme 2.1.0

This commit is contained in:
WorkBuddy
2026-07-24 22:25:29 +08:00
parent 13a35c7ec7
commit 4f070d4677
64 changed files with 1769 additions and 1762 deletions
File diff suppressed because one or more lines are too long
+10 -10
View File
@@ -1,4 +1,4 @@
(function ($) {
(function () {
'use strict';
document.documentElement.classList.remove('no-js');
@@ -14,11 +14,6 @@
window.addEventListener('scroll', updateHeader, { passive: true });
}
function initVideoLightbox() {
if (!$.fn || typeof $.fn.colorbox !== 'function') return;
$('.youtube').colorbox({ iframe: true, innerWidth: 960, innerHeight: 585, maxWidth: '95%', maxHeight: '90%' });
}
function initNavigation() {
var panel = document.querySelector('#fragrance-navigation');
if (!panel || !window.bootstrap || !window.bootstrap.Offcanvas) return;
@@ -30,9 +25,14 @@
});
}
$(function () {
function initTheme() {
initStickyHeader();
initVideoLightbox();
initNavigation();
});
})(jQuery);
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', initTheme);
} else {
initTheme();
}
})();