PageSourceSearch

https://financereality.ru/wp-content/themes/techup/assets/js/custom.js?ver=6.8.1

js financereality.ru collected 2026-10-08 01:28:29 UTC 14,122 bytes, 616 lines download raw bytes

1/*--------------------------------------------------
2 
3
4    JS INDEX
5    ================================================
6    * preloader js
7    * scroll to top js
8    * sticky menu js
9    * toggle search
10    * navigation mobile menu
11    * programs-slider-one
12    * blog one slider
13    * Isotop And Masonry
14    * magnific popup
15    * counter
16    * Team Slider-two
17    * testimonial slider js
18    * partner slider js
19    * service 3 slider js
20    * service 4 slider js
21    * class slider js
22    * social sharing
23    * box mouse-enter hover
24    * Google map
25    ================================================*/
26
27(function ($) {
28  "use strict";
29
30  var $main_window = $(window);
31
32  /*====================================
33  preloader js
34  ======================================*/
35  $main_window.on("load", function () {
36    $(".preloader").fadeOut("slow");
37  });
38
39  /*====================================
40  scroll to top js
41  ======================================*/
42  $(window).on("scroll", function () {
43    if ($(this).scrollTop() > 250) {
44      $("#c-scroll").fadeIn(200);
45    } else {
46      $("#c-scroll").fadeOut(200);
47    }
48  });
49  $("#c-scroll").on("click", function () {
50    $("html, body").animate({
51        scrollTop: 0
52      },
53      "slow"
54    );
55    return false;
56  });
57
58  /*====================================
59     sticky menu js
60  ======================================*/
61
62  $main_window.on('scroll', function () {
63    var scroll = $(window).scrollTop();
64    if (scroll >= 200) {
65      $(".affix").addClass("sticky-menu");
66    } else {
67      $(".affix").removeClass("sticky-menu");
68    }
69  });
70  
71  
72//   $('.jarallax').jarallax({
73//    speed: 0.2
74// });
75
76
77
78  /*====================================
79  toggle search
80  ======================================*/
81  $('.menu-search a').on("click", function () {
82    $('.menu-search-form').toggleClass('s-active');
83  });
84
85
86  /*====================================
87      navigation mobile menu
88  ======================================*/
89
90  function mainmenu() {
91    $('.dropdown-menu a.dropdown-toggle').on('click', function (e) {
92      if (!$(this).next().hasClass('show')) {
93        $(this).parents('.dropdown-menu').first().find('.show').removeClass("show");
94      }
95      var $subMenu = $(this).next(".dropdown-menu");
96      $subMenu.toggleClass('show');
97
98      return false;
99    });
100  }
101  mainmenu();
102
103
104
105  /*====================================
106    programs-slider-one
107  ======================================*/
108  if ($(".programs-slider-one").length > 0) {
109    var swiper = new Swiper('.programs-slider-one', {
110      navigation: {
111        nextEl: '.swiper-button-next',
112        prevEl: '.swiper-button-prev',
113      },
114      slidesPerView: 5,
115      paginationClickable: true,
116      spaceBetween: 0,
117      loop: true,
118      centeredSlides: true,
119      slideToClickedSlide: true,
120      parallax: true,
121      autoplay: {
122        delay: 3500,
123        disableOnInteraction: false,
124      }, 
125      autoplayDisableOnInteraction: false,
126      effect: 'coverflow',
127      coverflowEffect: {
128        rotate: 0,
129        stretch: 0,
130        depth: 20,
131        modifier: 1,
132        slideShadows: false,
133      },
134      breakpoints: {
135        992: {
136          slidesPerView: 3,
137        },
138        576: {
139          slidesPerView: 1,
140        }
141      }
142    });
143  }
144
145   /*------------------------
146    Testimonial Slider
147    ----------------------- */
148    $(".testimonial-slider").owlCarousel({
149        items: 1,
150        dots: false,
151        autoplay: true,
152        loop: true,
153        smartSpeed: 1200,
154        nav: true,
155        navText: ["<i class='arrow_left'></i>", "<i class='arrow_right'></i>"]
156    });
157
158    // Testimonials carousel (uses the Owl Carousel library)
159  $(".testimonials-carousel").owlCarousel({
160    autoplay: true,
161    dots: true,
162    loop: true,
163    responsive: {
164      0: {
165        items: 1
166      },
167      768: {
168        items: 1
169      },
170      900: {
171        items: 2
172      },
173      1400: {
174        items: 3
175      }
176    }
177  });
178
179
180  /*====================================
181    blog one slider
182  ======================================*/
183  var teamslider = $(".blog-slider");
184  teamslider.owlCarousel({
185    margin: 30,
186    autoplay: true,
187    autoplayHoverPause: true,
188    nav: false,
189    smartSpeed: 1000,
190    dots: true,
191    loop: true,
192    navText: [
193      '<i class="fa fa-arrow-left"></i>',
194      '<i class="fa fa-arrow-right"></i>'
195    ],
196    responsiveClass: true,
197    responsive: {
198      0: {
199        items: 1,
200      },
201      768: {
202        items: 2,
203      },
204      1199: {
205        items: 3,
206      }
207    }
208  });
209
210
211  /*====================================
212    Isotop And Masonry
213  ======================================*/
214  if ($(".masonary-wrap").length > 0) {
215    $main_window.on('load', function () {
216      var $grid = $('.masonary-wrap').isotope({
217        itemSelector: '.mas-item',
218        percentPosition: true,
219        masonry: {
220          columnWidth: '.mas-item'
221        }
222      });
223      $('.sorting').on('click', '.filter-btn', function () {
224        var filterValue = $(this).attr('data-filter');
225        $grid.isotope({
226          filter: filterValue
227        });
228      });
229      $('.sorting li').on('click', function (event) {
230        $(".filter-btn").removeClass('active');
231        $(this).addClass('active');
232        event.preventDefault();
233      });
234    });
235  }
236
237  /*====================================
238     magnific popup
239   ======================================*/
240  if ($('.project').length > 0) {
241    $('.project').magnificPopup({
242      delegate: '.pop-btn',
243      type: 'image',
244      gallery: {
245        enabled: true
246      },
247      removalDelay: 300,
248      mainClass: 'mfp-fade'
249    });
250  }
251
252  /*=======================================
253     counter
254  ======================================= */
255
256  if ($('#counters').length > 0) {
257    var a = 0;
258    $main_window.scroll(function () {
259      var oTop = $('#counters').offset().top - window.innerHeight;
260      if (a === 0 && $main_window.scrollTop() > oTop) {
261        $('.count').each(function () {
262          var $this = $(this),
263            countTo = $this.attr('data-count');
264          $({
265            countNum: $this.text()
266          }).animate({
267            countNum: countTo
268          }, {
269            duration: 3000,
270            easing: 'swing',
271            step: function () {
272              $this.text(Math.floor(this.countNum));
273            },
274            complete: function () {
275              $this.text(this.countNum);
276              //alert('finished');
277            }
278          });
279        });
280        a = 1;
281      }
282
283    });
284  }
285
286  /*====================================
287	 team-slider-two
288	======================================*/
289
290  var team2slider = $(".team-slider-two");
291  team2slider.owlCarousel({
292    autoplay: true,
293    autoplayHoverPause: true,
294    nav: true,
295    smartSpeed: 1000,
296    dots: false,
297    loop: true,
298    margin: 30,
299    navText: [
300      '<i class="fa fa-angle-left"></i>',
301      '<i class="fa fa-angle-right"></i>'
302    ],
303    responsiveClass: true,
304    responsive: {
305      0: {
306        items: 1,
307      },
308      575: {
309        items: 1,
310      },
311      991: {
312        items: 2,
313      }
314    }
315  });
316
317function accessgymnas() {
318$( document ).on( 'keydown', function( e ) {
319    if ( $( window ).width() > 992 ) {
320        return;
321    }
322    var activeElement = document.activeElement;
323    var menuItems = $( '#nav-content .menu-item > a' );
324    var firstEl = $( '.menu-toggle' );
325    var lastEl = menuItems[ menuItems.length - 1 ];
326    var tabKey = event.keyCode === 9;
327    var shiftKey = event.shiftKey;
328    if ( ! shiftKey && tabKey && lastEl === activeElement ) {
329        event.preventDefault();
330        firstEl.focus();
331    }
332} );
333}
334accessgymnas();
335  /*====================================
336	  testimonial slider js
337	======================================*/
338  
339  var owl_testi1 = jQuery(".testi-one-slider");
340  owl_testi1.owlCarousel({
341    loop: true,
342    margin: 0,
343    animateOut: 'fadeOut',
344    animateIn: 'fadeIn',
345    responsiveClass: true,
346    items: 1,
347    autoplay: true,
348    autoplayHoverPause: false,
349    nav: true,
350    navText: [
351      '<i class="fa fa-angle-left"></i>',
352      '<i class="fa fa-angle-right"></i>'
353    ],
354    dotsContainer: '#testi-custom-thumb',
355  });
356
357  /*====================================
358    blog one slider
359  ======================================*/
360  var teamslider = $(".blog-slider");
361  teamslider.owlCarousel({
362    margin: 30,
363    autoplay: true,
364    autoplayHoverPause: true,
365    nav: false,
366    smartSpeed: 1000,
367    dots: true,
368    loop: true,
369    navText: [
370      '<i class="fa fa-arrow-left"></i>',
371      '<i class="fa fa-arrow-right"></i>'
372    ],
373    responsiveClass: true,
374    responsive: {
375      0: {
376        items: 1,
377      },
378      768: {
379        items: 2,
380      },
381      1199: {
382        items: 3,
383      }
384    }
385  });
386
387  // Testimonials carousel (uses the Owl Carousel library)
388  $(".testimonials-carousel").owlCarousel({
389    autoplay: true,
390    dots: true,
391    loop: true,
392    responsive: {
393      0: {
394        items: 1
395      },
396      768: {
397        items: 1
398      },
399      900: {
400        items: 2
401      },
402      1400: {
403        items: 3
404      }
405    }
406  });
407
408
409  /*====================================
410		partner slider js
411	======================================*/
412
413  var partnerslider = $(".partner-slider");
414  partnerslider.owlCarousel({
415    autoplay: true,
416    nav: false,
417    autoplayHoverPause: true,
418    smartSpeed: 350,
419    dots: false,
420    margin: 30,
421    loop: true,
422    navText: [
423      '<i class="fa fa-arrow-left"></i>',
424      '<i class="fa fa-arrow-right"></i>'
425    ],
426    responsiveClass: true,
427    responsive: {
428      0: {
429        items: 1,
430      },
431      575: {
432        items: 2,
433      },
434      991: {
435        items: 4,
436      },
437      1199: {
438        items: 5,
439      }
440    }
441  });
442
443
444  /*====================================
445		service 3 slider js
446	======================================*/
447
448  var service3slider = $(".service-3slider");
449  service3slider.owlCarousel({
450    autoplay: true,
451    nav: false,
452    autoplayHoverPause: false,
453    smartSpeed:1500,
454    dots: false,
455    margin:0,
456    loop: true,
457    navText: [
458      '<i class="fa fa-arrow-left"></i>',
459      '<i class="fa fa-arrow-right"></i>'
460    ],
461    responsiveClass: true,
462    responsive: {
463      0: {
464        items: 1,
465      },
466      575: {
467        items: 2,
468      },
469      991: {
470        items: 4,
471      },
472      1199: {
473        items: 5,
474      }
475    }
476  });
477
478
479  /*====================================
480		service 4 slider js
481	======================================*/
482
483  var service4slider = $(".service-4slider");
484  service4slider.owlCarousel({
485    autoplay: true,
486    nav: false,
487    autoplayHoverPause: true,
488    smartSpeed: 1500,
489    dots: false,
490    margin:30,
491    loop: true,
492    navText: [
493      '<i class="fa fa-arrow-left"></i>',
494      '<i class="fa fa-arrow-right"></i>'
495    ],
496    responsiveClass: true,
497    responsive: {
498      0: {
499        items: 1,
500      },
501      575: {
502        items: 2,
503      },
504      991: {
505        items:2,
506      }
507    }
508  });
509
510
511  /*====================================
512		class slider js
513	======================================*/
514
515  var class3slider = $(".class-3slider");
516  class3slider.owlCarousel({
517    autoplay: true,
518    nav:true,
519    autoplayHoverPause: true,
520    smartSpeed: 500,
521    dots: false,
522    margin:30,
523    loop: true,
524    navText: [
525      '<i class="fa fa-angle-left"></i>',
526      '<i class="fa fa-angle-right"></i>'
527    ],
528    responsiveClass: true,
529    responsive: {
530      0: {
531        items: 1,
532      },
533      575: {
534        items: 2,
535      },
536      768: {
537        items: 3,
538      },
539      991: {
540        items: 4,
541      }
542    }
543  });
544
545  /*====================================
546	  social sharing
547	======================================*/
548  if ($(".share").length > 0) {
549    $(".share").jsSocials({
550      showLabel: false,
551      showCount: false,
552      shareIn: "blank",
553      shares: [{
554          share: "twitter",
555          logo: "fa fa-twitter-square",
556        },
557        {
558          share: "facebook",
559          logo: "fa fa-facebook-square"
560        },
561        {
562          share: "googleplus",
563          logo: "fa fa-google-plus-square"
564        },
565        {
566          share: "linkedin",
567          logo: "fa fa-linkedin-square"
568        },
569        {
570          share: "pinterest",
571          logo: "fa fa-pinterest-square"
572        }
573      ]
574    });
575  }
576
577
578  /*======================================
579    box mouse-enter hover
580   ====================================== */
581  var BoxHover = function () {
582    jQuery('.box-hover').on('mouseenter', function () {
583      jQuery(this).closest('.row').find('.box-hover').removeClass('active');
584      jQuery(this).addClass('active');
585    });
586  };
587  BoxHover();
588
589})(jQuery);
590
591
592/*======================================
593  Google map
594====================================== */
595if (document.getElementById("theme-map")) {
596  var myCenter = new google.maps.LatLng(-37.813628, 144.963058);
597
598  function initialize() {
599    var mapProp = {
600      center: myCenter,
601      scrollwheel: false,
602      zoom: 13,
603      mapTypeId: google.maps.MapTypeId.ROADMAP
604    };
605    var map = new google.maps.Map(document.getElementById("theme-map"), mapProp);
606    var marker = new google.maps.Marker({
607      position: myCenter,
608      animation: google.maps.Animation.BOUNCE,
609      icon: 'assets/img/mapi.png',
610      map: map,
611    });
612    marker.setMap(map);
613  }
614  google.maps.event.addDomListener(window, 'load', initialize);
615}
616// map initialization code  ends

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.