Posts by espindolaa • 149 points
3 posts
-
1
votes2
answers123
viewsA: Condition "if" does not enter
This will be interpreted as follows: If permissions[0] is a value Truthy, or permissions[5] is a value Truthy, and so on, and not if any of these is == "0". What you want to do is something like…
-
2
votes2
answers107
viewsA: Vue.js: how to relate values in an array of strings?
You can capture the click in the checkboxes and check if the "group" should be disabled, according to the element clicked. Here is a codepen.…
-
1
votes1
answer114
viewsA: URL redirection script by country
I recommend taking a look at Geoplugin, works by API and is easy to use. Taking the country of origin, a simple redirect Javascript should solve your problem. Something like:…