Skip to content

Commit

Permalink
Added restart button
Browse files Browse the repository at this point in the history
  • Loading branch information
bychen9 committed Aug 13, 2019
1 parent 727dc47 commit 597a129
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions results.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<head>
<h2>Your Vocal Range Results</h2>
<body>
<button onclick="location.href = 'index.html'">Restart</button>
</body>
<script src="results.js"></script>
</html>
2 changes: 1 addition & 1 deletion results.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ let body = document.querySelector("body");
let text = document.createElement("p");
let node = document.createTextNode(lowNote + " to " + highNote);
text.append(node);
body.append(text);
body.insertBefore(text, body.childNodes[1]);

0 comments on commit 597a129

Please sign in to comment.