// ==========================================================
// 列表上方廣告banner輪播
// ==========================================================
;(function($) {
if($('.picSlides-big').length) {
$('.picSlides-big').each(function(i, ele) {
if($(ele).children().length > 1) {
$(ele).owlCarousel({
autoplay: true,
autoplayHoverPause: true,
autoplaySpeed: 1500,
autoplayTimeout: 5000,
dots: true,
items: 1,
loop: true,
margin: 10,
nav: false,
navText: ['', ''],
})
}
})
}
})($)
// ==========================================================
// 手機版篩選器
// ==========================================================
;(function($) {
$('.column-layout').on('click', '.function-button', function(e) {
e.preventDefault()
$(this).parents('.function-item').toggleClass('in-active')
.siblings('.function-item').removeClass('in-active')
const thiaTarget = $(this).attr('data-target')
$(thiaTarget).toggleClass('in-active')
.siblings('.aside-panel').removeClass('in-active')
})
})($)