forked from aidenm05/aplang
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs.html
More file actions
34 lines (24 loc) · 937 Bytes
/
Copy pathdocs.html
File metadata and controls
34 lines (24 loc) · 937 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
34
<!DOCTYPE html>
<html lang="en">
<title>Collaborative Docs</title>
<link rel="shortcut icon" href="Docs.png" type="image/png"/>
<script src="load.js"></script>
<body>
<a href='/'>Back to Home Page</a>
<h1>Type doc code in the box below</h1>
<input id="key" onkeyup='updateRedirect()' class='center' autocomplete="off" readonly onfocus="this.removeAttribute('readonly');">
<br><br>
<h3>Currently In Doc: <span id='inRoom'></span></h3>
<div id='iframeDiv'>
<iframe id='join' src='' width='100%' height='500px'></iframe>
</div>
<script>
function updateRedirect() {
var iFD = document.getElementById("iframeDiv");
iFD.innerHTML = '';
iFD.innerHTML = "<iframe id='join' src='"+'https://2e6caad7-ae22-4679-bc10-c7cc7b5df5ae.id.repl.co/#'+document.getElementById("key").value+"' width='100%' height='500px'></iframe>";
document.getElementById("inRoom").innerHTML = document.getElementById("key").value;
}
</script>
</body>
</html>