function onPlayerReady(event) {
event.target.mute();
event.target.playVideo();
event.target.setPlaybackRate(2);
}
//ループ設定
function onPlayerStateChange(event) {
if (event.data == YT.PlayerState.ENDED) {
event.target.playVideo();
}
}
$(document).ready(function() {
$('.facility-slider-top').slick({
infinite: true,
accessibility: false,
arrows: false,
autoplay: true,
autoplaySpeed: 0,
speed: 30000,
pauseOnHover: false,
pauseOnFocus: false,
slidesToShow: 2,
slidesToScroll: 2,
swipe: false,
cssEase: 'linear',
});
$('.facility-slider-bottom').slick({
infinite: true,
accessibility: false,
arrows: false,
autoplay: true,
autoplaySpeed: 0,
speed: 30000,
pauseOnHover: false,
pauseOnFocus: false,
slidesToShow: 2,
slidesToScroll: 2,
swipe: false,
cssEase: 'linear',
rtl: true,//スライダの表示方向を左⇒右に変更する
});
$(".course-slider").slick({
asNavFor: ".course-thumbs",
})
$(".course-thumbs").slick({
asNavFor: ".course-slider",
focusOnSelect: true,
slidesToShow: 6,
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 3,
}
},
]
});
$(".event-slider").slick({
slidesToShow: 4,
slidesToScroll: 1,
arrows: true,
// centerMode: true,
// variableWidth: true,
prevArrow: '
',
nextArrow: '
',
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 2,
}
},
]
});
$(".junior-slider").slick({
accessibility: true,
swipe: true,
focusOnSelect: true,
autoplay: true,
infinite: true,
speed: 2000,
slidesToShow: 3,
slidesToScroll: 1,
arrows: false,
prevArrow: '
',
nextArrow: '
',
centerMode: true,
centerPadding: '50px',
// variableWidth: true,
dots: false,
});
});