var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /*************************************************************************************************************** |||||||||||||||||||||||||||| CUSTOM SCRIPT FOR INTEXURE |||||||||||||||||||||||||||| **************************************************************************************************************** |||||||||||||||||||||||||||| TABLE OF CONTENT |||||||||||||||||||||||||||||||||||| **************************************************************************************************************** **************************************************************************************************************** 01. Revolution slider 02. Sticky header 03. Prealoader 04. Language switcher 05. prettyPhoto 06. BrandCarousel 07. Testimonial carousel 08. ScrollToTop 09. Cart Touch Spin 10. PriceFilter 11. Cart touch spin 12. Fancybox activator 13. ContactFormValidation 14. Scoll to target 15. PrettyPhoto **************************************************************************************************************** |||||||||||||||||||||||||||| End TABLE OF CONTENT |||||||||||||||||||||||||||||||||||| ****************************************************************************************************************/ "use strict"; //====Main menu=== function mainmenu() { //Submenu Dropdown Toggle if($('.main-menu li.dropdown ul').length){ $('.main-menu li.dropdown').append('
'); //Dropdown Button $('.main-menu li.dropdown .dropdown-btn').on('click', function() { $(this).prev('ul').slideToggle(500); }); } } //===Language switcher=== function languageSwitcher() { if ($("#polyglot-language-options").length) { $('#polyglotLanguageSwitcher').polyglotLanguageSwitcher({ effect: 'slide', animSpeed: 500, testMode: true, onChange: function(evt) { alert("The selected language is: " + evt.selectedItem); } }); }; } //===Header Sticky=== function stickyHeader() { if ($('.stricky').length) { var strickyScrollPos = 100; if ($(window).scrollTop() > strickyScrollPos) { $('.stricky').addClass('stricky-fixed'); $('.scroll-to-top').fadeIn(1500); } else if ($(this).scrollTop() <= strickyScrollPos) { $('.stricky').removeClass('stricky-fixed'); $('.scroll-to-top').fadeOut(1500); } }; } //Update Header Style and Scroll to Top function headerStyle() { if($('.header-upper-style1').length){ var windowpos = $(window).scrollTop(); var siteHeader = $('.header-upper-style1'); var sticky_header = $('.fixed-header .sticky-header'); var scrollLink = $('.scroll-to-top-style2'); if (windowpos > 50) { siteHeader.addClass('fixed-header'); sticky_header.addClass("animated slideInDown"); scrollLink.fadeIn(300); } else { siteHeader.removeClass('fixed-header'); sticky_header.removeClass("animated slideInDown"); scrollLink.fadeOut(300); } } } // Scoll To Top function scrollToTop() { if ($('.scroll-to-target').length) { $(".scroll-to-target").on('click', function() { var target = $(this).attr('data-target'); // animate $('html, body').animate({ scrollTop: $(target).offset().top }, 1000); }); } } //===Search box === function searchbox() { //Search Box Toggle if($('.seach-toggle').length){ //Dropdown Button $('.seach-toggle').on('click', function() { $(this).toggleClass('active'); $(this).next('.search-box').toggleClass('now-visible'); }); } } // ===Prealoder=== function prealoader() { if($('.preloader').length){ $('.preloader').delay(200).fadeOut(500); } } // Fact counter function CounterNumberChanger () { var timer = $('.timer'); if(timer.length) { timer.appear(function () { timer.countTo(); }) } } // Single Product Tab function singleProductTab () { if($('.tabs-box').length){ $('.tabs-box .tab-buttons .tab-btn').on('click', function(e) { e.preventDefault(); var target = $($(this).attr('data-tab')); if ($(target).is(':visible')){ return false; }else{ target.parents('.tabs-box').find('.tab-buttons').find('.tab-btn').removeClass('active-btn'); $(this).addClass('active-btn'); target.parents('.tabs-box').find('.tabs-content').find('.tab').fadeOut(0); target.parents('.tabs-box').find('.tabs-content').find('.tab').removeClass('active-tab'); $(target).fadeIn(300); $(target).addClass('active-tab'); } }); } } // Price Filter function priceFilter() { if ($('.price-ranger').length) { $('.price-ranger #slider-range').slider({ range: true, min: 10, max: 200, values: [11, 99], slide: function(event, ui) { $('.price-ranger .ranger-min-max-block .min').val('$' + ui.values[0]); $('.price-ranger .ranger-min-max-block .max').val('$' + ui.values[1]); } }); $('.price-ranger .ranger-min-max-block .min').val('$' + $('.price-ranger #slider-range').slider('values', 0)); $('.price-ranger .ranger-min-max-block .max').val('$' + $('.price-ranger #slider-range').slider('values', 1)); }; } //Accordion Box function accordion() { if($('.accordion-box').length){ $(".accordion-box").on('click', '.accord-btn', function() { if($(this).hasClass('active')!==true){ $('.accordion .accord-btn').removeClass('active'); } if ($(this).next('.accord-content').is(':visible')){ $(this).removeClass('active'); $(this).next('.accord-content').slideUp(500); }else{ $(this).addClass('active'); $('.accordion .accord-content').slideUp(500); $(this).next('.accord-content').slideDown(500); } }); } } //Progress Bar / Levels if($('.progress-levels .progress-box .bar-fill').length){ $(".progress-box .bar-fill").each(function() { $('.progress-box .bar-fill').appear(function(){ var progressWidth = $(this).attr('data-percent'); $(this).css('width',progressWidth+'%'); }); },{accY: 0}); } //Fact Counter + Text Count if($('.count-box').length){ $('.count-box').appear(function(){ var $t = $(this), n = $t.find(".count-text").attr("data-stop"), r = parseInt($t.find(".count-text").attr("data-speed"), 10); if (!$t.hasClass("counted")) { $t.addClass("counted"); $({ countNum: $t.find(".count-text").text() }).animate({ countNum: n }, { duration: r, easing: "linear", step: function() { $t.find(".count-text").text(Math.floor(this.countNum)); }, complete: function() { $t.find(".count-text").text(this.countNum); } }); } },{accY: 0}); } // Cart Touch Spin function cartTouchSpin() { if ($('.quantity-spinner').length) { $("input.quantity-spinner").TouchSpin({ verticalbuttons: true }); } } // Date picker function datepicker () { if ($('#datepicker').length) { $('#datepicker').datepicker(); }; } // Time picker function timepicker () { if ($('input[name="time"]').length) { $('input[name="time"]').ptTimeSelect(); } } //=== Tool tip === function tooltip () { if ($('.tool_tip').length) { $('.tool_tip').tooltip(); }; $ } // ===Project=== function projectMasonaryLayout() { if ($('.masonary-layout').length) { $('.masonary-layout').isotope({ layoutMode: 'masonry' }); } if ($('.post-filter').length) { $('.post-filter li').children('.filter-text').on('click', function() { var Self = $(this); var selector = Self.parent().attr('data-filter'); $('.post-filter li').removeClass('active'); Self.parent().addClass('active'); $('.filter-layout').isotope({ filter: selector, animationOptions: { duration: 500, easing: 'linear', queue: false } }); return false; }); } if ($('.post-filter.has-dynamic-filters-counter').length) { // var allItem = $('.single-filter-item').length; var activeFilterItem = $('.post-filter.has-dynamic-filters-counter').find('li'); activeFilterItem.each(function() { var filterElement = $(this).data('filter'); var count = $('.filter-layout').find(filterElement).length; $(this).children('.filter-text').append('' + count + ''); }); }; } function countryInfo() { if ($('.area_select').length) { $('.area_select').change(function() { var val = $(this).val(); if (val) { $('.state:not(#value' + val + ')').slideUp(); $('#value' + val).slideDown(); } else { $('.state').slideDown(); } }); } } // Select menu function selectDropdown() { if ($(".selectmenu").length) { $(".selectmenu").selectmenu(); var changeSelectMenu = function(event, item) { $(this).trigger('change', item); }; $(".selectmenu").selectmenu({ change: changeSelectMenu }); }; } //=== CountDownTimer=== function countDownTimer () { if ($('.time-countdown').length) { $('.time-countdown').each(function () { var Self = $(this); var countDate = Self.data('countdown-time'); // getting date Self.countdown(countDate, function(event) { $(this).html('Prev
', 'Next
' ], autoplayHoverPause: false, autoplay: 6000, smartSpeed: 1000, responsive:{ 0:{ items:1 }, 600:{ items:1 }, 800:{ items:1 }, 1024:{ items:1 }, 1100:{ items:1 }, 1200:{ items:1 } } }); } } //=== Project Carousel === function projectCarousel () { if ($('.project-carousel').length) { $('.project-carousel').owlCarousel({ dots: true, loop: true, margin: 10, nav: false, navText: [ '', '' ], autoplayHoverPause: false, autoplay: 15000, smartSpeed: 700, responsive:{ 0:{ items:1 }, 600:{ items:2 }, 800:{ items:3 }, 1024:{ items:4 }, 1100:{ items:4 }, 1200:{ items:5 } } }); } } //=== Brand Carousel === function brandCarousel () { if ($('.brand-items-carousel').length) { $('.brand-items-carousel').owlCarousel({ dots: false, loop: true, margin: 30, nav: true, navText: [ '', '' ], autoplayHoverPause: false, autoplay: 6000, smartSpeed: 1000, responsive:{ 0:{ items:2 }, 600:{ items:3 }, 800:{ items:4 }, 1024:{ items:5 }, 1100:{ items:5 }, 1200:{ items:6 } } }); } } //=== Brochures Carousel === function brochuresCarousel () { if ($('.brochures-carousel-box').length) { $('.brochures-carousel-box').owlCarousel({ dots: true, loop: true, margin: 0, nav: false, navText: [ '', '' ], autoplayHoverPause: false, autoplay: 6000, smartSpeed: 1000, responsive:{ 0:{ items:1 }, 600:{ items:1 }, 800:{ items:1 }, 1024:{ items:1 }, 1100:{ items:1 }, 1200:{ items:1 } } }); } } //=== Project Carousel V2 === function projectCarouselv2 () { if ($('.project-carousel-v2').length) { $('.project-carousel-v2').owlCarousel({ dots: true, loop: true, margin: 10, nav: false, navText: [ '', '' ], autoplayHoverPause: false, autoplay: 15000, smartSpeed: 700, responsive:{ 0:{ items:1 }, 600:{ items:1 }, 800:{ items:2 }, 1024:{ items:2 }, 1100:{ items:3 }, 1200:{ items:3 } } }); } } //=== Working Process Carousel === function workingProcessCarousel () { if ($('.working-process-carousel').length) { $('.working-process-carousel').owlCarousel({ dots: false, loop: true, margin: 30, nav: true, navText: [ '', '' ], autoplayHoverPause: false, autoplay: 6000, smartSpeed: 1000, responsive:{ 0:{ items:1 }, 600:{ items:1 }, 800:{ items:1 }, 1024:{ items:2 }, 1100:{ items:2 }, 1200:{ items:3 } } }); } } //=== Testimonial Carousel === function testimonialCarousel () { if ($('.testimonial-carousel').length) { $('.testimonial-carousel').owlCarousel({ dots: true, loop: true, margin: 30, nav: false, navText: [ '', '' ], autoplayHoverPause: false, autoplay: 6000, smartSpeed: 1000, responsive:{ 0:{ items:1 }, 600:{ items:1 }, 800:{ items:1 }, 1024:{ items:1 }, 1100:{ items:1 }, 1200:{ items:1 } } }); } } //=== Services Carousel === function servicesCarousel () { if ($('.services-carousel').length) { $('.services-carousel').owlCarousel({ dots: true, loop: true, margin: 30, nav: false, navText: [ 'Prev
', 'Next
' ], autoplayHoverPause: false, autoplay: 6000, smartSpeed: 1000, responsive:{ 0:{ items:1 }, 600:{ items:1 }, 800:{ items:1 }, 1024:{ items:1 }, 1100:{ items:1 }, 1200:{ items:1 } } }); } } //=== Project Carousel V3 === function projectCarouselv3 () { if ($('.project-carousel-v3').length) { $('.project-carousel-v3').owlCarousel({ dots: false, loop: true, margin: 60, nav: true, navText: [ '', '' ], autoplayHoverPause: false, autoplay: 6000, smartSpeed: 1000, responsive:{ 0:{ items:1 }, 600:{ items:1 }, 800:{ items:2 }, 1024:{ items:3 }, 1100:{ items:3 }, 1200:{ items:4 } } }); } } //=== Testimonial Carousel V2 === function testimonialCarouselV2 () { if ($('.testimonial-carousel-2').length) { $('.testimonial-carousel-2').owlCarousel({ dots: true, loop: true, margin: 30, nav: true, navText: [ '', '' ], autoplayHoverPause: false, autoplay: 6000, smartSpeed: 1000, responsive:{ 0:{ items:1 }, 600:{ items:1 }, 800:{ items:1 }, 1024:{ items:1 }, 1100:{ items:2 }, 1200:{ items:2 } } }); } } //=== History Carousel === function historyCarousel () { if ($('.history-carousel').length) { $('.history-carousel').owlCarousel({ dots: true, loop: true, margin: 0, nav: true, navText: [ '', '' ], autoplayHoverPause: false, autoplay: 6000, smartSpeed: 1000, responsive:{ 0:{ items:1 }, 600:{ items:1 }, 800:{ items:1 }, 1024:{ items:1 }, 1100:{ items:1 }, 1200:{ items:1 } } }); } } //Hidden Sidebar if ($('.hidden-bar').length) { var hiddenBar = $('.hidden-bar'); var hiddenBarOpener = $('.hidden-bar-opener'); var hiddenBarCloser = $('.hidden-bar-closer'); var navToggler = $('.nav-toggler'); $('.hidden-bar-wrapper').mCustomScrollbar(); //Show Sidebar hiddenBarOpener.on('click', function () { hiddenBar.toggleClass('visible-sidebar'); navToggler.toggleClass('open'); }); //Hide Sidebar hiddenBarCloser.on('click', function () { hiddenBar.toggleClass('visible-sidebar'); navToggler.toggleClass('open'); }); } //LightBox / Fancybox if($('.lightbox-image').length) { $('.lightbox-image').fancybox({ openEffect : 'fade', closeEffect : 'fade', youtube : { controls : 0, showinfo : 0 }, helpers : { media : {} } }); } if($('.paroller').length){ $('.paroller').paroller({ factor: 0.05, // multiplier for scrolling speed and offset, +- values for direction control factorLg: 0.05, // multiplier for scrolling speed and offset if window width is less than 1200px, +- values for direction control type: 'foreground', // background, foreground direction: 'horizontal' // vertical, horizontal }); } // Elements Animation if($('.wow').length){ var wow = new WOW( { boxClass: 'wow', // animated element css class (default is wow) animateClass: 'animated', // animation css class (default is animated) offset: 0, // distance to the element when triggering the animation (default is 0) mobile: false, // trigger animations on mobile devices (default is true) live: true // act on asynchronously loaded content (default is true) } ); wow.init(); } //Contact Form Validation if($("#contact-form").length){ $("#contact-form").validate({ submitHandler: function(form) { var form_btn = $(form).find('button[type="submit"]'); var form_result_div = '#form-result'; $(form_result_div).remove(); form_btn.before(''); var form_btn_old_msg = form_btn.html(); form_btn.html(form_btn.prop('disabled', true).data("loading-text")); $(form).ajaxSubmit({ dataType: 'json', success: function(data) { if( data.status = 'true' ) { $(form).find('.form-control').val(''); } form_btn.prop('disabled', false).html(form_btn_old_msg); $(form_result_div).html(data.message).fadeIn('slow'); setTimeout(function(){ $(form_result_div).fadeOut('slow') }, 6000); } }); } }); } // Add Comment Form Validation if($("#add-comment-form").length){ $("#add-comment-form").validate({ submitHandler: function(form) { var form_btn = $(form).find('button[type="submit"]'); var form_result_div = '#form-result'; $(form_result_div).remove(); form_btn.before(''); var form_btn_old_msg = form_btn.html(); form_btn.html(form_btn.prop('disabled', true).data("loading-text")); $(form).ajaxSubmit({ dataType: 'json', success: function(data) { if( data.status = 'true' ) { $(form).find('.form-control').val(''); } form_btn.prop('disabled', false).html(form_btn_old_msg); $(form_result_div).html(data.message).fadeIn('slow'); setTimeout(function(){ $(form_result_div).fadeOut('slow') }, 6000); } }); } }); } // Appoinment Form Validation if($("#appoinment-form").length){ $("#appoinment-form").validate({ submitHandler: function(form) { var form_btn = $(form).find('button[type="submit"]'); var form_result_div = '#form-result'; $(form_result_div).remove(); form_btn.before(''); var form_btn_old_msg = form_btn.html(); form_btn.html(form_btn.prop('disabled', true).data("loading-text")); $(form).ajaxSubmit({ dataType: 'json', success: function(data) { if( data.status = 'true' ) { $(form).find('.form-control').val(''); } form_btn.prop('disabled', false).html(form_btn_old_msg); $(form_result_div).html(data.message).fadeIn('slow'); setTimeout(function(){ $(form_result_div).fadeOut('slow') }, 6000); } }); } }); } // Dom Ready Function jQuery(document).on('ready', function () { (function ($) { // add your functions mainmenu (); scrollToTop (); languageSwitcher (); searchbox (); CounterNumberChanger (); singleProductTab (); priceFilter (); accordion (); cartTouchSpin (); selectDropdown (); datepicker (); timepicker (); tooltip (); countryInfo (); countDownTimer (); aboutCarousel (); projectCarousel(); brandCarousel(); brochuresCarousel(); projectCarouselv2(); workingProcessCarousel(); testimonialCarousel(); servicesCarousel(); projectCarouselv3(); testimonialCarouselV2(); historyCarousel(); })(jQuery); }); jQuery(window).on('scroll', function(){ (function ($) { stickyHeader (); headerStyle () })(jQuery); }); // Instance Of Fuction while Window Load event jQuery(window).on('load', function() { (function($) { prealoader (); projectMasonaryLayout (); })(jQuery); }); $(window).enllax(); } /* FILE ARCHIVED ON 10:12:08 Jan 26, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 15:48:05 Oct 18, 2022. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 418.79 exclusion.robots: 0.243 exclusion.robots.policy: 0.222 RedisCDXSource: 26.114 esindex: 0.028 LoadShardBlock: 363.607 (3) PetaboxLoader3.datanode: 332.117 (4) CDXLines.iter: 22.473 (3) load_resource: 119.751 PetaboxLoader3.resolve: 80.944 */