I have a page with a bunch of JS scropts (image loading, dynamic table, blocks that move with the mouse). The essence of such a user went to the table filled (see figure), put the blocks in place, and from all of this by saving the button you need to create a page, like to call it and put it on the server. In fact, on this page there should be only generated tables and blocks with their coordinates.
The question is how to use php or js to pull out certain div blocks to create html and put the div content in the created html or php file (there are many such files, it will be a lot). 