2023-09-08 20:18:58 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="no-js" lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<!-- DEL CSP https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP | https://github.com/Prinzhorn/minimal-csp -->
|
|
|
|
<!-- DEL https://github.com/jensimmons/cssremedy -->
|
|
|
|
<!-- <link rel="stylesheet" href="https://github.com/jensimmons/cssremedy/raw/master/css/remedy.css"> -->
|
|
|
|
|
|
|
|
<title>Small DOM element creation enhancements</title>
|
|
|
|
<meta name="description" content="Making creatig elements easier">
|
|
|
|
<script type="module">
|
|
|
|
import { el } from "../index.js";
|
|
|
|
document.body.append(
|
2023-09-13 13:02:17 +02:00
|
|
|
el("input", { type: "checkbox", name: "name", checked: true, id: undefined }),
|
|
|
|
el("p", { textContent: "Ahoj", style: { color: "green" } }),
|
|
|
|
el("select", { value: "a" }).append(
|
|
|
|
el("option", { value: "a", textContent: "A" }),
|
|
|
|
el("option", { value: "b", textContent: "B" })
|
|
|
|
)
|
2023-09-08 20:18:58 +02:00
|
|
|
);
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
</body>
|
|
|
|
</html>
|