feat: release B2B Trade theme 2.1.0
This commit is contained in:
File diff suppressed because one or more lines are too long
+10
-10
@@ -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();
|
||||
}
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user