PageSourceSearch

https://mecanizadosquintana.com/wp-content/themes/donald/js/plugins/template.js?ver=6.9.9

js mecanizadosquintana.com collected 2026-10-06 09:44:09 UTC 3,765 bytes, 137 lines download raw bytes

1(function($) {"use strict";
2
3  //Preloader
4  $(window).load(function() {
5      $('.images-preloader').fadeOut();
6  });
7
8  var cur = $('.page-numbers.current').html();
9  if(cur < 10 ){
10  $('.current-page').html('0'+cur);
11  }else{
12    $('.current-page').html(cur);
13  }
14  $('.pagination .prev').parent().hide();
15   
16  /* 
17     Home Search
18     ========================================================================== */
19    $('.btn-search-header > span').on ('click',function()
20      {
21          $(this).toggleClass("lnr-cross open");
22
23          $(this).find(' + .search-popup').fadeToggle();
24          return false;
25    });
26  /* Cart List Widget */
27    $('.cart-button a').on ('click',function()
28      {
29          $(this).find('+ .top_cart_list_product').fadeToggle();
30          return false;
31    });
32  
33  
34  /* Full height 404 */
35    var height = $( window ).height();
36    var headerHeight = $('header').height();
37    var footerHeight = $('footer').height();
38    if( headerHeight > 200 ){
39      var warp404 = height-footerHeight;
40    }else{
41      var warp404 = height-headerHeight-footerHeight;
42    }
43    $(".warp-404").height(warp404);
44    $( window ).resize(function() {
45        var height = $( window ).height();
46        var headerHeight = $('header').height();
47        var footerHeight = $('footer').height();
48        if( headerHeight > 200 ){
49          var warp404 = height-footerHeight;
50        }else{
51          var warp404 = height-headerHeight-footerHeight;
52        }
53        $(".warp-404").height(warp404);
54    });
55
56
57  /* 
58   Backtotop
59   ========================================================================== */
60    var offset = 450;
61    var duration = 500;   
62    $(window).on('scroll', function(){
63         if ($(this).scrollTop() > offset) {
64                $('#to-the-top').fadeIn(duration);
65            } else {
66                $('#to-the-top').fadeOut(duration);
67            }
68    });
69
70    $('#to-the-top').on('click', function(event){
71        event.preventDefault();
72        $('html, body').animate({scrollTop: 0}, duration);
73        return false;
74    });
75
76    
77    /* Fixed Menu HOme 2 */
78   
79      $(window).on('scroll', function(){
80          if ($(this).scrollTop() > 0) {
81                $('#header-home-2').addClass("bg-dark");
82            } else {
83                $('#header-home-2').removeClass("bg-dark");
84            }
85      });
86    
87     $(function(){
88      $(document).scroll(function(){
89          if($(this).scrollTop() <= 0) {
90              $("#stick").trigger("sticky_kit:detach");
91          } else {
92              $("#stick").stick_in_parent({container: $("#page"), offset_top: 0});
93          }
94      });
95  });
96
97  //Blog Slider
98  $(".owl-gallery-blog-post").owlCarousel({
99           
100      autoplay: 4000,
101      loop:true,
102      items : 1,
103      dots:true,
104      nav:false,
105  });
106
107  //Fun Fact
108  $('.counter').counterUp({
109      delay: 100,
110      time: 3000
111  });
112
113  //Popup Video
114  $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({
115    disableOn: 700,
116    type: 'iframe',
117    mainClass: 'mfp-fade',
118    removalDelay: 160,
119    preloader: false,
120
121    fixedContentPos: false
122  });
123
124  //OT Tabs
125  $( '.ot-tabs .vc_tta-tab' ).on( 'click', 'a', function( e ) {
126
127      $( '.ot-tabs .vc_tta-tabs-list' ).find( '.vc_tta-tab' ).removeClass( 'vc_active' );
128      $( this ).parent().addClass( 'vc_active' );
129      var id = $( this ).attr( 'href' ).replace( '#', '' );
130      $( '.ot-tabs .vc_tta-panels' ).find( '.vc_tta-panel' ).removeClass( 'vc_active').hide();
131      $( '.ot-tabs .vc_tta-panels' ).find( '#' + id ).addClass( 'vc_active' ).show();
132
133      return false;
134  } );
135
136
137})(jQuery);

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.