Posts by Sergio Carvalho • 170 points
5 posts
-
0
votes1
answer66
viewsA: Dynamic mask for CPF, CNPJ and CEI fields
Mask limits the number of characters, as you start with a Cpf mask "000.000.000-00" the input will never have more than 14 characters. Put the masks with an extra zero, so that the user can continue…
-
3
votes1
answer26
viewsA: How do I change the color of the bootstrap switch?
The bootstrap switch is made by creating two elements inside the label with the "custom-control-label" class, you can create some CSS rules to apply to them, for example: .custom-switch…
-
1
votes1
answer35
viewsA: Game does not recognize keyboard input by "pynput"
These are game security mechanisms, most can differentiate real inputs from script inputs. The following video has an explanation of why input by "pyautogui" did not work in his game, but the same…
-
0
votes1
answer36
viewsA: API Olist - access blocked by CORS policy
The error shown is not due to lack of information in the request. This is a CORS error, you are trying to make a request to another server/ domain that is not yours, read on…
-
5
votes1
answer122
viewsA: Exercise Palindromo Javascript
You initialize the "palindrome" variable as an empty string -> "" var palindromo = ""; Make a loop by the size of the variable "word", in this case, let’s assume that: var word = "YES" for(var i…
javascriptanswered Sergio Carvalho 170