JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr/* jQuery Nice Select - v1.0 https://github.com/hernansartorio/jquery-nice-select Made by Hernán Sartorio */ !function(e){e.fn.niceSelect=function(t){function s(t){t.after(e("
").addClass("nice-select").addClass(t.attr("class")||"").addClass(t.attr("disabled")?"disabled":"").attr("tabindex",t.attr("disabled")?null:"0").html(''));var s=t.next(),n=t.find("option"),i=t.find("option:selected");s.find(".current").html(i.data("display")||i.text()),n.each(function(t){var n=e(this),i=n.data("display");s.find("ul").append(e("
  • ").attr("data-value",n.val()).attr("data-display",i||null).addClass("option"+(n.is(":selected")?" selected":"")+(n.is(":disabled")?" disabled":"")).html(n.text()))})}if("string"==typeof t)return"update"==t?this.each(function(){var t=e(this),n=e(this).next(".nice-select"),i=n.hasClass("open");n.length&&(n.remove(),s(t),i&&t.next().trigger("click"))}):"destroy"==t?(this.each(function(){var t=e(this),s=e(this).next(".nice-select");s.length&&(s.remove(),t.css("display",""))}),0==e(".nice-select").length&&e(document).off(".nice_select")):console.log('Method "'+t+'" does not exist.'),this;this.hide(),this.each(function(){var t=e(this);t.next().hasClass("nice-select")||s(t)}),e(document).off(".nice_select"),e(document).on("click.nice_select",".nice-select",function(t){var s=e(this);e(".nice-select").not(s).removeClass("open"),s.toggleClass("open"),s.hasClass("open")?(s.find(".option"),s.find(".focus").removeClass("focus"),s.find(".selected").addClass("focus")):s.focus()}),e(document).on("click.nice_select",function(t){0===e(t.target).closest(".nice-select").length&&e(".nice-select").removeClass("open").find(".option")}),e(document).on("click.nice_select",".nice-select .option:not(.disabled)",function(t){var s=e(this),n=s.closest(".nice-select");n.find(".selected").removeClass("selected"),s.addClass("selected");var i=s.data("display")||s.text();n.find(".current").text(i),n.prev("select").val(s.data("value")).trigger("change")}),e(document).on("keydown.nice_select",".nice-select",function(t){var s=e(this),n=e(s.find(".focus")||s.find(".list .option.selected"));if(32==t.keyCode||13==t.keyCode)return s.hasClass("open")?n.trigger("click"):s.trigger("click"),!1;if(40==t.keyCode){if(s.hasClass("open")){var i=n.nextAll(".option:not(.disabled)").first();i.length>0&&(s.find(".focus").removeClass("focus"),i.addClass("focus"))}else s.trigger("click");return!1}if(38==t.keyCode){if(s.hasClass("open")){var l=n.prevAll(".option:not(.disabled)").first();l.length>0&&(s.find(".focus").removeClass("focus"),l.addClass("focus"))}else s.trigger("click");return!1}if(27==t.keyCode)s.hasClass("open")&&s.trigger("click");else if(9==t.keyCode&&s.hasClass("open"))return!1});var n=document.createElement("a").style;return n.cssText="pointer-events:auto","auto"!==n.pointerEvents&&e("html").addClass("no-csspointerevents"),this}}(jQuery); $(document).ready(function() { /********* On scroll heder Sticky *********/ $(window).scroll(function() { var scroll = $(window).scrollTop(); if (scroll >= 50) { $("header").addClass("head-sticky"); $('.announce-bar').slideUp('500'); } else { $("header").removeClass("head-sticky"); $('.announce-bar').slideDown('500'); } }); /********* appointment Popup ********/ $(".appointment-btn a").click(function() { $(".appointment-popup").toggleClass("active"); $("body").toggleClass("no-scroll"); }); $(".close-search").click(function() { $(".appointment-popup").removeClass("active"); $("body").removeClass("no-scroll"); }); $(".close-btn").click(function() { $(".appointment-popup").removeClass("active"); $("body").removeClass("no-scroll"); }); /********* Card Popup ********/ $(".our-card").click(function() { $(".card-popup").toggleClass("active"); $("body").toggleClass("no-scroll"); }); $(".close-search").click(function() { $(".card-popup").removeClass("active"); $("body").removeClass("no-scroll"); }); $(".close-btn").click(function() { $(".card-popup").removeClass("active"); $("body").removeClass("no-scroll"); }); /********* contact Popup ********/ $(".our-contact").click(function() { $(".contact-popup").toggleClass("active"); $("body").toggleClass("no-scroll"); }); $(".close-search").click(function() { $(".contact-popup").removeClass("active"); $("body").removeClass("no-scroll"); }); $(".close-btn").click(function() { $(".contact-popup").removeClass("active"); $("body").removeClass("no-scroll"); }); /****** Nice Select ******/ $('#view_theme6 select').niceSelect(); /********* Multi-level accordion nav ********/ $('.acnav-label').click(function () { var label = $(this); var parent = label.parent('.has-children'); var list = label.siblings('.acnav-list'); if (parent.hasClass('is-open')) { list.slideUp('fast'); parent.removeClass('is-open'); } else { list.slideDown('fast'); parent.addClass('is-open'); } }); /***** TESTIMONIAL SLIDER *****/ if ($('.testimonial-slider').length > 0) { $('.testimonial-slider').slick({ autoplay: true, slidesToShow: 2, speed: 1000, slidesToScroll: 1, rtl:true, // prevArrow: '', // nextArrow: '', dots: false, arrows:false, buttons: false, responsive: [ { breakpoint: 430, settings: { slidesToShow: 1, slidesToScroll: 1, } } ] }); } if ($('.gallery-slider').length > 0) { $('.gallery-slider').slick({ autoplay: true, slidesToShow: 2, speed: 1000, slidesToScroll: 1, rtl: true, prevArrow: '', nextArrow: '', dots: false, arrows:true, buttons: false, responsive: [ { breakpoint: 420, settings: { slidesToShow: 1, slidesToScroll: 1, } } ] }); } });