1$(document).ready(function () { 2 var btn = $('.btn-scroll-top'); 3 var scroll_picca = $('.recommended-article').offset().top; 4 var stopHeight = $('.recommended-article').outerHeight(); 5 $(window).scroll(function () { 6 if ($(window).scrollTop() > 1300 && $(window).scrollTop() < scroll_picca - stopHeight) { 7 btn.fadeIn(); 8 } else { 9 btn.fadeOut(); 10 } 11 }); 12 btn.on('click', function (e) { 13 e.preventDefault(); 14 $('html, body').animate({scrollTop: 0}, '300'); 15 }); 16}); 17 18 19 20$(document).ready(function () { 21 $('#m3').text('0 %'); 22 $('#m4').text('0 %'); 23 $('#m31').text('0 ÑÑб.'); 24 $('#m32').text('0 ÑÑб.'); 25 var a = $('#calc input'); 26 $('#calc input').keyup(function () { 27 mass = []; 28 $(a).each(function () { 29 var i = $(this).val(); 30 var b = 0; 31 i = i.replace(/^0|[^\d\.\,]/g, '').replace(".", ','); 32 $(this).val(i); 33 b = parseFloat(i.replace(/^0|\s/g, "").replace(",", ".")) 34 mass.push(b); 35 }); 36 var result = (mass[1] / mass[0] * 100).toFixed(2); 37 var result4 = ((mass[1] - mass[0]) / mass[0] * 100).toFixed(2); 38 var result32 = (mass[1] / mass[0] * 1000).toFixed(2); 39 var result31 = (mass[1] / mass[0]).toFixed(2); 40 if (isNaN(result)) { 41 $('#m3').text('0 %'); 42 $('#m4').text('0 %'); 43 $('#m31').text('0 ÑÑб.'); 44 $('#m32').text('0 ÑÑб.'); 45 } else 46 $('#m3').text(result.replace('.', ',') + ' %'); 47 $('#m4').text(result4.replace('.', ',') + ' %'); 48 $('#m31').text(result31.replace('.', ',') + ' ÑÑб.'); 49 $('#m32').text(result32.replace('.', ',') + ' ÑÑб.'); 50 51 }); 52 53 54}); 55$(document).ready(function () { 56 57 $('.lazy_pdf').each(function (i, s) { 58 $(this).attr('data', $(this).attr('lazy-data')); 59 60 61 }); 62}); 63 64$(document).on('click', '.schare-box-link,.n_click_share', function () { 65 value_click = $(this).data('href'); 66 if (value_click == 'copy') { 67 68 console.log(value_click); 69 navigator.clipboard.writeText( $('.article-home').data('url')).then( 70 function() { 71 /* clipboard successfully set */ 72 console.log('Success! The text was copied to your clipboard') 73 }, 74 function() { 75 /* clipboard write failed */ 76 console.log('Opps! Your browser does not support the Clipboard API') 77 } 78 ) 79 80 } else { 81 window.open(value_click, "_blank", "top=100, left=100, width=600, height=500, scrollbars=yes, resizable=yes"); 82 } 83 84 85}) 86 87 88sended_text = null; 89$(document).on("keydown", function (e) { 90 91 if (e.keyCode == 13 && e.ctrlKey) { 92 var text_selected = window.getSelection(); 93 text_selected = text_selected.toString(); 94 if (!sended_text != text_selected) { 95 sended_text = text_selected; 96 $.ajax({ 97 method: 'POST', 98 url: '/ajax/error_text/', 99 data: { 100 text: text_selected, 101 url: window.location.href 102 }, success: function () { 103 $('#exampleModal').modal('show'); 104 }, error: function () { 105 $('#exampleModal').modal('show'); 106 } 107 108 109 }); 110 } 111 112 } 113}); 114$.ajax({ 115 method: 'POST', 116 url: '/ajax/leftmenutoajsx/', 117 data: { 118 id: $('.article-home').data('id'), 119 120 }, success: function (data) { 121 $('.left_menu_for_ajax').html(data.menu); 122 $('.popular-services').html(data.services); 123 } 124 125 126}); 127$.ajax({ 128 method: 'POST', 129 url: '/ajax/get_ajax_products/', 130 data: { 131 id: $('.article-home').data('id'), 132 133 }, success: function (data) { 134 if(data.count>0){ 135 $('.our_product').html(data.content); 136 137 $('.products-box-slider').owlCarousel({ 138 items: 1, 139 onChanged : callbackown 140 }); 141 if(data.count==1){ 142 $('.owl-dots').hide(); 143 } 144 function callbackown(event){ 145 146 var current = event.item.index; 147 var newurl = $(event.target).find(".owl-item").eq(current).find(".products-box-slider-item").data('url'); 148 149 $('.buttonforproduct').attr('href',newurl); 150 151 } 152 }else{ 153 $('.our_product').hide() 154 } 155 156 } 157 158 159}); 160 161$(document).on('click','.icansubscribe',function (){ 162email=$('#emailfieldsubs').val(); 163if(email==''){ 164 alert('ÐведиÑе E-mail');return ; 165} 166 167 if( !validateEmail(email)){ 168 169 alert('ÐведиÑе коÑÑекÑнÑй E-mail');return ; 170 171 } 172 173 $.ajax({ 174 method: 'GET', 175 url: '/ajax/subscribe/', 176 data: { 177 email:email, 178 179 }, success: function (data) { 180 $('#emailfieldsubs').val(''); 181 $('#exampleModal4').modal('show') 182 } 183 184 185 }); 186 187}) 188$(document).on('click','.icansubscribe2',function (){ 189email=$('#emailfieldsubs2').val(); 190if(email==''){ 191 alert('ÐведиÑе E-mail');return ; 192} 193 194 if( !validateEmail(email)){ 195 196 alert('ÐведиÑе коÑÑекÑнÑй E-mail');return ; 197 198 } 199 200 $.ajax({ 201 method: 'GET', 202 url: '/ajax/subscribe/', 203 data: { 204 email:email, 205 206 }, success: function (data) { 207 $('#emailfieldsubs2').val(''); 208 $('#exampleModal4').modal('show') 209 } 210 211 212 }); 213 214}) 215 216 217var uid_blog = localStorage.getItem('uid_blog'); 218if(!uid_blog||uid_blog==null){ 219 220 221 222 223 uid_blog=uuidv4(); 224 localStorage.setItem('uid_blog',uid_blog); 225} 226 227function uuidv4() { 228 return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { 229 var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); 230 return v.toString(16); 231 }); 232} 233$(document).on('click','.favorite-box',function (){ 234 235 $.ajax({ 236 method: 'POST', 237 url: '/ajax/click_favorite_box/', 238 data: { 239 uid_blog: uid_blog, 240 blog_id: $('.article-home').data('id'), 241 242 }, success: function (data) { 243 if(data.count==0){ 244 $('.favorite_box_count').html(''); 245 }else{ 246 $('.favorite_box_count').html(data.count); 247 } 248 249 if(data.do=='add'){ 250 $('.favorite-box').addClass('my_red'); 251 }else{ 252 $('.favorite-box').removeClass('my_red'); 253 } 254 } 255 256 257 }); 258 259 260 261}); 262 263$.ajax({ 264 method: 'POST', 265 url: '/ajax/articlelikes/', 266 data: { 267 uid_blog: uid_blog, 268 blog_id: $('.article-home').data('id'), 269 270 }, success: function (data) { 271 if(data.count==0){ 272 $('.favorite_box_count').html(''); 273 }else{ 274 $('.favorite_box_count').html(data.count); 275 } 276 if(data.do=='add'){ 277 $('.favorite-box').addClass('my_red'); 278 279 }else{ 280 $('.favorite-box').removeClass('my_red'); 281 } 282 } 283 284 285}); 286 287$('.read-box-btn').on('click', function (e) { 288 e.preventDefault(); 289 $('.read-box-hidden').fadeIn(); 290 $('#emailforpost').focus(); 291}) 292; 293 294$(document).on('click','.left_menu_for_ajax a',function (e){ 295 e.preventDefault(); 296 thisurl=$(this).attr('href'); 297 var myarr = thisurl.split("/"); 298 console.log(myarr); 299 thisurl=myarr[myarr.length-1] 300 console.log( $(thisurl).offset().top); 301 302 $('body,html').animate({ scrollTop: ($(thisurl).offset().top-80) }, 300); 303 304/* 305console.log(thisurl); 306console.log( $(thisurl).offset().top); 307 308 $('body,html').animate({ scrollTop: ($(thisurl).offset().top-80) }, 300); 309*/ 310 311}); 312$(document).on('click','.keep-menu-anchor a',function (e){ 313e.preventDefault(); 314thisurl=$(this).attr('href'); 315 316 317if($(thisurl).offset()){ 318 $('body,html').animate({ scrollTop: ($(thisurl).offset().top-80) }, 300); 319}else{ 320 321 thisurl=$(this).html(); 322 element=$('h3:contains("'+thisurl+'")') ; 323 $('body,html').animate({ scrollTop: ($(element).offset().top-80) }, 300); 324} 325 326}); 327$(document).on('click','.sendposttoemail',function (){ 328 email=$('#emailforpost').val(); 329 if(email==''){ 330 alert('ÐведиÑе E-mail');return ; 331 } 332 if( !validateEmail(email)){ 333 334 alert('ÐведиÑе коÑÑекÑнÑй E-mail');return ; 335 336 } 337 338 $.ajax({ 339 method: 'GET', 340 url: '/ajax/sendemailtopost/', 341 data: { 342 email:email, 343 id:$('.article-home').data('id') 344 345 }, success: function (data) { 346 $('#emailforpost').val(''); 347 $('#exampleModal2').modal('show') 348 } 349 350 351 }); 352 353 354 355}); 356//emailforpost 357// fixed sidebar 358$(window).on('load resize', function () { 359 if ($(window).width() > 1100) { 360 $(function () { 361 var topPos = $('.list-social-sidebar').offset().top; 362 $(window).scroll(function () { 363 var top = $(document).scrollTop(), 364 pip = $('.blog-sidebar-wraper').offset().top, 365 height = $('.list-social-sidebar').outerHeight(); 366 if (top > topPos && top < pip - height) { 367 $('.list-social-sidebar').addClass('sticky').removeAttr("style"); 368 } else if (top > pip - height) { 369 $('.list-social-sidebar').removeClass('sticky').css({'position': 'relative'}); 370 } else { 371 $('.list-social-sidebar').removeClass('sticky'); 372 } 373 }); 374 }); 375 } 376}); 377if($('.list-number.keep-menu').height()<248){ 378$('.links-toggle.links-blue').hide() 379} 380const validateEmail = (email) => { 381 return email.match( 382 /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ 383 ); 384}; 385// hidden list > 6 386// hidden list > 6 387// hidden list > 6 388$('.plus-minus-block tbody tr td > ul, .plus-minus-block tbody tr td > ol').each(function () { 389 $(this).find('.table-toggle-item ~ li').hide(); 390}); 391 392$('.table-toggle').on('click', function (e) { 393 e.preventDefault(); 394 395 var 396 $this = $(this), 397 content = $(this).parents('ul, ol').find('li'); 398 399 content.slideDown(); 400 401 $this.parent().hide(); 402 403}); 404/* 405 406$('.table-toggle').on('click', function (e) { 407 e.preventDefault(); 408 409 var 410 $this = $(this), 411 content = $(this).parent().find('ul > li'); 412 413 414 if (!$this.hasClass('trigger')) { 415 $this.addClass('trigger'); 416 $this.html('- СвеÑнÑÑÑ'); 417 418 content.slideDown(); 419 } else { 420 $this.removeClass('trigger'); 421 $this.html('+ РаÑкÑÑÑÑ'); 422 423 424 content.slice(6).slideUp(); 425 } 426}); 427*/ 428function search_xx(text){ 429 i=0; 430 if($('.post-body')) {
431 mfof=$('.post-body').html(); 432 433 if (mfof.indexOf(text) >= 0) { 434 i = 1; 435 } 436 } 437 return i; 438} 439function get_dert(){ 440//ÑейÑбÑк, инÑÑагÑам, facebook, instagram 441 i=0; 442i+=search_xx('ÑейÑбÑк'); 443i+=search_xx('инÑÑагÑам'); 444i+=search_xx('facebook'); 445i+=search_xx('instagram'); 446 i+=search_xx('ФейÑбÑк'); 447 i+=search_xx('ÐнÑÑагÑам'); 448 i+=search_xx('Facebook'); 449 i+=search_xx('Instagram'); 450 451 console.log('iiiiii',i) 452 if(i>0){ 453 $('.found-mistake').append('<p>* - ÐÑÐ¸Ð½Ð°Ð´Ð»ÐµÐ¶Ð¸Ñ ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ð¸ Meta, пÑÐ¸Ð·Ð½Ð°Ð½Ð°Ñ ÑкÑÑÑемиÑÑÑкой оÑганизаÑией и запÑеÑена в РФ.</p>'); 454 455 var replaced = $(".post-body").html().replaceAll("Facebook",'Facebook*'); 456 replaced=replaced.replaceAll('ÑейÑбÑк','ÑейÑбÑк*'); 457 replaced =replaced.replaceAll('инÑÑагÑам','инÑÑагÑам*'); 458 replaced =replaced.replaceAll('facebook','facebook*'); 459 460 replaced =replaced.replaceAll('instagram','instagram*'); 461 replaced =replaced.replaceAll('ФейÑбÑк','ФейÑбÑк'); 462 replaced =replaced.replaceAll('ÐнÑÑагÑам','ÐнÑÑагÑам*'); 463 replaced =replaced.replaceAll('Facebook','Facebook*'); 464 replaced =replaced.replaceAll('Instagram','Instagram*'); 465 replaced =replaced.replaceAll('**','*'); 466 $(".post-body").html(replaced); 467 468 469 470 } 471} 472get_dert();
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.