-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
112 lines (97 loc) · 2.75 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
105
106
107
108
109
110
111
112
<!doctype html>
<html>
<head>
<meta charset="utf8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Fractal</title>
<style>
html,
body,
#fractal {
width: 100%;
height: 100%;
margin: 0;
overscroll-behavior: none;
}
body, .leaflet-container {
background-color: black;
}
.mandelbrot-iterations-header {
background-color: #f4f4f4;
display: block;
border-radius: 2px 2px 0 0;
padding: 0 5px;
line-height: 1.5;
text-align: center;
}
.mandelbrot-iterations-controls {
display: flex;
font: bold 18px 'Lucida Console', Monaco, monospace;
}
.leaflet-touch .mandelbrot-iterations-controls {
font-size: 22px;
}
.leaflet-bar.mandelbrot-iterations a:first-child {
border-radius: 0px 0px 0px 4px;
border-bottom: none;
border-right: 1px solid #ccc;
}
.leaflet-touch .leaflet-bar.mandelbrot-iterations a:first-child {
border-radius: 0px 0px 0px 2px;
}
.leaflet-bar.mandelbrot-iterations a:last-child {
border-radius: 0px 0px 4px 0px;
}
.leaflet-touch .leaflet-bar.mandelbrot-iterations a:last-child {
border-radius: 0px 0px 2px 0px;
}
.mandelbrot-iterations-more,
.mandelbrot-iterations-fewer {
font-size: 22px;
}
.spinner, .spinner::after {
position: absolute;
box-sizing: border-box;
border-radius: 50%;
}
.spinner {
top: 50%;
left: 50%;
width: 50vmin;
height: 50vmin;
border-top: .4rem solid red;
border-bottom: .4rem solid lightgreen;
transform: translate(-50%, -50%) rotate(0deg);
animation: spin 1s linear infinite;
transition: opacity .2s;
z-index: 10000;
}
.spinner::after {
content: '';
top: 0;
bottom: 0;
left: 0;
right: 0;
border-left: .4rem solid orange;
border-right: .4rem solid cyan;
}
@keyframes spin {
to {
transform: translate(-50%, -50%) rotate(360deg);
}
}
.transparent {
opacity: 0;
}
.hide {
display: none;
}
</style>
<script src="leaflet.js" defer></script>
<script src="index.js" type="module" defer></script>
</head>
<body>
<div class="spinner"></div>
<div id="fractal"></div>
</body>
</html>