Moderator: Tech Team
onload: function(responseDetails) {
var parser = new DOMParser();
var dom = parser.parseFromString(responseDetails.responseText,"application/xml");
var items = dom.getElementsByTagName('item');
var ready = 0;
for(var y=0; y<items.length;y++) {
var title = items[y].getElementsByTagName('title')[0].firstChild.nodeValue;
if(title.match(/READY/)) ready++;
}
var mygames = leftdivs[lf].getElementsByTagName('li')[0].getElementsByTagName('a')[0];
var span = mygames.appendChild(document.createElement('span'));
span.className = "inbox";
if(ready > 1 || ready == 0) span.innerHTML = ' [ ' + ready + ' turns ]';
else span.innerHTML = ' [ ' + ready + ' turn ]';
mygames.appendChild(span);
}
ManBungalow wrote:It seems the counter doesn't account for speed games, which is a little drawback..
caymanmew wrote:says i have turns to play yet i dont
chipv wrote:caymanmew wrote:says i have turns to play yet i dont
Did you log in as someone else?
caymanmew wrote:chipv wrote:caymanmew wrote:says i have turns to play yet i dont
Did you log in as someone else?
no... but it fine now
Users browsing this forum: No registered users