forked from liriliri/eruda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (72 loc) · 1.7 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
/>
<title>Eruda Test Page</title>
<link rel="stylesheet" href="style.css" />
<script src="assets/eruda.js"></script>
</head>
<body>
<header>ERUDA TEST PAGE</header>
<nav id="test-list">
<ul>
<li>
<a href="eruda.html">eruda</a>
</li>
<li>
<a href="console.html">console</a>
</li>
<li>
<a href="elements.html">elements</a>
</li>
<li>
<a href="network.html">network</a>
</li>
<li>
<a href="resources.html">resources</a>
</li>
<li>
<a href="sources.html">sources</a>
</li>
<li>
<a href="info.html">info</a>
</li>
<li>
<a href="snippets.html">snippets</a>
</li>
<li>
<a href="settings.html">settings</a>
</li>
<li>
<a href="manual.html">manual</a>
</li>
</ul>
</nav>
<script>
;(function () {
let el = document.createElement('div')
document.body.appendChild(el)
setTimeout(function () {
try {
eruda.init({
container: el,
useShadowDom: false,
defaults: {
displaySize: 50,
transparency: 0.9,
theme: 'Monokai Pro',
},
})
} catch (e) {
alert(e)
}
eruda.show().get().config.set('displaySize', 50)
}, 1000)
})()
</script>
</body>
</html>