-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (66 loc) · 2.92 KB
/
index.html
File metadata and controls
73 lines (66 loc) · 2.92 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>KP Language Tree</title>
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><style>@media (prefers-color-scheme:dark){rect{display:block}text{fill:%23000}}</style><rect width='32' height='32' rx='4' fill='white' display='none'/><text x='16' y='24' font-family='Georgia,serif' font-size='26' font-weight='600' text-anchor='middle' fill='%23202122'>A</text></svg>">
<link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;900&family=Crimson+Pro:ital,wght@0,300;0,400;1,300;1,400&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Linux+Libertine:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./static/css/styles.css">
</head>
<body>
<div id="loader">
<canvas id="loader-canvas" width="200" height="200"></canvas>
<p>Compiling Tongues…</p>
</div>
<div id="footer">
<button class="fb active" id="btn-tree" onclick="setLayout('tree')">Tree</button>
<button class="fb" id="btn-sunburst" onclick="setLayout('sunburst')">Sunburst</button>
<button class="fb-icon" onclick="resetView()" title="Reset view">⟳</button>
<button class="fb-icon" id="btn-theme" onclick="toggleTheme()" title="Toggle dark/light">◑</button>
<a id="footer-link" href="https://docs.google.com/spreadsheets/d/1ch2PxWYFILX_hR6qE4sLKNjSq_Fg9A_SzbFstcz_hm4/edit?usp=sharing" target="_blank">Source sheet ↗</a>
</div>
<div id="canvas-wrap">
<svg id="tree-svg">
<defs>
<filter id="glow-filter" x="-50%" y="-50%" width="200%" height="200%">
<feGaussianBlur stdDeviation="2" result="blur"/>
<feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
</filter>
</defs>
<g id="tree-root"></g>
</svg>
</div>
<div id="sunburst-wrap">
<svg id="sunburst-svg"></svg>
</div>
<div id="detail">
<div id="d-map"></div>
<div class="d-content">
<div class="d-breadcrumb" id="d-breadcrumb"></div>
<div class="d-name" id="d-name"></div>
<div class="d-level" id="d-level"></div>
<div id="d-rows"></div>
<div id="d-desc-row"></div>
</div>
</div>
<!--
Load order:
1. sheets.js — Google Sheets fetch helpers
2. data.js — state, hierarchy builder, colour system
3. tree.js — tree layout, viewport, render
4. sunburst.js — sunburst render
5. map.js — minimap
6. ui.js — detail panel, node click, layout toggle, theme, resize
7. main.js — spinner, boot
-->
<script src="./static/js/sheets.js"></script>
<script src="./static/js/data.js"></script>
<script src="./static/js/tree.js"></script>
<script src="./static/js/sunburst.js"></script>
<script src="./static/js/map.js"></script>
<script src="./static/js/ui.js"></script>
<script src="./static/js/main.js"></script>
</body>
</html>