-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (45 loc) · 1.72 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Web Component Basics</title>
<script src="node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
<script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<style>
h1 {
color: #ff6600 !important;
}
random-greeter {
--var-bg-color: navy;
--var-color: green;
--greeter-styles: {
font-family: "Bauhaus 93";
font-size: 40px;
border: dotted 5px yellow;
}
}
</style>
</head>
<body>
<random-greeter class="light"></random-greeter>
<random-greeter class="dark"></random-greeter>
<random-greeter>
<marquee behavior="alternate" direction="right" slot="top">#BBConf rulz!!!</marquee>
<ul>
<li>Something</li>
<li>More something</li>
<li>About</li>
</ul>
</random-greeter>
<script>
window.addEventListener('WebComponentsReady', function () {
var randomGreeterImport = document.createElement('link');
randomGreeterImport.rel = 'import';
randomGreeterImport.href = 'dist/random-greeter.html';
document.head.appendChild(randomGreeterImport);
});
</script>
</body>
</html>