-
Notifications
You must be signed in to change notification settings - Fork 0
/
layover.html
134 lines (115 loc) · 2.22 KB
/
layover.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: 'Lato', sans-serif;
}
.overlay {
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-image: url('australia.svg.png');
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 75% 100%;
overflow-x: hidden;
transition: 0.5s;
}
/*.overlay-content {
position: relative;
top: 25%;
width: 100%;
text-align: center;
margin-top: 30px;
} */
.overlay a {
padding: 8px;
text-decoration: none;
font-size: 24px;
color:black;
display: block;
transition: 0.3s;
}
.overlay a:hover, .overlay a:focus {
color: #f1f1f1;
}
.overlay .closebtn {
position: absolute;
top: 20px;
right: 45px;
font-size: 60px;
}
.NT {
position: absolute;
top: 180px;
right: 580px;
}
.WA {
position: absolute;
top: 280px;
left: 260px;
}
.QLD {
position: absolute;
top: 180px;
right: 400px;
}
.NSW {
position: absolute;
bottom: 230px;
right: 270px;
}
.TAS {
position: absolute;
bottom: 20px;
right: 320px;
}
.SA {
position: absolute;
bottom: 280px;
right: 550px;
}
.ACT {
position: absolute;
bottom: 160px;
right: 290px;
}
.VIC {
position: absolute;
bottom: 130px;
right: 360px;
}
</style>
</head>
<body>
<div id="myNav" class="overlay">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<div class="overlay-content">
<div class="container">
<a class="WA" href="#">Western Australia</a>
<a class="NT" href="#">Northern Territory</a>
<a class="SA" href="#">South Australia</a>
<a class="QLD" href="#">Queensland</a>
<a class="NSW" href="#">New South Wales</a>
<a class="ACT" href="#">ACT</a>
<a class="VIC" href="#">Victoria</a>
<a class="TAS" href="#">Tasmania</a>
</div>
</div>
</div>
<span style="font-size:30px;cursor:pointer" onclick="openNav()">☰ open</span>
<script>
function openNav() {
document.getElementById("myNav").style.width = "100%";
}
function closeNav() {
document.getElementById("myNav").style.width = "0%";
}
</script>
</body>
</html>