123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452 |
- (function ($) {
- "use strict";
- // TOP Menu Sticky
- $(window).on('scroll', function () {
- var scroll = $(window).scrollTop();
- if (scroll < 400) {
- $("#sticky-header").removeClass("sticky");
- $('#back-top').fadeIn(500);
- } else {
- $("#sticky-header").addClass("sticky");
- $('#back-top').fadeIn(500);
- }
- });
- $(document).ready(function(){
- // mobile_menu
- var menu = $('ul#navigation');
- if(menu.length){
- menu.slicknav({
- prependTo: ".mobile_menu",
- closedSymbol: '+',
- openedSymbol:'-'
- });
- };
- // blog-menu
- // $('ul#blog-menu').slicknav({
- // prependTo: ".blog_menu"
- // });
- // review-active
- $('.slider_active').owlCarousel({
- loop:true,
- margin:0,
- items:1,
- autoplay:true,
- navText:['<i class="ti-angle-left"></i>','<i class="ti-angle-right"></i>'],
- nav:true,
- dots:false,
- autoplayHoverPause: true,
- autoplaySpeed: 800,
- animateOut: 'fadeOut',
- animateIn: 'fadeIn',
- responsive:{
- 0:{
- items:1,
- nav:false,
- },
- 767:{
- items:1,
- nav:false,
- },
- 992:{
- items:1,
- nav:false
- },
- 1200:{
- items:1,
- nav:false
- },
- 1600:{
- items:1,
- nav:true
- }
- }
- });
- // review-active
- $('.testmonial_active').owlCarousel({
- loop:true,
- margin:30,
- items:1,
- // autoplay:true,
- navText:['<i class="ti-angle-left"></i>','<i class="ti-angle-right"></i>'],
- nav:false,
- dots:true,
- autoplayHoverPause: true,
- autoplaySpeed: 800,
- responsive:{
- 0:{
- items:1,
- dots:false,
- nav:false,
- },
- 767:{
- items:2,
- dots:false,
- nav:false,
- },
- 992:{
- items:2,
- nav:false
- },
- 1200:{
- items:2,
- nav:false
- },
- 1500:{
- items:2
- }
- }
- });
- // review-active
- $('.project_details_active').owlCarousel({
- loop:true,
- margin:0,
- items:1,
- autoplay:true,
- navText:['<i class="ti-angle-left"></i>','<i class="ti-angle-right"></i>'],
- nav:true,
- dots:false,
- autoplayHoverPause: true,
- autoplaySpeed: 800,
- responsive:{
- 0:{
- items:1,
- nav:false
- },
- 767:{
- items:1,
- },
- 992:{
- items:1,
- nav:false
- },
- 1200:{
- items:1,
- },
- 1500:{
- items:1,
- nav:true
- }
- }
- });
- // review-active
- $('.case_active').owlCarousel({
- loop:true,
- margin:30,
- items:1,
- autoplay:false,
- navText:['<i class="ti-angle-left"></i>','<i class="ti-angle-right"></i>'],
- nav:true,
- dots:true,
- autoplayHoverPause: true,
- autoplaySpeed: 800,
- // dotsData: true,
- center: false,
- responsive:{
- 0:{
- items:1,
- nav:false
- },
- 767:{
- items:3,
- nav:false
- },
- 992:{
- items:3,
- nav:false
- },
- 1200:{
- items:3,
- nav:false
- },
- 1500:{
- items:3,
- nav:true
- }
- }
- });
- // review-active
- $('.property_banner_active').owlCarousel({
- loop:true,
- margin:30,
- items:1,
- autoplay:false,
- navText:['<i class="ti-angle-left"></i>','<i class="ti-angle-right"></i>'],
- nav:true,
- dots:true,
- autoplayHoverPause: true,
- autoplaySpeed: 800,
- // dotsData: true,
- center: false,
- responsive:{
- 0:{
- items:1,
- nav:false
- },
- 767:{
- items:1,
- nav:false
- },
- 992:{
- items:1
- },
- 1200:{
- items:1
- },
- 1500:{
- items:1,
- nav:true
- }
- }
- });
- // for filter
- // init Isotope
- var $grid = $('.grid').isotope({
- itemSelector: '.grid-item',
- percentPosition: true,
- masonry: {
- // use outer width of grid-sizer for columnWidth
- columnWidth: 1
- }
- });
- // filter items on button click
- $('.portfolio-menu').on('click', 'button', function () {
- var filterValue = $(this).attr('data-filter');
- $grid.isotope({ filter: filterValue });
- });
- //for menu active class
- $('.portfolio-menu button').on('click', function (event) {
- $(this).siblings('.active').removeClass('active');
- $(this).addClass('active');
- event.preventDefault();
- });
-
- // wow js
- new WOW().init();
- // counter
- $('.counter').counterUp({
- delay: 10,
- time: 10000
- });
- /* magnificPopup img view */
- $('.popup-image').magnificPopup({
- type: 'image',
- gallery: {
- enabled: true
- }
- });
- /* magnificPopup img view */
- $('.img-pop-up').magnificPopup({
- type: 'image',
- gallery: {
- enabled: true
- }
- });
- /* magnificPopup video view */
- $('.popup-video').magnificPopup({
- type: 'iframe'
- });
- // scrollIt for smoth scroll
- $.scrollIt({
- upKey: 38, // key code to navigate to the next section
- downKey: 40, // key code to navigate to the previous section
- easing: 'linear', // the easing function for animation
- scrollTime: 600, // how long (in ms) the animation takes
- activeClass: 'active', // class given to the active nav element
- onPageChange: null, // function(pageIndex) that is called when page is changed
- topOffset: 0 // offste (in px) for fixed top navigation
- });
- // scrollup bottom to top
- $.scrollUp({
- scrollName: 'scrollUp', // Element ID
- topDistance: '4500', // Distance from top before showing element (px)
- topSpeed: 300, // Speed back to top (ms)
- animation: 'fade', // Fade, slide, none
- animationInSpeed: 200, // Animation in speed (ms)
- animationOutSpeed: 200, // Animation out speed (ms)
- scrollText: '<i class="fa fa-angle-double-up"></i>', // Text for element
- activeOverlay: false, // Set CSS color to display scrollUp active point, e.g '#00FFFF'
- });
- // blog-page
- //brand-active
- $('.brand-active').owlCarousel({
- loop:true,
- margin:30,
- items:1,
- autoplay:true,
- nav:false,
- dots:false,
- autoplayHoverPause: true,
- autoplaySpeed: 800,
- responsive:{
- 0:{
- items:1,
- nav:false
- },
- 767:{
- items:4
- },
- 992:{
- items:7
- }
- }
- });
- // blog-dtails-page
- //project-active
- $('.project-active').owlCarousel({
- loop:true,
- margin:30,
- items:1,
- // autoplay:true,
- navText:['<i class="Flaticon flaticon-left-arrow"></i>','<i class="Flaticon flaticon-right-arrow"></i>'],
- nav:true,
- dots:false,
- // autoplayHoverPause: true,
- // autoplaySpeed: 800,
- responsive:{
- 0:{
- items:1,
- nav:false
- },
- 767:{
- items:1,
- nav:false
- },
- 992:{
- items:2,
- nav:false
- },
- 1200:{
- items:1,
- },
- 1501:{
- items:2,
- }
- }
- });
- if (document.getElementById('default-select')) {
- $('select').niceSelect();
- }
- //about-pro-active
- $('.details_active').owlCarousel({
- loop:true,
- margin:0,
- items:1,
- // autoplay:true,
- navText:['<i class="ti-angle-left"></i>','<i class="ti-angle-right"></i>'],
- nav:true,
- dots:false,
- // autoplayHoverPause: true,
- // autoplaySpeed: 800,
- responsive:{
- 0:{
- items:1,
- nav:false
- },
- 767:{
- items:1,
- nav:false
- },
- 992:{
- items:1,
- nav:false
- },
- 1200:{
- items:1,
- }
- }
- });
- });
- // resitration_Form
- $(document).ready(function() {
- $('.popup-with-form').magnificPopup({
- type: 'inline',
- preloader: false,
- focus: '#name',
- // When elemened is focused, some mobile browsers in some cases zoom in
- // It looks not nice, so we disable it:
- callbacks: {
- beforeOpen: function() {
- if($(window).width() < 700) {
- this.st.focus = false;
- } else {
- this.st.focus = '#name';
- }
- }
- }
- });
- });
- //------- Mailchimp js --------//
- function mailChimp() {
- $('#mc_embed_signup').find('form').ajaxChimp();
- }
- mailChimp();
- // Search Toggle
- $("#search_input_box").hide();
- $("#search").on("click", function () {
- $("#search_input_box").slideToggle();
- $("#search_input").focus();
- });
- $("#close_search").on("click", function () {
- $('#search_input_box').slideUp(500);
- });
- // Search Toggle
- $("#search_input_box").hide();
- $("#search_1").on("click", function () {
- $("#search_input_box").slideToggle();
- $("#search_input").focus();
- });
- $(document).ready(function() {
- $('select').niceSelect();
- });
- // prise slider
-
- })(jQuery);
|