$('.live-search-box').on('keyup', function() { var searchTerm = $(this).val().toLowerCase(); $('.search-box-item').each(function() { if ($(this).filter('[data-search-term *= ' + searchTerm + ']').length > 0 || searchTerm.length < 1) { $(this).parent().parent().show(); } else { $(this).parent().parent().hide(); } }); }); $(".navmain__toggle").on("click", function() { $(".navmain").toggleClass("navmain--open"); }); $( ".hamburger" ).click(function() { $('.main-menu').toggleClass('mobile-activate'); }); $( ".level0-clicker" ).click(function() { $(this).data("ulid"); $('#' + $(this).data("ulid") + '').toggleClass('level1-active'); }); $(function(){ var activateHamburger = function(event) { var el = $(this); if (el.hasClass('active')){ el.addClass('active-end'); el.one('transitionend', function(){ el.removeClass('active active-end') }); } else { el.addClass('active'); } }; $('.hamburger').click(activateHamburger); }); $(document).ready(function() { var registerDetail = $("#register-detail-carousel"); registerDetail.owlCarousel({ items: 1, itemsDesktop: [1000, 1], itemsDesktopSmall: [900, 1], itemsTablet: [600, 1], itemsMobile: false, pagination: false, }); $(".next-register").click(function() { registerDetail.trigger('owl.next'); }); $(".prev-register").click(function() { registerDetail.trigger('owl.prev'); }); var accreditaionCarousel = $("#accreditaion-carousel"); accreditaionCarousel.owlCarousel({ items: 2, itemsDesktop: [1000, 2], itemsDesktopSmall: [900, 2], itemsTablet: [600, 1], itemsMobile: false, pagination: false }); var locationCarousel = $("#location-carousel"); locationCarousel.owlCarousel({ items: 1, itemsDesktop: [1000, 1], itemsDesktopSmall: [900, 1], itemsTablet: [600, 1], itemsMobile: false, pagination: false }); $(".next-accreditation").click(function() { accreditaionCarousel.trigger('owl.next'); }); $(".prev-accreditation").click(function() { accreditaionCarousel.trigger('owl.prev'); }); $(".next-location").click(function() { locationCarousel.trigger('owl.next'); }); $(".prev-location").click(function() { locationCarousel.trigger('owl.prev'); }); });