- I tried using canvas but apparently it requires different js methods [https://www.w3schools.com/html/html5_canvas.asp]
- There's a lot of discussion for the best way to remove multiple children of an HTML but the best way appears to be setting the node.innerHTML to empty based on Gabriel McAdams and npjohns answer. [https://stackoverflow.com/questions/3955229/remove-all-child-elements-of-a-dom-node-in-javascript]
- Although the site is responsive on mobile, I'm still pending to make it work on mobile, as the controls for activating with swipes are different on mobile, need to check on HammerJS later as with Jquery mobile I was unable to implement.
es-rene99 / etch-a-sketch Goto Github PK
View Code? Open in Web Editor NEWEtch a sketch with vanilla JS.
Home Page: https://es-rene99.github.io/etch-a-sketch/