-
Notifications
You must be signed in to change notification settings - Fork 44
/
RADWIMPS.html
56 lines (53 loc) · 1.52 KB
/
RADWIMPS.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
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>RADWIMPS</title>
</head>
<body>
<x-then>
<x-then>
<x-then>
<x-世>
</x-世>
</x-then>
</x-then>
</x-then>
<template id="then">
前<slot></slot>
</template>
<template id="世">
世
</template>
<script>
customElements.define(
'x-then',
class extends HTMLElement {
constructor() {
super();
const template = document
.getElementById('then')
.content
this
.attachShadow({mode: 'open'})
.appendChild(template.cloneNode(true))
}
}
)
customElements.define(
'x-世',
class extends HTMLElement {
constructor() {
super();
const template = document
.getElementById('世')
.content
this
.attachShadow({mode: 'open'})
.appendChild(template.cloneNode(true))
}
}
)
</script>
</body>
</html>