1var CKCONFIG = { 2 default_header_tag: 'h2', 3 content_css: '/assets/css/main.css' 4}; 5 6 7function go(ob, link, target) { 8 ob.target = target || '_blank'; 9 ob.href = link; 10 return true; 11} 12 13function toggle_view(obj, link_text) { 14 if (!obj._link_text) { 15 obj._link_text = obj.innerHTML; 16 obj._box = obj.parentNode.parentNode; 17 obj._$box = $(obj._box); 18 obj._height = obj._$box.height(); 19 } 20 if (obj._link_text === obj.innerHTML) { 21 obj._$box.css({height: 'auto'}); 22 obj.innerHTML = link_text; 23 } 24 else { 25 26 obj._$box.animate({height: obj._height}); 27 obj.innerHTML = obj._link_text; 28 } 29 return false; 30} 31 32function toggle_trends(obj) { 33 $('#trends_list').animate({height: $(obj).hasClass('minus') ? 95 : 350}, 300); 34 $(obj).toggleClass('minus'); 35 return false; 36} 37 38function ratio(ob, cmd, type) { 39 type = type < 0 ? 'down' : 'up'; 40 $.get('/ajax/ratio/' + type + '/' + cmd, function (data) { 41 42 switch (data) { 43 case 'not_login': 44 alert('ÐÑ Ð½Ðµ авÑоÑизованÑ!'); 45 break; 46 47 case 'ego': 48 alert('Ð¡ÐµÐ±Ñ Ñ Ð²Ð°Ð»Ð¸ÑÑ Ð½ÐµÐ»ÑÐ·Ñ :)'); 49 break; 50 51 case 'alredy_voted': 52 alert('ÐÑ Ñже голоÑовали'); 53 break; 54 55 default: 56 if (data.replace(/-?\d+/g, '')) 57 return alert(data); 58 59 $(ob).parent().find('span').each(function () { 60 if (this.className === 'info') 61 return; 62 var value = parseInt(data); 63 64 if (value > 0) { 65 this.className = 'plus'; 66 data = '+' + data; 67 } 68 ; 69 if (value < 0) 70 this.className = 'minus'; 71 if (value === 0) 72 this.className = ''; 73 74 $(this).html(data); 75 }); 76 } 77 }); 78 79 return false; 80} 81 82function thanks(ob, cmd) { 83 $.get('/ajax/thanks/' + cmd, function (data) { 84 if (data === 'not_login') { 85 alert('ÐÑ Ð½Ðµ авÑоÑизованÑ!'); 86 } 87 else if (data === 'ego') { 88 alert('ÐлагодаÑиÑÑ ÑÐµÐ±Ñ Ð½Ðµ ÑеÑÑно!'); 89 } 90 else if (data) { 91 $(ob).parent().find('span.info').html(data ? "СпаÑибо за оÑенкÑ: <b>" + data + "</b>" : ""); 92 } 93 else { 94 alert('ÐÑ Ñже оÑенили!'); 95 } 96 }); 97 98 return false; 99} 100 101function ztema_top() { 102 $('html,body').animate({scrollTop: 0}, 500); 103 return false; 104} 105 106function scrollTo(addr) { 107 $('html,body').animate({scrollTop: $(addr).offset().top}, 500); 108 return false; 109} 110 111$().ready(function () { 112 113 $().iTopPage(); 114 115 // Comments 116 $('div.ajax_content').each(function () { 117 var cmd = this.id.split('-'); 118 var id = this.id; 119 $.get('/ajax/' + cmd.join('/') + '/', function (result) { 120 $('#' + id).html(result); 121 }); 122 }); 123 124 //-------------------------------------------------------------------------- 125 // SLIDER 126 //-------------------------------------------------------------------------- 127 $('#content div.slider_control').each(function () { 128 $(this).find('span').click(function () { 129 if ($(this).hasClass('selected')) 130 return false; 131 132 var slide_id = this.id.substr(2); 133 var $slide = $('#' + slide_id); 134 var offset = $slide.position().left; 135 136 $slide.parent().animate({'margin-left': -offset}); 137 138 $(this).parent().find('span.selected').fadeOut(100, function () { 139 $(this).removeClass('selected').fadeIn(100); 140 }); 141 $(this).fadeOut(100, function () { 142 $(this).addClass('selected').fadeIn(300); 143 }); 144 145 return false; 146 }); 147 });
148 149 150 $('#index_short_text a.more_link').click(function () { 151 $(this).fadeOut(150, function () { 152 $(this).parents('#index_short_text').find('div.cut').slideDown(300); 153 }); 154 return false; 155 }); 156 157 //-------------------------------------------------------------------------- 158 // short_text 159 //-------------------------------------------------------------------------- 160 $('#short_text > a.more_link').click(function () { 161 var $short_text = $(this.parentNode); 162 $(this).hide(); 163 $short_text.find('div.full_text').slideDown(300); 164 $short_text.find('div.cut_text').slideUp(100); 165 }); 166 167 //-------------------------------------------------------------------------- 168 // TABS 169 //-------------------------------------------------------------------------- 170 $('#content ul.tabs_control').each(function () { 171 $(this).find('li').click(function () { 172 if ($(this).find('a').length) 173 return true; 174 if ($(this).hasClass('selected')) 175 return false; 176 177 var tab_id = this.id.substr(2); 178 var $tab = $('#' + tab_id); 179 180 $tab.parent().find('div.content').slideUp(300); 181 $tab.slideDown(300); 182 183 $(this).parent().find('li.selected').removeClass(); 184 $(this).addClass('selected'); 185 186 return false; 187 }); 188 }); 189}); 190 191 192function bb(area_id, tag) { 193 var area = document.getElementById(area_id); 194 195 if (tag[0] === '/') { 196 var tag_open = '[' + tag.substr(1) + ']'; 197 var tag_close = ''; 198 } 199 else { 200 var tag_open = '[' + tag + ']'; 201 var tag_close = '[/' + tag + ']'; 202 } 203 if (document.selection) { 204 area.focus(); 205 sel = document.selection.createRange(); 206 sel.text = tag_open + sel.text + tag_close; 207 } else if (area.selectionStart || area.selectionStart === '0') { 208 area.focus(); 209 var startPos = area.selectionStart; 210 var endPos = area.selectionEnd; 211 area.value = area.value.substring(0, startPos) + tag_open + area.value.substring(startPos, endPos) + tag_close + area.value.substring(endPos, area.value.length); 212 } else { 213 area.value += tag_open + tag_close; 214 } 215 return false; 216} 217 218$().ready(function () { 219 if (jQuery('.can_price').length) { 220 //ÐÑÑавлÑем ÑÐµÐºÐ»Ð°Ð¼Ñ 221 /**/ 222 var ad = []; 223 ad[1] = '' + 224 '<div class="clr"></div>' + 225 '<div>' + 226 '<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></scr' + 'ipt>' + 227 '<ins class="adsbygoogle" style="display:block; text-align:center;" ' + 228 'data-ad-layout="in-article"' + 229 'data-ad-format="fluid"' + 230 'data-ad-client="ca-pub-5935769739442798"' + 231 'data-ad-slot="2169075062" ' + 232 '></ins>' + 233 '<scr' + 'ipt>(adsbygoogle = window.adsbygoogle || []).push({});</scr' + 'ipt>' + 234 '</div>' + 235 '<div class="clr" style="margin-bottom: 2em;"></div>' 236 ; 237 238 ad[3] = ad[1]; 239 240 ad[6] = ad[1]; 241 242 ad[9] = ad[1]; 243 244 var el = jQuery('.can_price'); 245 var elems = el.find('h2'); 246 247 if (elems.length < 4) { 248 elems = el.find('h2, h3:not(h2 + h3)'); 249 } 250 251 elems.each(function (index) { 252 $(this).before(ad[index] || ''); 253 }); 254 } 255});
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.