-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
47 lines (41 loc) · 1.39 KB
/
index.html
File metadata and controls
47 lines (41 loc) · 1.39 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
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<style>
.mode-edit,
.mode-maker {
display: none;
}
[mode="edit"] .mode-edit,
[mode="maker"] .mode-maker {
display: block;
}
</style>
</head>
<body mode="maker">
<header>
<h4 class="mode-maker">Music Maker</h4>
<h4 class="mode-edit">Music Maker Configuration</h4>
</header>
<main>
<button class="mode-maker mdl-button" id="edit">Edit</button>
<button class="mode-edit mdl-button mdl-js-button" id="done">Done</button>
<p class="hint mode-edit">When complete, press Done.</p>
</main>
<script>
function enableEditMode() {
document.body.setAttribute('mode', 'edit');
}
function enableDoneMode() {
document.body.setAttribute('mode', 'maker');
}
document.getElementById('edit').addEventListener('click', enableEditMode);
document.getElementById('done').addEventListener('click', enableDoneMode);
</script>
</body>
</html>