- Added minified versions of JavaScript files including main, script, google-map, bootstrap-datepicker, and jquery.easing. - Implemented a datepicker for appointment dates and a timepicker for appointment times. - Introduced a carousel feature for image display with automatic sliding and responsive behavior. - Updated package.json to include scripts for minifying CSS and JS files, along with necessary dependencies.
1 line
2.6 KiB
JavaScript
1 line
2.6 KiB
JavaScript
(n=>{n(window).stellar({responsive:!0,parallaxBackgrounds:!0,parallaxElements:!0,horizontalScrolling:!1,hideDistantElements:!1,scrollProperty:"scroll"}),n(".js-fullheight").css("height",n(window).height()),n(window).resize(function(){n(".js-fullheight").css("height",n(window).height())}),setTimeout(function(){0<n("#ftco-loader").length&&n("#ftco-loader").removeClass("show")},1),n(".home-slider").owlCarousel({loop:!0,autoplay:!0,margin:0,animateOut:"fadeOut",animateIn:"fadeIn",nav:!0,dots:!0,autoplayHoverPause:!1,items:1,navText:["<span class='ion-ios-arrow-back'></span>","<span class='ion-ios-arrow-forward'></span>"],responsive:{0:{items:1},600:{items:1},1e3:{items:1}}}),n(".carousel-testimony").owlCarousel({center:!0,loop:!0,items:1,margin:30,stagePadding:0,nav:!1,navText:['<span class="ion-ios-arrow-back">','<span class="ion-ios-arrow-forward">'],responsive:{0:{items:1},600:{items:2},1e3:{items:3}}}),n("nav .dropdown").hover(function(){var e=n(this);e.addClass("show"),e.find("> a").attr("aria-expanded",!0),e.find(".dropdown-menu").addClass("show")},function(){var e=n(this);e.removeClass("show"),e.find("> a").attr("aria-expanded",!1),e.find(".dropdown-menu").removeClass("show")}),n("#dropdown04").on("show.bs.dropdown",function(){console.log("show")}),n(".image-popup").magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,mainClass:"mfp-no-margins mfp-with-zoom",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{verticalFit:!0},zoom:{enabled:!0,duration:300}}),n(".popup-youtube, .popup-vimeo, .popup-gmaps").magnificPopup({disableOn:700,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1}),n("#section-counter").waypoint(function(e){var o;"down"!==e||n(this.element).hasClass("ftco-animated")||(o=n.animateNumber.numberStepFactories.separator(","),n(".number").each(function(){var e=n(this),a=e.data("number");console.log(a),e.animateNumber({number:a,numberStep:o},7e3)}))},{offset:"95%"}),n(".ftco-animate").waypoint(function(e){"down"!==e||n(this.element).hasClass("ftco-animated")||(n(this.element).addClass("item-animate"),setTimeout(function(){n("body .ftco-animate.item-animate").each(function(e){var a=n(this);setTimeout(function(){var e=a.data("animate-effect");"fadeIn"===e?a.addClass("fadeIn ftco-animated"):"fadeInLeft"===e?a.addClass("fadeInLeft ftco-animated"):"fadeInRight"===e?a.addClass("fadeInRight ftco-animated"):a.addClass("fadeInUp ftco-animated"),a.removeClass("item-animate")},50*e,"easeInOutExpo")})},100))},{offset:"95%"}),n(".appointment_date").datepicker({format:"m/d/yyyy",autoclose:!0}),n(".appointment_time").timepicker()})(jQuery); |