-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
104 lines (86 loc) · 1.64 KB
/
index.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
102
103
104
<html>
<head>
<title>Some Kind Of Map</title>
<style>
.map-container {
overflow: hidden;
transform-origin: top center;
}
svg {
padding: 32px;
background-color: lightblue;
}
path {
transform-origin: center;
fill: lightgreen;
transition: all .5s;
}
path:hover {
fill: yellow!important;
}
path.selected {
fill: black!important;
opacity: 1!important;
transform: scale(2);
transform-origin: center;
}
.silly path {
transition: transform 3s ease-in-out, fill .5s;
transform: rotate(720deg);
}
aside {
position: absolute;
font-family: sans-serif;
background: white;
box-shadow: 1px 1px 18px #999;
padding: 0 16px;
border: 1px solid grey;
}
h1 {
margin: 16px 0 0 0;
}
.native-name {
font-style: italic;
color: grey;
margin: 0;
}
dl {
font-size: 12px;
}
dt {
margin-top: 8px;
}
dd {
font-weight: bold;
margin: 0;
}
.currency-symbol {
font-size: 2em;
background: black;
color: white;
display: inline-block;
padding: 0 8px;
text-align: center;
}
.flag {
margin-top: 16px;
width: 100%;
max-width: 240px;
box-shadow: 1px 1px 18px #999;
}
.loader {
display: block;
margin-bottom: 32px;
}
</style>
</head>
<body>
<p>click a country to see some info - use the scroll wheel to zoom</p>
<mappy-map></mappy-map>
<script type="riot/tag" src="mappy-map.tag"></script>
<script src="world.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/riot+compiler.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/superagent/3.8.2/superagent.js"></script>
<script>riot.mount('*',{countries:countries})</script>
</body>
</html>