Posts by Zé Carlos • 41 points
2 posts
-
0
votes1
answer31
viewsA: When I try to change the value of a css variable with js error
Hello, Matheus. The error in the code occurs because the root variable you are trying to access here: root.style.setProperty('--topV', ws) has not been declared anywhere. The pseudo class :root used…
-
4
votes2
answers74
viewsA: How to reduce the amount of If’s in a simultaneous redirect?
An alternative, because it is a pattern that clearly repeats itself, would be to use Regex, because this way you can make the search more dynamic. function redirection(link) { // Constrói o padrão…
javascriptanswered Zé Carlos 41