Originally posted by Checkmate187
This is part of the script with the line causing that problem. I still have it running but have changed the color from red to black so it doesnt show up.
var sp = playText.indexOf('(')+1;
var ep = playText.indexOf(')');
var yt = playText.slice(sp,ep);
if(current_team == team1)
{
if(playText.match(' rush')!=null)
{
if(playText.indexOf("to the left")!=-1)
{
team1_plays++;
team1_Left++;
team1_Outside++;
play.style.color='black'; <--------------------***HERE IS THE LINE***
if(yt.indexOf("yd loss")!=-1)
{
team1_Lefty = team1_Lefty - parseFloat(yt.replace(" yd loss",""));
}
if(yt.indexOf("yd gain")!=-1)
{
team1_Lefty = team1_Lefty + parseFloat(yt.replace(" yd loss",""));
}
}
if(playText.indexOf("to the right")!=-1)
{
team1_plays++;
team1_Right++;
team1_Outside++;
I am thinking it was maybe put in so he could check the accuracy (highlight the plays it was counting) so he could double check.
You are thinking right. Just forgot to take it out.
RandomBeast found the bug causing NAN for the left yardage, so thanks.
I will be adding the additional features as I stated earlier, but work has gotten in the way.
This is part of the script with the line causing that problem. I still have it running but have changed the color from red to black so it doesnt show up.
var sp = playText.indexOf('(')+1;
var ep = playText.indexOf(')');
var yt = playText.slice(sp,ep);
if(current_team == team1)
{
if(playText.match(' rush')!=null)
{
if(playText.indexOf("to the left")!=-1)
{
team1_plays++;
team1_Left++;
team1_Outside++;
play.style.color='black'; <--------------------***HERE IS THE LINE***
if(yt.indexOf("yd loss")!=-1)
{
team1_Lefty = team1_Lefty - parseFloat(yt.replace(" yd loss",""));
}
if(yt.indexOf("yd gain")!=-1)
{
team1_Lefty = team1_Lefty + parseFloat(yt.replace(" yd loss",""));
}
}
if(playText.indexOf("to the right")!=-1)
{
team1_plays++;
team1_Right++;
team1_Outside++;
I am thinking it was maybe put in so he could check the accuracy (highlight the plays it was counting) so he could double check.
You are thinking right. Just forgot to take it out.
RandomBeast found the bug causing NAN for the left yardage, so thanks.
I will be adding the additional features as I stated earlier, but work has gotten in the way.






























