71 lines
1.7 KiB
JavaScript
71 lines
1.7 KiB
JavaScript
var thumpclosetimer="";
|
|
var thumpimeout=20000;
|
|
|
|
function dosize(){
|
|
var ih=document.getElementById&&!document.all?window.innerHeight:document.documentElement.clientHeight;
|
|
var iw=document.getElementById&&!document.all?window.innerWidth:document.documentElement.clientWidth;
|
|
var ch=(ih);
|
|
//document.getElementById("container").style.height=ch + "px";
|
|
}
|
|
|
|
function gts(){var ncache = new Date();var pncache=ncache.getTime();return pncache;}
|
|
function donot(){a=null;}
|
|
|
|
function thump(ma,mi,frev,frevstr,uid)
|
|
{
|
|
if(typeof ma == 'undefined') { ma = '';}
|
|
if(typeof mi == 'undefined') { mi = '';}
|
|
if(typeof frev == 'undefined') { frev = '';}
|
|
if(typeof frevstr == 'undefined') { frevstr = '';}
|
|
if(typeof uid == 'undefined') { uid = '';}
|
|
|
|
jQuery.ajax({
|
|
url: '/include/analytics/thump.php',
|
|
type: 'GET',
|
|
data:{ma:ma,mi:mi,frev:frev,frevstr:frevstr,uid:uid},
|
|
cache:false,
|
|
success: function(data) {
|
|
|
|
// whoison();
|
|
//called when successful
|
|
//alert(data.isalive + " " + data.thenow);
|
|
|
|
whoison(uid);
|
|
},
|
|
error: function(e) {
|
|
//called when there is an error
|
|
//alert(e.message);
|
|
//jQuery
|
|
//alert(e);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function whoison()
|
|
{
|
|
if(typeof uid == 'undefined') { uid = '';}
|
|
jQuery.ajax({
|
|
url: '/include/analytics/whoison.php',
|
|
type: 'GET',
|
|
data:{uid:uid},
|
|
cache:false,
|
|
success: function(data) {
|
|
//called when successful
|
|
//if(userid=="21092"){alert("abc");}
|
|
|
|
if (document.getElementById("members_onpage")) {
|
|
|
|
document.getElementById("members_onpage").innerHTML=data.online;
|
|
}
|
|
|
|
},
|
|
error: function(e) {
|
|
// if(userid=="21092"){alert("abcd");}
|
|
//called when there is an error
|
|
//alert(e.message);
|
|
//jQuery
|
|
//alert(e);
|
|
}
|
|
});
|
|
} |