1$(document).on('click', '.feed-news-btns__item.feed-news-btns__item-toggler._comment', function(e) { 2 e.preventDefault(); 3 console.log($(this).attr('href').length); 4 if ($(this).attr('href').length) 5 { 6 location.href = $(this).attr('href') + '#comments'; 7 } 8}) 9$(document).ready( function() { 10 if (location.hash !== 'undefined' && location.hash == '#comments') 11 { 12 $('html, body').animate({ scrollTop: $('#comments-container').offset().top - 72 }, 2000); 13 } 14}) 15$( document ).ready( function() { 16 $( '.fancy-box' ).closest( 'a' ).addClass( 'fancy-box-a' ); 17 $( '.img-box' ).closest( 'a' ).addClass( 'fancy-box-a' ); 18 19 /* CMIND COMMENTS START */ 20 if ($('#ptc_form_mowubvua_form')[0]) { 21 $('.ptc-item-reply').remove(); 22 $('#ptc_form_mowubvua_form').remove(); 23 } 24 if ($('#ptc_list_mowubvua_list')[0]) { 25 $('.ptc-list-before-title').remove(); 26 } 27 /* CMIND COMMENTS END */ 28 29 $( '.fancy-box-a' ).fancybox( { 30 'transitionIn' : 'fade', 31 'transitionOut' : 'fade', 32 'cyclic' : true 33 } ); 34 35 $(".fancy-box-a").fancybox({ 36 helpers : { 37 overlay : { 38 locked: false 39 } 40 } 41 }); 42 $(".img-box-a").fancybox({ 43 helpers : { 44 overlay : { 45 locked: false 46 } 47 } 48 }); 49 50 var tab=''; 51 $('.soctabs__link').click(function(){ 52 if($(this).data('social') == tab){ 53 $('.socials__block').fadeToggle(); 54 $('.socials__overlay').fadeToggle(); 55 } 56 else { 57 tab = $(this).data('social'); 58 $('.socials__overlay').show(); 59 $('.socials__block').fadeIn(); 60 $('.social__tab').fadeOut(); 61 $(tab).fadeIn(); 62 } 63 }); 64 65 $('.socials__overlay').click(function(){ 66 $(this).hide(); 67 $('.socials__block').fadeOut(); 68 }); 69 70 $(document).on('click', '.js-read-news', function(event){ 71 BX.setCookie("BITRIX_SM_NEWS_READ_"+$(this).attr('data-id'), 1, {expires: 86400*30}); 72 }) 73 $(document).on('click', '.news-detail__add-comment', function(event){ 74 event.preventDefault(); 75 if ($('.comments__title').length) 76 $('html, body').animate({ scrollTop: $('.comments__title').offset().top }, 500); 77 }) 78 79 $(document).on('click', '.js-feed-news-opener', function(event){ 80 setTimeout(function(){ 81 if ($('.js-reduced-height.opened').length) 82 $('html, body').animate({ scrollTop: $('.js-reduced-height.opened').offset().top - 60}, 500); 83 },200) 84 85 }) 86 87 88 89 $(document).on('click', '.site-header-menu__item--submenu .site-header-menu__link', function(e){ 90 if (window.innerWidth < 992) { 91 e.preventDefault(); 92 93 $(this).parents('.site-header-menu__item').find('.site-header-submenu').toggleClass('is-active'); 94 $(this).toggleClass('is-active'); 95 } 96 }); 97}); 98 99 100Share = { 101 vkontakte: function(purl, ptitle, pimg, text) { 102 url = 'https://vk.com/share.php?'; 103 url += 'url=' + encodeURIComponent(purl); 104 url += '&title=' + encodeURIComponent(ptitle); 105 // url += '&description=' + encodeURIComponent(text); 106 url += '&image=' + encodeURIComponent(pimg); 107 url += '&noparse=true'; 108 console.log(url); 109 Share.popup(url); 110 }, 111 odnoklassniki: function(purl, text) { 112 // url = 'http://www.ok.ru/dk?st.cmd=addShare&st.s=1'; 113 url = 'https://connect.ok.ru/offer?url=' + encodeURIComponent(purl); 114 // url += '&st.comments=' + encodeURIComponent(text); 115 // url += '&st._surl=' + encodeURIComponent(purl); 116 console.log(url); 117 Share.popup(url); 118 }, 119 facebook: function(purl, ptitle, pimg, text) { 120 url = 'http://www.facebook.com/sharer.php?s=100'; 121 url += '&p[title]=' + encodeURIComponent(ptitle); 122 url += '&p[summary]=' + encodeURIComponent(text); 123 url += '&p[url]=' + encodeURIComponent(purl); 124 url += '&p[images][0]=' + encodeURIComponent(pimg); 125 Share.popup(url); 126 }, 127 twitter: function(purl, ptitle) { 128 url = 'http://twitter.com/share?'; 129 url += 'text=' + encodeURIComponent(ptitle); 130 url += '&url=' + encodeURIComponent(purl); 131 url += '&counturl=' + encodeURIComponent(purl); 132 Share.popup(url); 133 }, 134 telegram: function(purl, ptitle) { 135 url = 'https://telegram.me/share/url?'; 136 url += 'url=' + encodeURIComponent(purl); 137 url += '&text=' + encodeURIComponent(ptitle); 138 // url += '&counturl=' + encodeURIComponent(purl); 139 Share.popup(url); 140 }, 141 mailru: function(purl, ptitle, pimg, text) { 142 url = 'http://connect.mail.ru/share?'; 143 url += 'url=' + encodeURIComponent(purl); 144 url += '&title=' + encodeURIComponent(ptitle); 145 url += '&description=' + encodeURIComponent(text); 146 url += '&imageurl=' + encodeURIComponent(pimg); 147 Share.popup(url) 148 }, 149 150 popup: function(url) { 151 window.open(url,'','toolbar=0,status=0,width=626,height=436'); 152 } 153};
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.