(Created page with "→Any JavaScript here will be loaded for all users on every page load. <script>: var mobileMenu = document.querySelector('[data-openmenu]'); if (mobileMenu) { mobileMenu...") |
|||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. <script>*/ | /* Any JavaScript here will be loaded for all users on every page load. <script>*/ | ||
+ | |||
+ | /* slick silder module */ | ||
+ | $.getScript('/skin/modules/slick/slick.min.js').done(function () { | ||
+ | $('.slick').slick({ | ||
+ | dots: false, | ||
+ | infinite: true, | ||
+ | speed: 300, | ||
+ | cssEase: 'linear', | ||
+ | fade: true, | ||
+ | arrows: true, | ||
+ | adaptiveHeight: true | ||
+ | }); | ||
+ | |||
+ | $('.logo-slider').slick({ | ||
+ | arrows: false, | ||
+ | speed: 5000, | ||
+ | autoplay: true, | ||
+ | autoplaySpeed: 0, | ||
+ | cssEase: 'linear', | ||
+ | slidesToShow: 1, | ||
+ | slidesToScroll: 1, | ||
+ | variableWidth: true | ||
+ | |||
+ | }); | ||
+ | $('.email-slider').slick({ | ||
+ | arrows: false, | ||
+ | speed: 5000, | ||
+ | autoplay: true, | ||
+ | autoplaySpeed: 0, | ||
+ | cssEase: 'linear', | ||
+ | slidesToShow: 1, | ||
+ | slidesToScroll: 1, | ||
+ | variableWidth: true | ||
+ | }); | ||
+ | $('.next-slick-child').each(function () { | ||
+ | this.style.display = 'block'; | ||
+ | }); | ||
+ | }); | ||
var mobileMenu = document.querySelector('[data-openmenu]'); | var mobileMenu = document.querySelector('[data-openmenu]'); |
Revision as of 10:24, 22 August 2022
/* Any JavaScript here will be loaded for all users on every page load. <script>*/
/* slick silder module */
$.getScript('/skin/modules/slick/slick.min.js').done(function () {
$('.slick').slick({
dots: false,
infinite: true,
speed: 300,
cssEase: 'linear',
fade: true,
arrows: true,
adaptiveHeight: true
});
$('.logo-slider').slick({
arrows: false,
speed: 5000,
autoplay: true,
autoplaySpeed: 0,
cssEase: 'linear',
slidesToShow: 1,
slidesToScroll: 1,
variableWidth: true
});
$('.email-slider').slick({
arrows: false,
speed: 5000,
autoplay: true,
autoplaySpeed: 0,
cssEase: 'linear',
slidesToShow: 1,
slidesToScroll: 1,
variableWidth: true
});
$('.next-slick-child').each(function () {
this.style.display = 'block';
});
});
var mobileMenu = document.querySelector('[data-openmenu]');
if (mobileMenu) {
mobileMenu.addEventListener('click', function(){
document.querySelector('.csp-nav__menu').classList.toggle('open');
}, true)
}