forked from BabylonJS/Editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspectorjs.html
More file actions
23 lines (21 loc) · 827 Bytes
/
spectorjs.html
File metadata and controls
23 lines (21 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SpectorJS</title>
<script src="./node_modules/spectorjs/dist/spector.bundle.js" type="text/javascript"></script>
</head>
<body style="width: 100%; height: 100%;">
<div id="FRAME-INSPECTOR-RESULT" style="width: 100%; height: 100%;"></div>
<script>
displayView = function (capture, logger) {
view = new SPECTOR.EmbeddedFrontend.ResultView({
rootPlaceHolder: document.getElementById("FRAME-INSPECTOR-RESULT"),
eventConstructor: SPECTOR.ProvidedInjection.DefaultInjection.EventCtor
}, logger);
view.display();
view.addCapture(capture);
};
</script>
</body>
</html>