-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcdial.html
101 lines (90 loc) · 3.92 KB
/
cdial.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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html>
<head>
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<!-- JavaScript Bundle with Popper -->
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="https://unpkg.com/d3-geo-voronoi@1.5"></script>
<script src="https://unpkg.com/topojson@3"></script><link href="https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-52207113-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-52207113-1');
</script>
<style>
html, body {margin: 0; height: 100%; overflow: hidden; font-family: 'Fira Sans', sans-serif;}
.tooltip {
position: absolute;
padding: 10px;
top: -100px;
left: -100px;
font-size: 0.9em;
pointer-events: none;
background: #fff;
border: 1px solid #ccc;
border-radius: 4px;
-moz-box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.25);
-webkit-box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.25);
box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.25);
}
.tooltip h5 {
margin: 0;
padding: 0;
}
.tooltip p {
margin: 0;
padding: 0;
}
.tooltip table {
margin: 0;
padding: 0;
border-collapse: collapse;
}
.container {
max-width: 400px;
position: absolute;
left: 0px;
top: 0px;
margin-left: 5vw;
margin-top: 5vh;
margin-bottom: 5vh;
}
.fullcontainer {
max-width: none !important;
width: 90vw;
height: 80vh;
}
.card-body {
display: flex;
flex-direction: column;
height: 100%;
}
ul {
flex-shrink: 1;
}
#facets {
display: flex;
flex-wrap: wrap;
}
</style>
<title>Bhāṣācitra | Map</title>
</head>
<body>
<div class="card bg-dark text-white shadow container">
<div class="card-body">
<h3 class="card-title name">Phonemes (<span id="phone"></span>)</h3></li>
<div class="card-text" id="facets" style="overflow-y: scroll; height: 50vh;"></div>
</div>
</div>
<svg id="map"></svg>
</body>
<script src="scripts/helpers.js"></script>
<script src="scripts/cdial.js"></script>
</html>