-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (27 loc) · 939 Bytes
/
index.html
File metadata and controls
35 lines (27 loc) · 939 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Embed Console</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="css/embed_console.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/styles/default.min.css">
</head>
<body>
<div id="embed-console" style="width: 500px;"></div>
<script src="js/embed_console.js"-></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"-></script>
<script>
var sandboxConsole = new SandboxConsole('embed-console');
sandboxConsole.populate([
"Math.PI;",
"Math.E;",
"Math.answer;",
"Math.answer = 42;",
"Math.answer;"
]);
</script>
</body>
</html>