-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
96 lines (85 loc) · 2.54 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
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Mappa Meteo</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<style>
body {
background-color: darkslategrey;
}
.btn-group.special {
display: flex;
}
.special .btn {
flex: 1;
color: white;
background-color: #00c853;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
.btn.active {
color: black;
background-color: white;
}
.btn.active:hover {
z-index: 1
}
.content {
height: -webkit-calc(100vh - 4vmax);
height: -moz-calc(100vh - 4vmax);
height: calc(100vh - 4vmax);
vertical-align: middle;
}
img {
display: block;
height: 100%;
max-width: 98vw;
max-height: 98vw;
width: auto;
margin: auto;
vertical-align: middle;
}
.helper {
display: inline-block;
vertical-align: middle;
}
.collapse {
color: black;
padding-top: 10px;
padding-bottom: 10px;
display: inline-block;
}
.center {
text-align: center;
}
</style>
</head>
<body>
<div class="btn-group special" role="group" aria-label="...">
<button type="button" class="btn active">
Last 24h
</button>
<button type="button" class="btn btn-default" data-toggle="collapse" data-target="#demo">
Select a day
</button>
<button type="button" class="btn btn-default" data-toggle="collapse" data-target="#demo">
Select a Range
</button>
</div>
<div id="demo" class="collapse">
<div class="center">
<input type="date" name="selectedDay" id="selectedDay">
<button type="button" class="btn btn-success">Confirm</button>
</div>
</div>
<div class="content">
<span class="helper"></span>
<img src="o.png" alt="Map">
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
</body>
</html>