You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
644 B

import $ from 'jquery';
$(document).ready(function () {
$('.js-toggle-head').on('click', function(e){
e.preventDefault();
let _this = $(this);
_this.toggleClass('active');
// _this.next().slideToggle();
});
$('.js-timing-toggle').on('click', function(e){
e.preventDefault();
let _this = $(this);
if(!$(e.target).data('popup')) {
let _parent = _this.closest('.timing__item');
$(document).find('.timing__item').not(_parent).removeClass('open');
_parent.toggleClass('open');
// _parent.next().slideToggle();
}
});
});