In my template, there are a #document-fragment, which then contains div classes.
What I’m trying to open a window when pressing on the icon in the menu,
Look at the template id window, and inside it, there is a document fragment. This div inside the #document fragment should be rendered on the site. But they are only visible Chrome DevTools.
Here is what is look like inside the HTML
<template id =”window”>
<div class =”grid-snap” draggable=”true”>
</div>
</template>
The div class is a movable window, which you can drag and drop. It contains a memory game inside the div. i append the game on the window.
Here is some code. Which I create the window and trying to add it to the DOOM.