1/* 2Author: www.uJs.su 3Modules: ÑаÑ, обÑÑÐ¶Ð´ÐµÐ½Ð¸Ñ 4*/ 5 6 7var uForumNews = { 8 load:function () { 9 $.get('/forum/0-0-1-34', function (threads) { 10 $('#forum_discuss').html(''); 11 12 $('.threadLink:lt(5)',threads).each(function () { 13 txt = $(this).text(); threadname = txt.length > 28 ? txt.substring(0, 28)+'...' : txt; to_post = $(this).next('span').find('a:last').attr('href') ? '<a href="'+$(this).next('span').find('a:last').attr('href')+'/#post">»</a>' : ''; 14 $('#forum_discuss').append('<div id="fr_thr" style="display:none">'+txt+'</div><div id="forum_news"><img src="http://www.ujs.su/uStyle1/sys_imgs/forum_topic.png" style="vertical-align:-2px" height="11" width="11"> <span style="color:#777">Тема:</span> <a href="'+$(this).attr('href')+'">'+threadname+'</a> '+to_post+'<br> <img src="http://www.ujs.su/uStyle1/sys_imgs/topic_author.png" style="vertical-align:-2px" height="11" width="11"> <span style="font-size:10px"><span style="color:#777">ÐоÑÑ Ð¾Ñ:</span> <a href="'+$(this).parent().next().next().next().next().find('a').attr('href')+'" id="lastpost_user">'+$(this).parent().next().next().next().next().find('a').text()+'</a></span></div>'); 15 }) 16 }) 17 }, 18 reget:function () { 19 $.get('/forum/0-0-1-34?'+Math.random(1,100)+'', function (threads) { 20if($('.threadLink:first', threads).parent().next().next().next().next().find('a').text() != $('#lastpost_user:first').text() || $('.threadLink:first', threads).text() != $('#fr_thr:first').text()) { 21 $('#forum_discuss').html(''); 22 $('.threadLink:lt(5)',threads).each(function () { 23txt = $(this).text(); 24threadname = txt.length > 28 ? txt.substring(0, 28)+'...' : txt; to_post = $(this).next('span').find('a:last').attr('href') ? '<a href="'+$(this).next('span').find('a:last').attr('href')+'/#post">»</a>' : ''; 25$('#forum_discuss').append('<div id="fr_thr" style="display:none">'+txt+'</div><div class="item_new" id="forum_news"><img src="http://www.ujs.su/uStyle1/sys_imgs/forum_topic.png" style="vertical-align:-2px" height="11" width="11"><span style="color:#777">Тема:</span> <a href="'+$(this).attr('href')+'">'+threadname+'</a> '+to_post+'<br> <img src="http://www.ujs.su/uStyle1/sys_imgs/topic_author.png" style="vertical-align:-2px" height="11" width="11"><span style="font-size:10px"><span style="color:#777">ÐоÑÑ Ð¾Ñ:</span> <a href="'+$(this).parent().next().next().next().next().find('a').attr('href')+'" id="lastpost_user">'+$(this).parent().next().next().next().next().find('a').text()+'</a></span></div>'); 26}); 27$('.item_new:first').animate({backgroundColor:'#FFE4E1'}, 300 ); 28setTimeout(function () {$('.item_new:first').animate({backgroundColor:'#e9eef6'}, 300 )},2000) 29} 30}) 31} 32 } 33 34var spam = 0; 35var receivers = 0; 36 var uChat = { 37to: function(r) { 38if(receivers < 2) { 39if(r != _uu) { 40$("#ch_info1").fadeIn(300).html('СообÑение длÑ: <b><u>'+r+'</u></b> | <a href="javascript://" style="color:#fff !important" onclick="$(\'#to_user\').val(\'\');$(\'#ch_info1\').fadeOut(300)">X</a>');$("#to_user").val(r); $('#msg').focus(); 41} else { 42_uWnd.alert('<span style="color:red">ÐаÑем обÑаÑаÑÑÑÑ Ðº Ñебе?</span>','Ðнимание',{h:60, w: 200, tm:3000}); 43}} 44}, 45 post:function () { 46if(spam == 0) { 47 if($("#msg").val().length >= 2){ 48spam = 1; 49 $.post('/mchat/', {a: '18', 50 ajax: '1', 51 numa: '0', 52 mcmessage: $("#msg").val(), 53 custom1: $("#to_user").val() 54 }, function(ujs){ 55 setTimeout(function () { spam = 0},10000); 56 setTimeout(function () {uChat.get();},350); 57 $('#msg').animate({backgroundColor:'#cef8c4'}, 300); 58 setTimeout(function () {$('#msg').animate({backgroundColor:'#FFF'}, 300 )},400); 59 _uWnd.alert('<span style="color:green">СообÑение добавлено!</span>','',{h:40, w: 150, tm:3000});$("#msg").val('') 60 }) 61 } else { 62 $('#msg').animate({backgroundColor:'#FFE4E1'}, 300); 63 setTimeout(function () {$('#msg').animate({backgroundColor:'#FFF'}, 300 )},500); 64_uWnd.alert('<span style="color:red">СообÑение ÑлиÑком коÑоÑкое!</span>','ÐÑибка',{h:60, w: 200, tm:3000}); 65} 66} else { 67 $('#msg').animate({backgroundColor:'#f4f8c3'}, 300); 68 setTimeout(function () {$('#msg').animate({backgroundColor:'#FFF'}, 300 )},500); 69_uWnd.alert('<b style="color:red">ÐожалÑйÑÑа, оÑпÑавлÑйÑе не более 1 ÑообÑÐµÐ½Ð¸Ñ Ð² 7-10 ÑекÑнд, подождиÑе немного.</b><br> <span style="color:green">ÐоÑле закÑÑÑÐ¸Ñ Ð´Ð°Ð½Ð½Ð¾Ð³Ð¾ окна ÐÑ <b>ÑможеÑе</b> оÑпÑавлÑÑÑ ÑообÑениÑ.</span>','Ðе Ñак ÑаÑÑо',{h:100, w: 330, tm:10000});} 70 }, 71 get:function () { 72var nummessages = $.cookie('chatmessages') != null ? $.cookie('chatmessages') : 40; 73 $.get('/mchat/', function (chatik) { 74if($('.chatmsg:first',chatik).html() != $('.chatmsg:first').html()) { 75if($('.chatmsg:first').html()) { $('body').append('<embed type="application/x-shockwave-flash" src="http://s51.ucoz.net/flash/audio1.swf?song_url=/uStyle1/msg_chat.mp3&autoplay=1&loop=0" width="0" height="0" />'); } 76 $('.chat_messages').empty(); 77$('.ujsChat:lt('+nummessages+')', chatik).each(function () { $('.chat_messages').append($(this).html()).jScrollPane({scrollbarWidth:5}) }); 78} 79}); 80 } 81 }
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.