You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
atm it's assumed skill level would be one of
switch (str.toLowerCase()) {
case "beginner":
return "25";
case "intermediate":
return "50";
case "advanced":
return "75";
case "master":
return "100";
default:
return parseInt(str)
}
if it's none of the above just a string, a NaN will be the result which then breaks presentation.
maybe hide the floating % tooltip if it's not there?
The text was updated successfully, but these errors were encountered:
My apologies for never responding to this. I initially took a look, realised it would need more thought and intended to get back to it. Obviously, I never did.
Did you manage to find a solution that met your needs?
If you (or anybody else) think that you would get benefit from something like this, then I could be persuaded to get my brain focussed on this again. :)
atm it's assumed skill level would be one of
switch (str.toLowerCase()) {
case "beginner":
return "25";
case "intermediate":
return "50";
case "advanced":
return "75";
case "master":
return "100";
default:
return parseInt(str)
}
if it's none of the above just a string, a NaN will be the result which then breaks presentation.
maybe hide the floating % tooltip if it's not there?
The text was updated successfully, but these errors were encountered: