forked from liriliri/eruda-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
26 lines (26 loc) · 1012 Bytes
/
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
<!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-monitor</title>
</head>
<body>
<button id="add-nodes">Add 100 nodes</button>
<div class="nodes"></div>
<script src="node_modules/eruda/eruda.js"></script>
<script>eruda.init({tool: []});</script>
<script src="assets/eruda-monitor.js"></script>
<script>eruda.add(erudaMonitor).show('monitor').show();</script>
<script>
document.getElementById('add-nodes').addEventListener('click', function() {
const nodes = document.querySelector('.nodes');
for (let i = 0; i < 100; i++) {
const node = document.createElement('div');
node.textContent = 'Node ' + i;
nodes.appendChild(node);
}
});
</script>
</body>
</html>