-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
61 lines (46 loc) · 1.3 KB
/
test.html
File metadata and controls
61 lines (46 loc) · 1.3 KB
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
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MDX Gun - No Shadow DOM</title>
<script src="mdx-gun.js" type="module"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css">
</head>
<body>
<h3>Auto-Fired on Load specified by src "Intro":</h3>
<mdx-gun fire src="intro.mdx"></mdx-gun>
<hr>
<h3>Auto-Fired on Load specified by id "Hello World":</h3>
<mdx-gun fire id="hello-world"></mdx-gun>
<hr>
<h3>Auto-Fired on Load from template (see source):</h3>
<mdx-gun fire>
<script type="text/mdx">
export function Where() {
return <>From</>
}
# <Where /> Template
</script>
</mdx-gun>
<hr>
<h3>Auto-Fired on Load unspecified:</h3>
<mdx-gun fire></mdx-gun>
<hr>
<button onclick="document.getElementById('about-us').fire()">
Manually fire component.fire() "About Us"
</button>
<button onclick="document.getElementById('about-us').kill()">
Manually kill component.kill() "About Us"
</button>
<h3>Manual-Fired Content:</h3>
<mdx-gun id="about-us"></mdx-gun>
<hr>
<button onclick="window.location.hash = 'gfm'">
Trigger #gfm "GitHub flavored markdown"
</button>
<h3>Hash-Fired GFM Content:</h3>
<mdx-gun id="gfm"></mdx-gun>
<hr>
<a href="#">Top</a>
</body>
</html>