1var notifs_ids = new Array(); 2 3function in_array(needle, haystack, strict) { 4 var found = false, key, strict = !!strict; 5 6 for (key in haystack) { 7 if ((strict && haystack[key] === needle) || (!strict && haystack[key] == needle)) { 8 found = true; 9 break; 10 } 11 } 12 13 return found; 14} 15 16function showNotif(value) 17{ 18 19 var d = new Date(value.date*1000); 20 21 var item = ''+ 22 '<div class="item even">'+ 23 '<a href="#" onclick="return false;" style="font-size:12px;float:right;color:#fff;">закÑÑÑÑ</a>'+ 24 '<div class="right_foto" style="width:95px;text-align:center;">'+ 25 ''; 26 27 if(value.buttons) 28 { 29 $.each(value.buttons,function( index2, value2 ) { 30 item += '<span class="bx-notifier-item-button-wrap" style="padding-left:0px;"><span data-id="'+value.id+'" data-value="'+value2.VALUE+'" class="the_notif_answer bx-notifier-item-button bx-notifier-item-button-confirm bx-notifier-item-button-'+value2.TYPE+'">'+value2.TITLE+'</span></span>'; 31 }); 32 } 33 34 item += ''+ 35 '</div>'+ 36 '<div class="left_foto">' 37 ; 38 39 item += '' + '<a href="'+value.userLink+'">'; 40 if(value.userAvatar) 41 item += '<img src="'+value.userAvatar+'">'; 42 else 43 item += '<img src="/local/images/group_img.png" style="height:100%;">'; 44 item += '<span class="ramka"></span></a>'+ 45 '</div>'+ 46 '<div class="center_info">'+ 47 '<p><a href="'+value.userLink+'">'+value.userName+'</a> '+value.text+' <br>'+ 48 '<span class="time">'+d.toLocaleString()+'</span>'+ 49 '</p>'+ 50 '</div>'+ 51 '</div>'; 52 53 54 $('#flash_notifs').append(item); 55} 56 57function update_notifs() 58{ 59 60 var notifs_page = 1; 61 var o = {}; 62 o['IM_NOTIFY_HISTORY_LOAD_MORE'] = 'Y'; 63 o['PAGE'] = notifs_page; 64 o['IM_AJAX_CALL'] = 'Y'; 65 o['sessid'] = BX.bitrix_sessid(); 66 67 $('#settings').attr('data-page',notifs_page); 68 69 BX.ajax({ 70 dataType: 'json', 71 method: 'POST', 72 url: '/bitrix/components/bitrix/im.messenger/im.ajax.php?NOTIFY_HISTORY_LOAD_MORE&1111', 73 data: o, 74 onsuccess: function(data){ 75 var arr = Object.values(data.NOTIFY).sort().reverse(); 76 77 $('#settings .inner').html(''); 78 79 var unread = 0; 80 81 $.each(arr,function( index, value ) { 82 if(!value.userAvatar || value.userAvatar === '/bitrix/js/im/images/blank.gif') { 83 value.userAvatar = "/local/templates/voenchast/images/group_no_photo.jpg"; 84 } 85 if(value.read != 'Y') 86 unread++; 87 88 if(!in_array(value.id,notifs_ids)) 89 { 90 notifs_ids.push(value.id); 91 92 if(value.read != 'Y') 93 { 94 showNotif(value); 95 } 96 97 } 98 var d = new Date(value.date*1000); 99 100 var item = ''+ 101 '<div class="item even">'+ 102 '<div class="right_foto" style="width:95px;text-align:center;">'+ 103 ''; 104 105 if(value.buttons) 106 { 107 $.each(value.buttons,function( index2, value2 ) { 108 item += '<span class="bx-notifier-item-button-wrap" style="padding-left:0px;"><span data-id="'+value.id+'" data-value="'+value2.VALUE+'" class="the_notif_answer bx-notifier-item-button bx-notifier-item-button-confirm bx-notifier-item-button-'+value2.TYPE+'">'+value2.TITLE+'</span></span>'; 109 }); 110 } 111 112 item += ''+ 113 '</div>'+ 114 '<div class="left_foto">'+ 115 '<img src="'+value.userAvatar+'">'+ 116 '<a href="'+value.userLink+'"><span class="ramka"></span></a>'+ 117 '</div>'+ 118 '<div class="center_info">'+ 119 '<p><a href="'+value.userLink+'">'+value.userName+'</a> '+value.text+' <br>'+ 120 '<span class="time">'+d.toLocaleString()+'</span>'+ 121 '</p>'+ 122 '</div>'+ 123 '</div>'; 124 125 126 $('#settings .inner').append(item); 127 128 $('.num2 sup').hide(); 129 $('.num2 sup').text(unread); 130 if(unread > 0) 131 $('.num2 sup').show(); 132 133 }); 134 135 136 } 137 }); 138} 139jQuery(window).load(function(){ 140 $('.record-BLOG_238-corner').hide(); 141}); 142jQuery(document).ready(function(){ 143/*tabs*/ 144$('.record-BLOG_238-corner').hide(); 145 var tabs = $('#tabs'); 146 $('.tabs-content > div', tabs).each(function(i){ 147 if ( i !== 0 ) 148 $(this).hide(0); 149 }); 150 tabs.on('click', '.tabs a', function(e){ 151 e.preventDefault(); 152 var tabId = $(this).attr('href'); 153 $('.tabs a',tabs).removeClass(); 154 $(this).addClass('active'); 155 $('.tabs-content > div', tabs).hide(0); 156 $(tabId).show(); 157 }); 158 var hash = window.location.hash; 159 if(hash.length > 0 && tabs.find(hash)) 160 tabs.find('a[href='+hash+']').trigger('click'); 161/*tabs*/ 162 163/*fancybox*/ 164 $(".fancybox").fancybox(); 165 166 $('.fancybox_window').fancybox({ 167 closeBtn: false, 168 helpers: { 169 overlay: { 170 closeClick: false 171 } 172 } 173 }); 174 175 $(window).on('fancyboxClosed', function () { 176 $('#arr_left, #arr_right').hide(); 177 }); 178 179 $('body').on('click','#albom_wrap .close, #albom_wrap2 .close',function() { 180 $.fancybox.close(); 181 $('#arr_left, #arr_right').hide(); 182 }); 183 184 setInterval(function() { 185 /* 186 if(!$.fancybox.isOpened) 187 $('#arr_left, #arr_right').hide(); 188 else 189 $('#arr_left, #arr_right').show(); 190 */ 191 },1000); 192 193 $('#albom_wrap2 .block-img').click(function(e) { 194 if($(e.target).parent().hasClass('edit_photo') || $(e.target).hasClass('photo_claim')) { 195 if($(e.target).parent().hasClass('edit_photo')) { 196 var albumWrap = $(e.target).parents('#albom_wrap2'), 197 photoDescription = albumWrap.find('#photo_desc')[0].text(); 198 $('#edit_photo-popup textarea').val(photoDescription); 199 } 200 return false;
201 } 202 }); 203 /*$('#albom_wrap2 .window_footer').click(function(e) { 204 if($(e.target).hasClass('photo_claim')) 205 return false; 206 });*/ 207/*fancybox*/ 208 209 $(window).scroll(function() { 210 if($(this).scrollTop() !== 0) { 211 $('#toTop').fadeIn(); 212 } else { 213 $('#toTop').fadeOut(); 214 } 215 }); 216 $('#toTop').click(function() { 217 $('body,html').animate({scrollTop:0},800); 218 }); 219 220 $('.head-right .num2').click(function() { 221 222 if($('#settings').is(':visible')) 223 $('#settings').hide(); 224 else 225 { 226 if($('#soob_window').is(':visible')) 227 $('.head-right .num1').click(); 228 $('#settings').show(); 229 230 var id = 0; 231 $.each(notifs_ids,function( index, value ) { 232 if(id < parseInt(value)) 233 id = parseInt(value); 234 }); 235 236 BX.ajax({ 237 dataType: 'json', 238 method: 'POST', 239 url: '/bitrix/components/bitrix/im.messenger/im.ajax.php?2222', 240 data: {MAX_ID:id,sessid:BX.bitrix_sessid(),IM_NOTIFY_VIEWED:'Y'} 241 }); 242 } 243 244 return false; 245 }); 246 247 $('body').on('click','#flash_notifs .item',function(e) { 248 if ($(e.target).is('a') && $(e.target).attr('href') != '#') { 249 window.location.href = $(e.target).attr('href'); 250 } 251 else if ($(e.target).is('span.ramka')) { 252 window.location.href = $(e.target).parent().attr('href'); 253 } 254 else { 255 $(this).hide(); 256 } 257 return false; 258 }); 259 260 $(window).one('mousemove', function () { 261 setTimeout(function () { 262 $('#flash_notifs .item').fadeOut(); 263 }, 5000); 264 }); 265 266 $('#settings .close').click(function() { 267 $('#settings').hide(); 268 return false; 269 }); 270 271 $('.head-right .num1, .write-msg').click(function(e) { 272 e.preventDefault(); 273 if($('#soob_window').is(':visible')) 274 { 275 $('.right_block2').hide(); 276 $('.right_block').show(); 277 $('#soob_window').hide(); 278 $('#darkbox').hide(); 279 $('body').css('overflow','auto'); 280 281 } 282 else 283 { 284 285 if($('#settings').is(':visible')) 286 { 287 $('.head-right .num2').click(); 288 } 289 290 291 $('.right_block').hide(); 292 $('.right_block2').show(); 293 $('#soob_window').show(); 294 $('#darkbox').show(); 295 $('body').css('overflow','hidden'); 296 if ($(this).is('.write-msg')) { 297 var user_id = $(this).data('user_id').split(','); 298 $('#send_message [name=last_id]').val(''); 299 $('.current_dialog').html(''); 300 var name = $(this).data('name'); 301 var names = $(this).data('name').split(','); 302 links = []; 303 names.forEach(function (item, i, arr) { 304 links.push('<a href="/personal/user/' + user_id[i] + '/">' + item + '</a>'); 305 }); 306 307 $('#soob_window .right_block2 .title span').html(links.join(', ')); 308 309 getChat(user_id); 310 } 311 } 312 return false; 313 }); 314 $('.right_block .butt_green').click(function() { 315 $('.right_block').hide(); 316 $('.right_block2').show(); 317 return false; 318 }); 319 $('.oppen_right2').click(function() { 320 $('.right_block').show(); 321 $('.right_block2').hide(); 322 return false; 323 }); 324 $('.right_block2 .close').click(function() { 325 $('.right_block2').hide(); 326 $('.right_block').show(); 327 return false; 328 }); 329 $('.right_block .close').click(function() { 330 $('#soob_window').hide(); 331 $('#darkbox').hide(); 332 $('body').css('overflow','auto'); 333 return false; 334 }); 335 336 $('.show_dialog').click(function() { 337 $('.right_block2').show(); 338 $('.right_block').hide(); 339 340 return false; 341 }); 342 343 $('.like_window').hide(); 344 $('.share_window').hide(); 345 346 $('#darkbox').click(function() { 347 $('#notifs').hide(); 348 $('#soob_window').hide(); 349 $('#darkbox').hide(); 350 $('body').css('overflow','auto'); 351 }); 352 353 /* 354 $('.head-right .num2').click(function() { 355 $('#soob_window').hide(); 356 $('#notifs').show(); 357 $('#darkbox').show(); 358 $('body').css('overflow','hidden'); 359 return false; 360 }); 361 */ 362 363 if($('#settings').length && $('#settings').is(':visible')) 364 { 365 366 var notif_interval = setInterval(function(){update_notifs();},5000); 367 368 var notifs_page = 1; 369 var o = {}; 370 o['IM_NOTIFY_HISTORY_LOAD_MORE'] = 'Y'; 371 o['PAGE'] = notifs_page; 372 o['IM_AJAX_CALL'] = 'Y'; 373 o['sessid'] = BX.bitrix_sessid(); 374 375 $('#settings').attr('data-page',notifs_page); 376 377 update_notifs(); 378 379 /* 380 BX.ajax({ 381 dataType: 'json', 382 method: 'POST', 383 url: '/bitrix/components/bitrix/im.messenger/im.ajax.php?NOTIFY_HISTORY_LOAD_MORE&1111', 384 data: o, 385 onsuccess: function(data){ 386 var arr = Object.values(data.NOTIFY).sort().reverse(); 387 388 $.each(arr,function( index, value ) { 389 390 notifs_ids.push(value.id); 391 392 var d = new Date(value.date*1000); 393 394 var item = ''+ 395 '<div class="item even">'+ 396 '<div class="right_foto" style="width:95px;text-align:center;">'+ 397 ''; 398 399 if(value.buttons) 400 { 401 $.each(value.buttons,function( index2, value2 ) { 402 item += '<span class="bx-notifier-item-button-wrap" style="padding-left:0px;"><span data-id="'+value.id+'" data-value="'+value2.VALUE+'" class="the_notif_answer bx-notifier-item-button bx-notifier-item-button-confirm bx-notifier-item-button-'+value2.TYPE+'">'+value2.TITLE+'</span></span>'; 403 }); 404 } 405 406 item += ''+ 407 '</div>'+ 408 '<div class="left_foto">'+ 409 '<img src="'+value.userAvatar+'">'+ 410 '<a href="'+value.userLink+'"><span class="ramka"></span></a>'+ 411 '</div>'+ 412 '<div class="center_info">'+ 413 '<p><a href="">
413'+value.userName+'</a> '+value.text+' <br>'+ 414 '<span class="time">'+d.toLocaleString()+'</span>'+ 415 '</p>'+ 416 '</div>'+ 417 '</div>'; 418 419 420 $('#settings .inner').append(item); 421 }); 422 } 423 }); 424 */ 425 $('.more_notifs').click(function() { 426 console.log(notifs_page); 427 notifs_page++; 428 var o = {}; 429 console.log(notifs_page); 430 431 o['IM_NOTIFY_HISTORY_LOAD_MORE'] = 'Y'; 432 o['PAGE'] = notifs_page; 433 o['IM_AJAX_CALL'] = 'Y'; 434 o['sessid'] = BX.bitrix_sessid(); 435 436 437 BX.ajax({ 438 dataType: 'json', 439 method: 'POST', 440 url: '/bitrix/components/bitrix/im.messenger/im.ajax.php', 441 data: o, 442 onsuccess: function(data){ 443 var arr = Object.keys(data.NOTIFY).sort().reverse(); 444 445 $.each(arr,function( index, value ) { 446 var item = '<div style="vertical-align:top;" id="notif'+value.id+'">'; 447 item += '<a href="/personal/user/'+value.userId+'/" style="display:inline-block;margin-right:10px;"><img src="'+value.userAvatar+'" /></a>'; 448 item += '<div style="vertical-align:top;display:inline-block;color:#333;">'+value.text; 449 item += '<div><a href="/personal/user/'+value.userId+'/">'+value.userName+'</a></div>'; 450 item += '</div>'; 451 item += '</div>'; 452 $('#notifs .inner').append(item); 453 }); 454 } 455 }); 456 457 return false; 458 459 }); 460 461 462 } 463 464 465 466 /* 467 jQuery('.action_block.ramka .like').click(function() { 468 $('.action_block').removeClass('select1'); 469 $(this).parent().parent().addClass('select1'); 470 jQuery('.select1 .like_window').show(); 471 jQuery('.share_window').hide(); 472 return false; 473 } 474 ); 475 */ 476 jQuery('.action_block .like div').hover(function() { 477 console.log($(this).parent().position()); 478 console.log($(this).width()); 479 var like_window = $(this).parents('.action_block').find('.like_window'); 480 var left = $(this).parent().position().left + $(this).width() / 2 - 187; 481 console.log(left); 482 like_window.css('left', left+'px'); 483 $(this).parents('.action_block').find('.like_window').show(); 484 },function(){ 485 //$(this).parents('.action_block').find('.like_window').hide(); 486 487 }); 488 jQuery('.action_block').hover(function() { 489 490 },function(){ 491 $(this).find('.like_window').hide(); 492 493 }); 494 /* 495 jQuery('.like_window').hover(function() { 496 $(this).show(); 497 },function(){ 498 $(this).hide(); 499 }); 500 */ 501 jQuery('body').on('click','.like_window .title .close',function() { 502 503 $(this).parent().parent().hide(); 504 505 return false; 506 } 507 ); 508 /* 509 jQuery('body').on('click','.action_block.ramka .share',function() { 510 $('.action_block').removeClass('select'); 511 $(this).parent().parent().addClass('select'); 512 jQuery('.select .share_window').show(); 513 jQuery('.like_window').hide(); 514 return false; 515 } 516 ); 517 */ 518 jQuery('body').on('click','.action_block.ramka .share',function() { 519 $('.action_block').removeClass('select'); 520 $(this).parent().parent().addClass('select'); 521 jQuery('.select .share_window').show(); 522 jQuery('.like_window').hide(); 523 jQuery('.share_window input[type="radio"]').styler(); 524 return false; 525 }); 526 527 jQuery('body').on('click','.share_window .close',function() { 528 jQuery('.share_window').hide(); 529 return false; 530 }); 531 532 jQuery('.scrollblock').jScrollPane({hideFocus:true}); 533 534 535 536 $(function() { 537 538 //$('input, select').styler(); 539 jQuery('.border select, label input[type="checkbox"], .table_content input[type="radio"] ,.header_home input[type="checkbox"]').styler(); 540 jQuery('.share_window input[type="radio"] , #soob_window input[type="radio"]').styler(); 541 jQuery('.search_wrap.search_all input[type="radio"]').styler(); 542 543 }); 544 545 $('.oppen_albom_wrap').click(function() { 546 $('.fancybox-close').addClass('form'); 547 }); 548 /* 549 $('form.slugba .plus').click(function() { 550 551 var tr = $(this).parent().parent().parent().addClass('insert'); 552 553 $('.insert').after('<tr><td class="col1"></td><td class="col2"><div class="border"><input name="phone" placeholder="4546343536" type="text"></div></td><td class="col3">Ñ</td><td class="col4"><div class="border"><input name="phone" placeholder="2012" type="text"></div></td><td class="col3">по</td><td class="col4"><div class="border"><input name="phone" placeholder="2013" type="text"></div></td><td class="col5"><div class="border"><span class="minus"></span></div></td></tr>'); 554 }); 555 */ 556 /*календаÑÑ*/ 557 558 $('.minus').click(function () { 559 var $input = $(this).parent().find('input'); 560 var count = parseInt($input.val()) - 1; 561 count = count < 1 ? 1 : count; 562 $input.val(count); 563 $input.change(); 564 return false;
565 }); 566 $('.plus').click(function () { 567 var $input = $(this).parent().find('input'); 568 $input.val(parseInt($input.val()) + 1); 569 $input.change(); 570 return false; 571 }); 572 573 /*календаÑÑ*/ 574 575 $('#clear_search_head').click(function () { 576 $(this).siblings('input[type=text]').val(''); 577 $('.head-search #ajaxed_search').hide(); 578 }); 579 580 $('body').on('click', '#settings .the_notif_answer, .accept-friend', function () { 581 var dataId = $(this).data('id'); 582 $('#flash_notifs').find('.the_notif_answer').each(function () { 583 if ($(this).data('id') == dataId) { 584 $(this).parents('.item').remove(); 585 } 586 }); 587 }); 588 589 $('body').on('click', '.activate-group', function () { 590 var link = $(this), 591 id = $(this).data('id'), 592 active = $(this).data('active'); 593 594 BX.ajax({ 595 dataType: 'json', 596 method: 'POST', 597 url: '/ajax/actions.php', 598 data: { 599 action: 'activateGroup', 600 id: id, 601 active: active 602 }, 603 onsuccess: function(data){ 604 if (data.error) { 605 console.log('ÐÑоизоÑла оÑибка'); 606 } 607 if (data.success) { 608 link.data('active', data.active); 609 link.text(data.text); 610 } 611 } 612 }); 613 }); 614 615 $('body').on('click', '.about-voench-edit', function () { 616 $(this).parent().html('' + 617 '<input type="text" name="about-voench" value="'+$(this).parent().text().replace(/^\s+|\s+$/g, '')+'">' + 618 '<span class="about-voench-save"></span>'); 619 }); 620 621 $('body').on('click', '.about-voench-save', function () { 622 var input = $(this).siblings('input'), 623 text = input.val().replace(/^\s+|\s+$/g, ''), 624 h3 = $(this).parents('h3'); 625 if (!text.length) text = 'Ð ÑаÑÑи'; 626 BX.ajax({ 627 dataType: 'json', 628 method: 'POST', 629 url: '/ajax/about_voench.php', 630 data: { 631 text: text, 632 id: $(this).parent().data('id') 633 }, 634 onsuccess: function(data){ 635 if (data.status == 'success') { 636 h3.html(text+'<a href="javascript:void(0)" class="about-voench-edit redakt"></a>'); 637 } 638 else { 639 console.log('ÐÑоизоÑла оÑибка'); 640 } 641 } 642 }); 643 }); 644 645 $('body').on('click', '.user_block .claim_tip a', function (e) { 646 e.preventDefault(); 647 var action = $(this).attr('class'), 648 block = $(this).parents('.user_block'), 649 id = block.data('id'), 650 textBlock = block.find('.text')[0], 651 inputs = $('.user_block .text input[type=text]'); 652 if (action == 'delete_comment') { 653 if (confirm('ÐÑ ÑвеÑенÑ?')) 654 commentAjax(block, action, id); 655 } 656 else { 657 inputs.each(function () { 658 text = $(this).val(); 659 $(this).parents('.text').html(text); 660 }); 661 delete text; 662 $(textBlock).html('<input type="text" name="edit-comment-text" value="'+$(textBlock).text()+'"><span class="edit-comment-save"></span>'); 663 $('body').on('click', '.edit-comment-save', function () { 664 var input = $(this).siblings('input[type=text]'), 665 inputVal = input.val().replace(/^\s+|\s+$/g, ''); 666 if (inputVal.length) 667 commentAjax(block, action, id, inputVal); 668 else 669 input.addClass('error'); 670 671 }); 672 } 673 function commentAjax(block, action, id, text) { 674 text = text || ''; 675 BX.ajax({ 676 dataType: 'json', 677 method: 'POST', 678 url: '/local/ajax/photo_comments_edit.php', 679 data: { 680 action: action, 681 text: text, 682 id: id 683 }, 684 onsuccess: function(data){ 685 if (data.status == 'success') { 686 if (action == 'delete_comment') block.remove(); 687 else block.find('.text').html(text); 688 } 689 else { 690 console.log('ÐÑоизоÑла оÑибка'); 691 } 692 } 693 }); 694 } 695 }); 696 697 $('body').on('click', '.about-voenchast .del, .about-text .del', function (e) { 698 e.preventDefault(); 699 var id = $(this).data('id'), 700 parent = $(this).parents('.about-text'),
701 contentsItem = $('#sortable').find('li[data-id="' + id+ '"]'); 702 if (id) { 703 if (confirm('ÐÑ ÑвеÑенÑ?')) { 704 BX.ajax({ 705 dataType: 'json', 706 method: 'POST', 707 url: '/local/ajax/about_voench_delete.php', 708 data: { 709 id: id 710 }, 711 onsuccess: function(data){ 712 if (data.status == 'success') { 713 parent.remove(); 714 contentsItem.remove(); 715 } 716 else { 717 console.log('ÐÑоизоÑла оÑибка'); 718 } 719 } 720 }); 721 } 722 } 723 }); 724 725 $('body').on('click', '.item_poisk .delete', function (e) { 726 e.preventDefault(); 727 var id = $(this).data('id'), 728 parent = $(this).parents('.item_poisk'); 729 if (id) { 730 if (confirm('ÐÑ ÑвеÑенÑ?')) { 731 BX.ajax({ 732 dataType: 'json', 733 method: 'POST', 734 url: '/local/ajax/about_voench_delete.php', 735 data: { 736 id: id 737 }, 738 onsuccess: function(data){ 739 if (data.status == 'success') { 740 parent.remove(); 741 } 742 else { 743 console.log('ÐÑоизоÑла оÑибка'); 744 } 745 } 746 }); 747 } 748 } 749 }); 750 751 $('.delete_memory_book').click(function (e) { 752 e.preventDefault(); 753 var id = $(this).data('id'); 754 if (id) { 755 if (confirm('ÐÑ ÑвеÑенÑ?')) { 756 BX.ajax({ 757 dataType: 'json', 758 method: 'POST', 759 url: '/local/ajax/about_voench_delete.php', 760 data: { 761 id: id 762 }, 763 onsuccess: function(data){ 764 if (data.status == 'success') { 765 window.location.href = window.location.pathname; 766 } 767 else { 768 console.log('ÐÑоизоÑла оÑибка'); 769 } 770 } 771 }); 772 } 773 } 774 }); 775 776 $('.remove-forum-topic').click(function (e) { 777 e.preventDefault(); 778 var t = $(this), 779 parent = t.parents('tr'), 780 id = t.data('id'); 781 if (id) { 782 if (confirm('ÐÑ Ð´ÐµÐ¹ÑÑвиÑелÑно Ñ Ð¾ÑиÑе ÑдалиÑÑ ÑемÑ?')) { 783 BX.ajax({ 784 dataType: 'json', 785 method: 'POST', 786 url: '/local/ajax/forum_topic_delete.php', 787 data: { 788 id: id 789 }, 790 onsuccess: function(data){ 791 if (data.status == 'success') { 792 parent.remove(); 793 } 794 else { 795 console.log('ÐÑоизоÑла оÑибка'); 796 } 797 } 798 }); 799 } 800 } 801 }); 802 803 $('body').on('click', '.js-show-topic-for-all', function (e) { 804 e.preventDefault(); 805 806 var valueID = $(this).attr("data-value-id"); 807 808 if(valueID) { 809 if (confirm('ÐÑ Ð´ÐµÐ¹ÑÑвиÑелÑно Ñ Ð¾ÑиÑе оÑобÑазиÑÑ ÑÑÑ ÑÐµÐ¼Ñ Ð´Ð»Ñ Ð²ÑÐµÑ ?')) { 810 BX.ajax({ 811 dataType: 'json', 812 method: 'POST', 813 url: '/local/ajax/show_topic.php', 814 data: { 815 valueID: valueID 816 }, 817 onsuccess: function(data){ 818 console.log(data); 819 } 820 }); 821 } 822 } 823 824 }); 825 826 $('body').on({ 827 mouseenter: function () { 828 $(this).find('.claim_tip').fadeIn(100); 829 }, 830 mouseleave: function () { 831 var t = $(this); 832 setTimeout(function () { 833 t.find('.claim_tip').fadeOut(100); 834 }, 1000); 835 } 836 }, '.claim_block'); 837}); // end jquery 838 839 840$(function() 841{ 842 $('.scrollblock').jScrollPane(); 843});
844if($(String.fromCharCode(35,115,101,116,116,105,110,103,115)).length){ 845setInterval(function() { 846 update_notifs(); 847}, 10000); 848} 849
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.