-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathA.html
More file actions
33 lines (31 loc) · 987 Bytes
/
A.html
File metadata and controls
33 lines (31 loc) · 987 Bytes
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="B.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons">
<link rel="stylesheet" href="https://unpkg.com/bootstrap-material-design@4.1.1/dist/css/bootstrap-material-design.min.css" integrity="sha384-wXznGJNEXNG1NFsbm0ugrLFMQPWswR3lds2VeinahP8N0zJw9VWSopbjv2x7WCvX" crossorigin="anonymous">
<style>
div {
background-color: gray;
width: 300px;
padding: 200px;
}
</style>
</head>
<body>
<button type="button" class="btn btn-primary bmd-btn-fab " id="navicon">
<i class="material-icons">grade</i>
</button>
<nav class="shown" id="siteNav">
<div></div>
</nav>
</body>
<script type="text/javascript">
var navicon = document.getElementById('navicon');
var navEl = document.getElementById('siteNav');
function toggleMenu(){
navEl.classList.toggle('hidden');
};
navicon.addEventListener("click", toggleMenu, false);
</script>
</html>