mirror of
				https://github.com/jaandrle/deka-dom-el
				synced 2025-11-04 15:19:15 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			975 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			975 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!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(
 | 
						|
			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" })
 | 
						|
			)
 | 
						|
		);
 | 
						|
	</script>
 | 
						|
</head>
 | 
						|
<body>
 | 
						|
</body>
 | 
						|
</html>
 |