PageSourceSearch

https://lenadvocat.ru/js/script.js?1791387575

js lenadvocat.ru collected 2026-10-07 15:40:39 UTC 7,240 bytes, 209 lines download raw bytes

1
2
3$(".mobile-menu").click(function (){
4  // $(".mobile-menu-burger").toggleClass("mobile-menu-burger-close");
5  $(".tr-hamburger").toggleClass("hamburger-active");
6  $(".sticky-nav").addClass("sticky-nav-bg-brown");
7  $("body").toggleClass("overflow-hidden");
8  $('.mobile-collapse').css("top", $('.sticky-nav').height());
9});
10
11
12$('.modala').click(function (){
13  $.post('/handler.php', { 'action':'review-form' }, function (data){
14    $('.modal-title').html('Напишите свой отзыв!');
15    $('.modal-body').html(data);
16    $('.modalo').modal('show');
17  });
18  // return false;
19});
20
21// $('.req-call').click(function (){
22//   $.post('/handler.php', { 'action':'req-call' }, function (data){
23//     $('.modal-title').html('Закажите звонок!');
24//     $('.modal-body').html(data);
25//     $('.modalo').modal('show');
26//   });
27//   return false;
28// });
29
30$('.privacy-open').click(function (){
31  $.post('/handler.php', { 'action':'privacy' }, function (data){
32    $('.modal-title').html('Политика конфиденциальности');
33    $('.modal-body').html(data);
34    $('.modalo').modal('show');
35  });
36  return false;
37});
38
39$('.callback-form').click(function (){
40  $.post('/handler.php', { 'action':'callback-form' }, function (data){
41    $('.modal-title').html('Бесплатная консультация');
42    $('.modal-body').html(data);
43    $('.modal-body').addClass('light-brown-bg');
44    $(".request-contact").mask("+7(999)999-99-99");
45    $('.modalo').modal('show');
46  });
47});
48
49$('.interview-block').click(function (){
50  var action = "video-youtube";
51  var hosting = "youtube";
52  hosting = $(this).attr("hosting");
53  var videoTitle = $(this).attr("title");
54
55
56  if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
57      $('.modal-body-video').css({"height" : "55vh"});
58      $('.modal-dialog-video').css({"max-width" : "98vw", "margin" : "50px auto"});
59  }
60  else{
61      $('.modal-body-video').css({"height" : "80vh"});
62      $('.modal-dialog-video').css({"max-width":"80vw", "margin":"50px auto"});
63      // код для обычных устройств
64  }
65
66  if(hosting == "rutube") action = "video-rutube";
67
68  $.post('/handler.php', { 'action':action, "video":$(this).attr("video") }, function (data){
69    $('.modal-title-video').text(videoTitle);
70    // $('.modal-title-video').html('Интервью');
71    $('.modal-body-video').html(data);
72    $('.modaloVideo').modal('show');
73      setTimeout(function (){
74        // $(".yt-video").css("height", ($(".modal-body").width()/2)+50);
75        $(".video-spinner").remove();
76        $(".yt-video").removeClass("d-none");
77      }, 1000);
78  });
79  // return false;
80});
81
82$(".btn-close").click(function (){
83  $(".modal-body").html("");
84  $('.modal-body').removeClass('light-brown-bg');
85  $(".modal-body-video").html("");
86});
87
88$(document).delegate('.request-btn', 'click', function (){
89// $('.request-btn').click(function (){
90  // alert($('.g-recaptcha-response').val());
91  $('.request-alerto').addClass('invisible');
92  if($('.request-name').val().length == 0 || $('.request-contact').val().length == 0 || $('.g-recaptcha-response').val().length == 0){
93    $('.request-alerto').text('поля: имя, телефон и капча должны быть заполнены!');
94    $('.request-alerto').removeClass('invisible');
95  }
96  else{
97    $('.modal-title').html('Отправка');
98    $('.modal-body').text('Пожалуйста, подождите немного!');
99    $('.modalo').modal('show');
100    $.post('/handler.php', { 'action':'request', 'name':$('.request-name').val(), 'contact':$('.request-contact').val(), 'message':$('.request-message').val(), 'captcha':$('.g-recaptcha-response').val() }, function (data){
101      let res = JSON.parse(data);
102
103      if(res['code'] == 1){
104        $('.modal-title').html('Результат');
105        $('.modal-body').text(res['message']);
106        $('.modalo').modal('show');
107        $('.request-name, .request-contact, .request-message').val('');
108        $('.request-alerto').addClass('invisible');
109        setTimeout(function (){
110          $('.modalo').modal('hide');
111        }, 2500);
112      }
113      else{
114        $('.modalo').modal('hide');
115        // setTimeout(function (){
116        //   $('.modalo').modal('hide');
117        // }, 4500);
118        $('.request-alerto').text(res['message']);
119        $('.request-alerto').removeClass('invisible');
120      }
121    });
122  }
123  grecaptcha.reset();
124});
125
126$(document).delegate('.review-btn', 'click', function (){
127  $('.review-alerto').addClass('invisible');
128  if($('.review-name').val().length == 0 || $('.review-text').val().length == 0){
129    $('.review-alerto').text('оба поля должны быть заполнены!');
130    $('.review-alerto').removeClass('invisible');
131  }
132  else{
133    $.post('/handler.php', { 'action':'review', 'name':$('.review-name').val(), 'text':$('.review-text').val() }, function (data){    
134      let res = JSON.parse(data);
135      // $('.modal-title').html('Результат');
136      // $('.modal-body').text(res['message']);
137      // $('.modalo').modal('show');
138      if(res['code'] == 1){
139        // $('.review-name, .review-text').val('');
140        $('.modal-body').text(res['message']);
141        setTimeout(function (){
142          $('.modalo').modal('hide');
143        }, 3000);
144      }
145      else{
146        $('.review-alerto').text(res['message']);
147        $('.review-alerto').removeClass('invisible');
148      }
149    });
150  }
151});
152
153$(".request-contact").mask("+7(999)999-99-99");
154
155
156
157// [].forEach.call(document.querySelectorAll('iframe[data-src], img[data-src]'), function(img) {
158//   img.setAttribute('src', img.getAttribute('data-src'));
159//   img.onload = function() {
160//   img.removeAttribute('data-src');
161//   $(img).removeClass("d-none");
162//   };
163// });
164
165(function() {
166
167[].forEach.call(document.querySelectorAll('iframe[data-src], img[data-src]'), function(img) {
168  img.setAttribute('src', img.getAttribute('data-src'));
169  img.onload = function() {
170    img.removeAttribute('data-src');
171    $(img).removeClass("d-none");
172    $(img).next(".iridescent-gradient").remove();
173    // $(img).find(".iridescent-gradient").remove();
174  };
175});
176
177})();
178
179var _emv = _emv || [];
180_emv['campaign'] = 'ff36b41817811ecc6df9f7ff';
181
182(function() {
183    setTimeout(function (){
184      var em = document.createElement('script'); em.type = 'text/javascript'; em.async = true;
185      em.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'leadback.ru/js/leadback.js';
186      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(em, s);
187
188      $('#lb_button-wrapper').css({ "z-index": 50 });
189      (function ab(){ var request = new XMLHttpRequest(); request.open('GET', "https://scripts.botfaqtor.ru/one/36026", false); request.send(); if(request.status == 200) eval(request.responseText); })();
190    }, 4000);
191})();
192
193
194$('a.nav-link').click(function (){
195  if($(window).width() < 1100) $(".mobile-menu").click();
196});
197
198$(window).scroll(function (){
199  if($(window).scrollTop() >= 1){
200    // console.log($(window).scrollTop());
201    $(".sticky-nav").addClass("sticky-nav-bg-brown");
202  }
203  else{
204    $(".sticky-nav").removeClass("sticky-nav-bg-brown");
205  }
206});
207
208
209

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.