Moderator: Tech Team

Code: Select all
function isTeamGame() {
var gameType = (/Game\sType\:\s<b>(\w+)<\/b>/(document.getElementById("dashboard").innerHTML))[1];
if(gameType == "Doubles" || gameType == "Triples" || gameType == "Quadruples")
return true;
else
return false;
}
Code: Select all
function isTeamGame() {
try {
var gameType = document.getElementsByTagName("dd")[0].innerHTML;
if(gameType == "Doubles" || gameType == "Triples" || gameType == "Quadruples")
return true;
else
return false;
}
catch(e)
{
return false;
}
}

Foxglove wrote:Hey everyone - sorry for the broken chatbug. It did break because of the site change.
I'm glad that so many people appreciate chatglove! Unfortunately, I will no longer have time to keep in updated and compatible with the current site code.
If anyone else would like to take it over, feel free! I hope that the CC community won't have to remain cold and gloveness without me.
[spoiler=If you are technically inclined and want to change your code, here is what you need to do]REPLACE THIS:Code: Select all
function isTeamGame() {
var gameType = (/Game\sType\:\s<b>(\w+)<\/b>/(document.getElementById("dashboard").innerHTML))[1];
if(gameType == "Doubles" || gameType == "Triples" || gameType == "Quadruples")
return true;
else
return false;
}
WITH THIS:[/spoiler]Code: Select all
function isTeamGame() {
try {
var gameType = document.getElementsByTagName("dd")[0].innerHTML;
if(gameType == "Doubles" || gameType == "Triples" || gameType == "Quadruples")
return true;
else
return false;
}
catch(e)
{
return false;
}
}
Foxglove wrote:[spoiler=If you are technically inclined and want to change your code, here is what you need to do]REPLACE THIS:Code: Select all
function isTeamGame() {
var gameType = (/Game\sType\:\s<b>(\w+)<\/b>/(document.getElementById("dashboard").innerHTML))[1];
if(gameType == "Doubles" || gameType == "Triples" || gameType == "Quadruples")
return true;
else
return false;
}
WITH THIS:[/spoiler]Code: Select all
function isTeamGame() {
try {
var gameType = document.getElementsByTagName("dd")[0].innerHTML;
if(gameType == "Doubles" || gameType == "Triples" || gameType == "Quadruples")
return true;
else
return false;
}
catch(e)
{
return false;
}
}
](./images/smilies/eusa_wall.gif)

dwilhelmi wrote:Alright guys, new script is hosted. I will be working with Foxy to get the update to notify for everyone, but for now you can head over to http://www.conquerclub.com/forum/viewtopic.php?f=527&t=132761 to get the latest version.

fumandomuerte wrote:dwilhelmi wrote:Alright guys, new script is hosted. I will be working with Foxy to get the update to notify for everyone, but for now you can head over to http://www.conquerclub.com/forum/viewtopic.php?f=527&t=132761 to get the latest version.
You're my hero