我的网站上有许多精子,他们都完全按照这一守则开展工作,今天(在发射之前2天)所有浮雕的反应环境都停止了在智能移动(花在神、edge和火ox上的工作)。 当你改变方向时,除非你以同样的方向更新浏览器,否则环境不会改变。
我只改动了一些微不足道的安保部,甚至回到原来的版本,但仍然坚持下去。
我也试图逐个逐个消除每一梯子,放弃任何优化的gin子。
我对所有法典都表示歉意,但我知道它有很多事情,但没有做任何工作,因此我不知道问题究竟是在哪里。
我试图将所有职能合并为一个职能,但我不肯定如何。
我曾尝试增加冲破台式的机动车,我还试图增加。
$(window).on( orientationchange , function() {
$( .slider-name ).slick( resize );
});
每次工作都失败了,但我不敢肯定我的安置情况,我也尝试了竞选,但又一次,不能确定我的安置是否正确。
我也曾尝试过审判。
( function( $ ) {
class SlickCarousel {
constructor() {
this.initiateCarousel();
this.setupResizeHandler();
}
//sliders
setupResizeHandler() {
// Handle window resize event
$(window).on( resize , () => {
// Destroy the current slick instance
this.carousel.slick( unslick );
// Reinitialize the carousel with updated settings
this.initiateCarousel();
});
}
}
new SlickCarousel();
} )( jQuery );
而且,这种工作,但有时使弱者完全消失。
正式法典
(function($) {
class SlickCarousel {
constructor() {
this.initiateCarousel();
}
initiateCarousel() {
$( .motpm-carousel ).slick({
autoplay: false,
slidesToShow: 3,
slidesToScroll: 1,
arrows: true,
infinite: true,
dots: false,
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 2,
slidesToScroll: 1
}
},
{
breakpoint: 551,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
]
});
}
}
new SlickCarousel();
})(jQuery);
(function($) {
class SlickCarousel {
constructor() {
this.initiateCarousel();
}
initiateCarousel() {
$( .hero-slider ).slick({
autoplay: true,
slidesToShow: 1,
infinite: true,
speed: 800,
fade: true,
cssEase: linear ,
slidesToScroll: 1,
dots: false,
autoplaySpeed: 3800,
pauseOnHover: false,
arrows: false,
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 2,
slidesToScroll: 1
}
},
{
breakpoint: 551,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
]
});
}
}
new SlickCarousel();
})(jQuery);
(function($) {
class SlickCarousel {
constructor() {
this.initiateCarousel();
}
initiateCarousel() {
$( .motpm-discover-carousel ).slick({
autoplay: false,
slidesToShow: 4,
slidesToScroll: 1,
arrows: true,
infinite: true,
dots: true,
responsive: [
{
breakpoint: 1401,
settings: {
slidesToShow: 3,
slidesToScroll: 1
}
},
{
breakpoint: 1001,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
},
{
breakpoint: 451,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
dots: false
}
}
]
});
$( .slide-prev-discover ).click(function(e) {
$( .motpm-discover-carousel ).slick( slickPrev );
});
$( .slide-next-discover ).click(function(e) {
$( .motpm-discover-carousel ).slick( slickNext );
});
}
}
new SlickCarousel();
})(jQuery);
(function($) {
class SlickCarousel {
constructor() {
this.initiateCarousel();
}
initiateCarousel() {
$( .key-events:not(.events-2, .events-1) .motpm-key-events-carousel ).slick({
autoplay: false,
slidesToShow: 3,
slidesToScroll: 3,
arrows: true,
infinite: true,
dots: true,
responsive: [
{
breakpoint: 1001,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
},
{
breakpoint: 901,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
arrows: false
}
},
{
breakpoint: 551,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
arrows: false,
dots: false
}
}
]
});
$( .slide-prev-events ).click(function(e) {
$( .key-events:not(.events-2, .events-1) .motpm-key-events-carousel ).slick( slickPrev );
});
$( .slide-next-events ).click(function(e) {
$( .key-events:not(.events-2, .events-1) .motpm-key-events-carousel ).slick( slickNext );
});
}
}
new SlickCarousel();
})(jQuery);
(function($) {
class SlickCarousel {
constructor() {
this.initiateCarousel();
}
initiateCarousel() {
$( .key-insights:not(.insights-2, .insights-1) .motpm-key-insights-carousel ).slick({
autoplay: false,
slidesToShow: 3,
slidesToScroll: 3,
arrows: false,
infinite: true,
dots: true,
responsive: [
{
breakpoint: 1051,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
},
{
breakpoint: 901,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
arrows: false
}
},
{
breakpoint: 551,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
arrows: false
}
},
{
breakpoint: 551,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
arrows: false,
dots: false
}
}
]
});
$( .slide-prev-insights ).click(function(e) {
$( .key-insights:not(.insights-2, .insights-1) .motpm-key-insights-carousel ).slick( slickPrev );
});
$( .slide-next-insights ).click(function(e) {
$( .key-insights:not(.insights-2, .insights-1) .motpm-key-insights-carousel ).slick( slickNext );
});
}
}
new SlickCarousel();
})(jQuery);
(function($) {
class SlickCarousel {
constructor() {
this.initiateCarousel();
}
initiateCarousel() {
$( .pm-slider ).slick({
autoplay: false,
slidesToShow: 3,
slidesToScroll: 1,
arrows: false,
infinite: false,
variableWidth: true,
dots: false,
responsive: [
{
breakpoint: 1001,
settings: {
slidesToShow: 2,
slidesToScroll: 1,
rows: 0
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
rows: 0
}
}
]
});
var filtered = false;
$(document).ready(function() {
let filtered = false;
function applyFilters() {
const screenWidth = window.innerWidth;
if (screenWidth >= 768) {
if (filtered) {
$( .pm-slider ).slick( slickUnfilter );
filtered = false;
}
} else {
if (!filtered) {
$( .pm-slider ).slick( slickFilter , $( .desktop-content-pm ).parent().parent());
filtered = true;
}
}
}
applyFilters();
$(window).resize(function() {
applyFilters();
});
});
$( .slide-prev ).click(function(e) {
$( .pm-slider ).slick( slickPrev );
});
$( .slide-next ).click(function(e) {
$( .pm-slider ).slick( slickNext );
});
}
}
new SlickCarousel();
})(jQuery);
(function($) {
class SlickCarousel {
constructor() {
this.initiateCarousel();
}
initiateCarousel() {
$( .pm-slider-content ).slick({
autoplay: false,
slidesToShow: 1,
slidesToScroll: 1,
arrows: false,
infinite: false,
fade: true,
cssEase: linear ,
dots: false
});
var filter = false;
$(document).ready(function() {
let filter = false;
function applyFiltering() {
const screenWidth = window.innerWidth;
if (screenWidth > 1000) {
if (!filter) {
$( .pm-slider-content ).slick( slickFilter , $( .desktop-content ).parent().parent());
filter = true;
}
} else {
if (filter) {
$( .pm-slider-content ).slick( slickUnfilter );
filter = false;
}
}
}
applyFiltering();
$(window).resize(function() {
applyFiltering();
});
});
$( .slide-prev ).click(function(e) {
$( .pm-slider-content ).slick( slickPrev );
});
$( .slide-next ).click(function(e) {
$( .pm-slider-content ).slick( slickNext );
});
}
}
new SlickCarousel();
})(jQuery);
(function($) {
class SlickCarousel {
constructor() {
this.initiateTestimonialCarousel();
this.initiateNavCarousel();
}
initiateTestimonialCarousel() {
$( .testimonial-slider-wrap ).slick({
autoplay: false,
slidesToShow: 1,
slidesToScroll: 1,
centerMode: true,
infinite: true,
dots: false,
asNavFor: .slider-nav ,
responsive: [
{
breakpoint: 1221,
settings: {
arrows: false,
}
}
]
});
}
initiateNavCarousel() {
$( .slider-nav ).slick({
slidesToShow: 6,
slidesToScroll: 1,
asNavFor: .testimonial-slider-wrap ,
dots: true,
centerMode: true
});
$( .test-prev ).click(function(e) {
$( .testimonial-slider-wrap ).slick( slickPrev );
});
$( .test-next ).click(function(e) {
$( .testimonial-slider-wrap ).slick( slickNext );
});
}
}
new SlickCarousel();
})(jQuery);
$( .slider-nav )
.on( init , function(event, slick) {
$( .slider-nav .slick-slide.slick-current ).addClass( is-active );
})
$( .testimonial-slider-wrap ).on( afterChange , function(event, slick, currentSlide) {
$( .slider-nav ).slick( slickGoTo , currentSlide);
var currrentNavSlideElem = .slider-nav .slick-slide[data-slick-index=" + currentSlide + "] ;
$( .slider-nav .slick-slide.is-active ).removeClass( is-active );
$(currrentNavSlideElem).addClass( is-active );
});
$( .slider-nav ).on( click , .slick-slide , function(event) {
event.preventDefault();
var goToSingleSlide = $(this).data( slick-index );
$( .testimonial-slider-wrap ).slick( slickGoTo , goToSingleSlide);
});
$( .motpm-discover-carousel ).slick( setPosition );