$(document).ready(function () { $("#tetimnials").owlCarousel({ loop: !0, margin: 10, nav: !1, autoplay: !0, autoplayHoverPause: !0, autoHeight: !1, dots: !0, responsiveClass: !0, responsive: { 0: { items: 1, nav: !0 }, 600: { items: 1, nav: !1 }, 1e3: { items: 2, nav: !0, loop: !1 } } }) }), $(window).width(), $(window).on("load resize", function (e) { $(window).width() <= 767 && $(".ptmenu ul").each(function () { var e = $(this), t = $(document.createElement("select")).insertBefore($(this).hide()).change(function () { window.location.href = $(this).val() }); $(">li a", this).each(function () { var e = $(document.createElement("option")).appendTo(t).val(this.href).html($(this).html()); $(this).hasClass("active") && e.attr("selected", "selected") }), e.remove() }) }), $(document).ready(function () { $(".btn-default").click(function () { $(".searBoxx").toggle() }) }), $(document).ready(function () { $(".btn-default").click(function () { $(".btn").toggleClass("main") }) }), $(function () { $("#myList li").slice(0, 12).show(), $("#loadMore").on("click", function (e) { e.preventDefault(), $("#myList li:hidden").slice(0, 8).slideDown(), 0 == $("#myList li:hidden").length && $("#load").fadeOut("slow"), $("html,body").animate({ scrollTop: $(this).offset().top }, 1500) }) });