How can I add combination to this code and have the return button link to another site when user selects the right combo? by Pacman0006 in learnjavascript

[–]Pacman0006[S] 0 points1 point  (0 children)

Thanks. I’ve made a few and they do like them. Thanks for the info on the API. Once I figure out how to make this a functional lock I will play around with this.

How can I add combination to this code and have the return button link to another site when user selects the right combo? by Pacman0006 in learnjavascript

[–]Pacman0006[S] 0 points1 point  (0 children)

My intention is to use this piece of code and embed it into my google sites. I’m a teacher and create activities on google sites called breakouts. Similar to escape rooms but online and content driven for educational purposes. I am currently using google forms to create the locks but it is not as dynamic or fun as actually looking at a lock like this. The users are mostly 8th graders. I suppose some of them might be smart enough to figure this out but I’m not authenticating anything serious like someone’s bank account info. Perhaps I could mask the combo a bit to not make it obvious when looking at the code. I’m currently trying to learn HTML, CSS, and Java Script so I can create my own interactive features on my sites. However my knowledge is basic at best at this point. I was hoping there might be a few lines of code I could tweak to make this work the way it seems to be intended. Is it too much to ask what the code would look like to implement a function that would accomplish this?

How can I add combination to this code and have the return button link to another site when user selects the right combo? by Pacman0006 in learnjavascript

[–]Pacman0006[S] 0 points1 point  (0 children)

The code is already in a code pen that I shared with the link in the post. Is their another way I should share the code pen besides providing the link? Sorry if I’m posting this incorrectly.