PageSourceSearch

https://www.paulmaior.com/wp-content/themes/paulmaior/script.js?ver=7.1.2

js paulmaior.com collected 2026-10-08 07:32:17 UTC 4,740 bytes, 149 lines download raw bytes

1
2jQuery(document).ready(function(){
3  var pozitie;
4  jQuery('.mobile_nav.closed .mobile_menu_bar').click(function(){
5
6    pozitie = document.documentElement.scrollTop;
7    console.log(pozitie);
8  });
9
10  jQuery('.mobile_nav.opened .mobile_menu_bar').click(function(){
11    console.log("2 " + pozitie);
12    jQuery("html, body").animate({ scrollTop: pozitie});
13  });
14  
15  
16    jQuery('.slider-hp').on('swiped-left', function(e) {
17      jQuery('.slider-hp .et-pb-arrow-next').trigger('click');
18    });
19
20    jQuery('.slider-hp').on('swiped-right', function(e) {
21      jQuery('.slider-hp .et-pb-arrow-prev').trigger('click');
22    });
23    /*jQuery(window).on("load resize",function(){
24      if (window.matchMedia("(max-width: 981px)").matches) {
25        let height = 0;
26        jQuery('.slider-hp .et_pb_slide').each(function(){
27            let actualSlideHeight = jQuery(this).outerHeight();
28            if(actualSlideHeight > height) {
29              height = actualSlideHeight;
30            }
31        });
32        jQuery('.slider-hp .et_pb_slide').css('min-height', height + 'px');
33      }
34    });*/
35
36    if(jQuery('.is-blog-post').attr('value') == "1") {
37      jQuery('#top-menu .menu-item').each(function(){
38        if(jQuery(this).hasClass('current-menu-item')) {
39          jQuery(this).removeClass('current-menu-item');
40        }
41      });
42      jQuery('.blog-menu-item').addClass('current-menu-item');
43    }
44    jQuery('.slider-noutati .owl-prev').after(`<a href="${jQuery('.pg-blog-link').val()}" class="post-slider-more">vezi mai multe</a>`);
45    jQuery(".contact-form form .telefon input").inputFilter(function(value) {
46        return /^[0-9]{0,10}$/.test(value);    // Allow digits only, using a RegExp
47    });
48
49
50    jQuery('.testimoniale-slider .et_pb_column').slick({
51      arrows:true,
52      infinite: true,
53      slidesToShow: 1,
54      slidesToScroll: 1,
55      variableWidth: false
56    });
57
58    jQuery(".mobile_menu_bar").on('click touchstart', function() {
59      if (jQuery(".mobile_nav").hasClass("opened")) {
60        jQuery("body").removeClass("stopScroll");
61      } else {
62        jQuery("body").addClass("stopScroll");
63      }
64    });
65
66    //jQuery(".owl-item.active:first").addClass("first");
67    jQuery(".owl-item.active:last").addClass("last");
68    jQuery(".owl-carousel").on('changed.owl.carousel', function(e) {
69      addLastItemActiveClass();
70    });
71    jQuery(".owl-carousel").on('drag.owl.carousel', function(e) {
72      addLastItemActiveClass();
73    });
74
75    /*jQuery('.slider-noutati').owlCarousel({
76      itemsCustom: [
77        [0, 1],
78        [450, 1.5],
79        [600, 2.5],
80        [700, 3],
81        [800, 3],
82        [1000, 4],
83        [1200, 4],
84        [1400, 4],
85        [1600, 4]
86      ],
87
88      lazyLoad: true,
89      navigation: false,
90    });*/
91
92  /*jQuery('.slider-noutati').owlCarousel({
93    center: true,
94    items:4,
95    loop:false,
96    autoWidth:true,
97});*/
98
99  if (window.matchMedia('(max-width: 1078px)').matches) {
100    /*if(jQuery("body").hasClass("page-id-29")){
101      //jQuery(".blog-title-row h2").parent().
102      jQuery("div#is_widget-2").appendTo(jQuery(".blog-title-row h2").parent());
103      jQuery('article.et_pb_post:nth-child(1)').after('<div class="widget_no_1"></div>');
104      jQuery("div#media_image-4").appendTo(jQuery(".widget_no_1"));
105      jQuery('article.et_pb_post:nth-child(3)').after('<div class="widget_no_2"></div>');
106      jQuery("div#media_image-5").appendTo(jQuery(".widget_no_2"));
107
108    }*/
109
110    if(jQuery("body").hasClass("page-id-29")){
111      //jQuery(".blog-title-row h2").parent().
112      jQuery("div#is_widget-2").appendTo(jQuery(".blog-title-row h2").parent());
113      jQuery('article.et_pb_post:nth-child(1)').after('<div class="widget_no_1"></div>');
114      jQuery("div#media_image-4").appendTo(jQuery(".widget_no_1"));
115      jQuery("div#media_image-5").appendTo(jQuery(".widget_no_1"));
116    }
117  }
118});
119
120function addLastItemActiveClass(){
121  setTimeout(function(){
122    jQuery(".last").removeClass("last");
123    var m = 0;
124    jQuery(".owl-item.active").each(function(){
125      if(m==4)
126      {
127        jQuery(this).addClass("last");
128      }
129      m++;
130    });
131  }, 10);
132}
133
134(function($) {
135    $.fn.inputFilter = function(inputFilter) {
136      return this.on("input keydown keyup mousedown mouseup select contextmenu drop", function() {
137        if (inputFilter(this.value)) {
138          this.oldValue = this.value;
139          this.oldSelectionStart = this.selectionStart;
140          this.oldSelectionEnd = this.selectionEnd;
141        } else if (this.hasOwnProperty("oldValue")) {
142          this.value = this.oldValue;
143          this.setSelectionRange(this.oldSelectionStart, this.oldSelectionEnd);
144        } else {
145          this.value = "";
146        }
147      });
148    };
149  }(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.