This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
html, body { | |
margin: 0px; | |
background-color: #fdf6e3; | |
font-family: monospace; | |
} | |
#canvas { | |
height: 100%; | |
width: 100%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
body { | |
background: conic-gradient(from 90deg at 1px 1px, #fdf6e3 90deg, #eee8d5 0deg); | |
background-position: 0px 0px; | |
background-size: 40px 40px; | |
overflow: hidden; | |
} | |
.elem { | |
position: absolute; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
const $ = ({ | |
el, // existing string type to create | |
pr = null, // parent node | |
at = {}, // attributes | |
st = {}, // style | |
ev = {}, // events, element injected as first parameter | |
ih = "" // innerHTML | |
}) => { | |
let n = el; |