-
Notifications
You must be signed in to change notification settings - Fork 0
/
vid2.html
28 lines (25 loc) · 842 Bytes
/
vid2.html
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
<!DOCTYPE html>
<html>
<link rel="stylesheet" type="text/css" href="videoStyle.css">
<body>
<div align="center">
<form name="info">
<p id="input">Enter Access Code: <input type="text" align="center" id="ip1"></p>
</form>
</div>
<iframe src="https://www.youtube.com/embed/bFNjA9LOPsg" id="vid1"></iframe>
<script>
var par = document.getElementById('input');
par.style.fontFamily = 'monospace';
var vid1 = document.getElementById('vid1');
document.body.removeChild(vid1);
document.addEventListener('keydown', function(event){
var key = event.keyCode;
if (key == 13) {
var ip1 = document.info.ip1.value;
if (ip1 == '.)n;+HHy%-Wt86wt') document.body.appendChild(vid1);
}
});
</script>
</body>
</html>