-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclass.html
More file actions
35 lines (35 loc) · 1.25 KB
/
Copy pathclass.html
File metadata and controls
35 lines (35 loc) · 1.25 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hybrid</title>
<link rel="stylesheet" href="w3.css">
</head>
<body>
<div class="w3-bar w3-light-blue">
<a href="#" class="w3-bar-item w3-button">Home</a>
<a href="#" class="w3-bar-item w3-button">about</a>
<a href="#" class="w3-bar-item w3-button">contact</a>
<div class="w3-dropdown-click">
<button onclick="myFunction()" class="w3-button"><menu type="toolbar">menu</menu></button>
<div id="Demo" class="w3-dropdown-content w3-bar-block w3-border">
<a href="#" class="w3-bar-item w3-button">link1</a>
<a href="#" class="w3-bar-item w3-button">link2</a>
<a href="#" class="w3-bar-item w3-button">link3</a>
</div>
<header><h1>begin</h1>
<button>begin your adventure</button>
</header>
<script>
function myFunction() {
var x = document.getElementById("Demo");
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
</script>
</body>
</html>