-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
27 lines (23 loc) · 796 Bytes
/
Copy pathindex.html
File metadata and controls
27 lines (23 loc) · 796 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>History Road</title>
<link rel="stylesheet" href="./public/history-road.css">
</head>
<body>
<div id="road-container" class="history-road-container"></div>
<script type="module" src="./dist/main.js"></script>
<script src="sample.js"></script>
<script >
// Wait for the page and modules to fully load, then execute
window.addEventListener('DOMContentLoaded', () => {
if (typeof window.initializeHistoryRoad === 'function') {
window.initializeHistoryRoad(historyRoadJson,config);
} else {
console.error("The HistoryRoad module initialization function was not found.");
}
});
</script>
</body>
</html>