1 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
2 <base href="$baseurl" />
3 <link rel="stylesheet" type="text/css" href="$baseurl/view/style.css" media="all" />
6 <script type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
8 <script type="text/javascript" src="$baseurl/include/jquery.js" ></script>
9 <script type="text/javascript" src="$baseurl/include/main.js" ></script>
11 <script type="text/javascript">
18 $(document).ready(function() {
19 $.ajaxSetup({cache: false});
20 msie = $.browser.msie ;
27 function NavUpdate() {
29 if($('#live-network').length) { src = 'network'; liveUpdate(); }
30 if($('#live-profile').length) { src = 'profile'; liveUpdate(); }
32 $.get("ping",function(data) {
33 $(data).find('result').each(function() {
34 var net = $(this).find('net').text();
35 if(net == 0) { net = ''; }
36 $('#net-update').html(net);
37 var home = $(this).find('home').text();
38 if(home == 0) { home = ''; }
39 $('#home-update').html(home);
40 var mail = $(this).find('mail').text();
41 if(mail == 0) { mail = ''; }
42 $('#mail-update').html(mail);
43 var intro = $(this).find('intro').text();
44 if(intro == 0) { intro = ''; }
45 $('#notify-update').html(intro);
48 setTimeout(NavUpdate,30000);
52 function liveUpdate() {
53 if(src == null) { return; }
54 if($('.comment-edit-text-full').length) {
55 livetime = setTimeout(liveUpdate, 10000);
60 $.get('update_' + src + '?msie=' + ((msie) ? 1 : 0),function(data) {
61 $('.wall-item-outside-wrapper',data).each(function() {
62 var ident = $(this).attr('id');
63 if($('#' + ident).length == 0) {
64 $('img',this).each(function() {
65 $(this).attr('src',$(this).attr('dst'));
67 $('#' + prev).after($(this));
70 $('#' + ident + ' ' + '.wall-item-ago').replaceWith($(this).find('.wall-item-ago'));
71 $('#' + ident + ' ' + '.wall-item-comment-wrapper').replaceWith($(this).find('.wall-item-comment-wrapper'));
79 function confirmDelete() {
80 return confirm("Delete this item?");
83 function imgbright(node) {
84 $(node).attr("src",$(node).attr("src").replace('hide','show'));
85 $(node).css('width',24);
86 $(node).css('height',24);
89 function imgdull(node) {
90 $(node).attr("src",$(node).attr("src").replace('show','hide'));
91 $(node).css('width',16);
92 $(node).css('height',16);