i have a condition here line 175 and im trying to add a 3rd condition if ping is more than 200 then display "iconko"
i have tried this and it didn't work
if(result != null)
{
var ping = parseFloat(result[1]);
if(ping > 100.0)
{
this.createPingIcon('iconslow');
}
else if(ping > 200.0)
{
this.createPingIcon('iconko');
}
else
{
this.createPingIcon('iconok');
}
}
Aucun commentaire:
Enregistrer un commentaire