generated from phazonoverload/vonage-project-template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kevin Lewis
committed
Oct 2, 2020
1 parent
8b89b35
commit 9557764
Showing
2 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Build a Thing Video App</title> | ||
</head> | ||
<body> | ||
<form id="enter"> | ||
<div class="input-group"> | ||
<label for="room">Room Code</label> | ||
<input type="text" id="room" /> | ||
</div> | ||
<button>Enter Room</button> | ||
</form> | ||
<script> | ||
document.getElementById('enter').addEventListener('submit', event => { | ||
event.preventDefault() | ||
const room = document.getElementById('room').value | ||
if (!room) return alert('Please provide a room code') | ||
window.location.replace(`/room?id=${room}`) | ||
}) | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters