To create a new JS script, go to the Design panel in the lower right. Right click JavaScript and choose New > JS file. Name it whatever you want and double click it to edit. In the editor, paste the code var obscure = new Obscure(); and click apply. Do not add the <script> </script> tags. They will be added by the program.
Then you need to add the actual obscure.js library. You can link to it by right clicking JavaScript again and selecting Link External JS and adding the path to the CDN which is…
Click the green “code” button, download the zip file and extract to a folder. Then go to the Design panel. Right click JavaScript > Import JS, navigate to the folder and find the obscure.min.js file and import it.
Thank you, @richards, that worked. I tried to add this by creating a new js file before, but did it outside of BSS and then dragged it into BSS like I did with the actual scrip. For whatever reason that didn’t work. But alas, it does now
Javascript gives me headaches. Considering I started my working career as a programmer (with Cobol though, not at all comparable with JS) and ended up as a social worker… that might give away something
Anyhow, what JS course do you recommend? I’d like to at least understand what it does.
Since Kuligaposten’s example link is temporary, here’s the code from his Obscure example (so this thread can still be useful to any who read it in the future.)
@printninja would be grateful for your feedback, especially on the telephone version, as I’m not sure if it needs the extra field for the US pattern (area code and prefix)
This is the JS course I use. I also have a bunch of other courses from Maximillian Swarzmuller on VueJS and React. They are great and it is easy to understand. Wait for a deal from Udemy to get them for cheap…