There is a block that can be dragged with the mouse, and the code works with id and document.getElementById. But on the site, blocks with same class will be added in unlimit