nancypannikkat/js/general.js

28 lines
685 B
JavaScript
Raw Normal View History

2023-01-04 22:45:24 -08:00
document.addEventListener( 'DOMContentLoaded', function() {
var splide = new Splide( '.splide', {
type : 'loop',
perPage: 3,
focus : 'center',
autoWidth: true,
autoplay: true,
2023-01-06 22:52:26 -08:00
mediaQuery: 'max',
breakpoints: {
950: {
destroy: true,
},
},
2023-01-06 23:12:37 -08:00
lazyLoad: true,
keyboard: true,
isNavigation: true,
pauseOnFocus: true,
2023-01-06 23:16:52 -08:00
speed: 2000,
2023-01-09 23:35:51 -08:00
interval: 7000,
2023-01-04 22:45:24 -08:00
} );
splide.mount();
2023-01-09 23:35:51 -08:00
window.onload = function() {
uncheck('menu-btn');
};
function uncheck(id) {
document.getElementById(id).checked = false;
}
2023-01-04 22:45:24 -08:00
});