1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
ULib/tests/examples/wi-auth/www/wifi-aaa.comune.fi.it/banner/js/jquery.firenzewifi.slider.js
stefanocasazza 31947fe690 sync
2016-12-05 14:36:57 +01:00

41 lines
719 B
JavaScript

function createSlider(nrMaxSlides) {
$('.slider').slick({
dots: true,
infinite: true,
speed: 100,
slidesToShow: nrMaxSlides,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 3000,
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: nrMaxSlides,
slidesToScroll: 1,
infinite: true,
dots: true
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
// You can unslick at a given breakpoint now by adding:
// settings: "unslick"
// instead of a settings object
]
});
}