Files
web-components-workshop-dep…/index.4.html
Julien Lengrand-Lambert 08da09d394 Adds Shadow DOM example
2017-12-12 20:15:47 +01:00

34 lines
907 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="/bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<style>
body {
background-color: grey;
}
h1 {
color: red;
margin-left: 40px;
}
</style>
</head>
<body>
<h1>WebComponents workshop</h1>
<p>In this workshop, we will create new custom HTML Components</p>
<h2>Creating a new component with shady-dom</h2>
<hello-world-shady></hello-world-shady>
<h2>And here comes another section</h2>
<p>After my shady DOM custom element</p>
<script src="src/components/hello-world-shady.js"></script>
</body>
</html>