-
Notifications
You must be signed in to change notification settings - Fork 0
/
chart.html
35 lines (34 loc) · 1.11 KB
/
chart.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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Chart</title>
<link rel="stylesheet" type="text/css" href="./styles/chart.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<header>
<button>Back</button>
<div class="legend-dots" id="legend-author">Author</div>
<div class="legend-dots" id="legend-book">Book</div>
<div class="legend-dots" id="legend-genre">Genre</div>
</header>
<div id="chart"></div>
<script type="module">
import define from "./scripts/index.js";
import {Runtime, Library, Inspector} from "./scripts/runtime.js";
const runtime = new Runtime();
const main = runtime.module(define, name => {
if (name == 'chart') {
return new Inspector(document.getElementById("chart"))
}
});
</script>
<script>
document.title = localStorage.getItem("author");
document.querySelector('button').addEventListener("click", back);
function back()
{
location.replace("./index.html");
}
</script>
</body>