MCPcopy Index your code
hub / github.com/microsoft/Web-Dev-For-Beginners / script.js

File script.js

3-terrarium/solution/script.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/*The solution to draggable elements was inspired by w3schools solution on creating a [Draggable HTML Element](https://www.w3schools.com/howto/howto_js_draggable.asp).*/
2
3dragElement(document.getElementById('plant1'));
4dragElement(document.getElementById('plant2'));

Callers

nothing calls this directly

Calls 1

dragElementFunction · 0.85

Tested by

no test coverage detected