-
Notifications
You must be signed in to change notification settings - Fork 25
/
debugger.html
40 lines (36 loc) · 937 Bytes
/
debugger.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style>
html {
height: 100%;
}
body {
min-height: 100%;
}
#debuggerContainer {
position: absolute;
width: 100%;
height: calc(100% - 30px);
background-color: white;
}
</style>
</head>
<body>
<!-- booting lively just came down to this one line -->
<script src="src/client/boot.js" data-container="false"></script>
<div id="debuggerContainer">
<lively-debugger id="debugger"></lively-debugger>
<script>
var debuggerNode = document.querySelector('#debugger');
debuggerNode.addEventListener('loaded', () => {
var targetId = lively.preferences.getURLParameter('targetId');
if (targetId) {
debuggerNode.attachAndEnableDebuggerFromTargetId(targetId);
}
});
</script>
</div>
</body>
</html>