-
Notifications
You must be signed in to change notification settings - Fork 222
/
docs.html
27 lines (25 loc) · 5.69 KB
/
docs.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
<!DOCTYPE html>
<html lang="en">
<title>Collaborative Docs</title>
<script src='everypage.js'></script>
<link rel="shortcut icon" href="Docs.png" type="image/png"/>
<script src="load.js"></script>
<body onload="updateRedirect()">
<a href='..'>Back to Home Page</a>
<h1>Type doc code in the box below</h1>
<input id="key" value="mountain658" onkeyup='updateRedirect()' class='center' autocomplete="off" readonly onfocus="this.removeAttribute('readonly');">
<br><br>
<h3>Currently In Doc: <span id='inRoom'>mountain658</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='"+'data:text/html;base64,CjwhZG9jdHlwZSBodG1sPgo8IS0tIFNlZSBodHRwOi8vd3d3LmZpcmVwYWQuaW8vZG9jcy8gZm9yIGRldGFpbGVkIGVtYmVkZGluZyBkb2NzLiAtLT4KPGh0bWw+Cgo8aGVhZD4KICA8dGl0bGU+RG9jPC90aXRsZT4KICA8bGluayByZWw9InNob3J0Y3V0IGljb24iIGhyZWY9IiIgdHlwZT0iaW1hZ2UveC1pY29uIiAvPgogIDxtZXRhIGNoYXJzZXQ9InV0Zi04IiAvPgogIDwhLS0gRmlyZWJhc2UgLS0+CiAgPHNjcmlwdCBzcmM9Imh0dHBzOi8vd3d3LmdzdGF0aWMuY29tL2ZpcmViYXNlanMvNS41LjQvZmlyZWJhc2UuanMiPjwvc2NyaXB0PgoKICA8IS0tIENvZGVNaXJyb3IgLS0+CiAgPHNjcmlwdCBzcmM9Imh0dHBzOi8vY2RuanMuY2xvdWRmbGFyZS5jb20vYWpheC9saWJzL2NvZGVtaXJyb3IvNS4xNy4wL2NvZGVtaXJyb3IuanMiPjwvc2NyaXB0PgogI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0hpc3RvcnlFbXB0eSgpKSB7CiAgICAgICAgICBmaXJlcGFkLnNldEh0bWwoJzxzcGFuIHN0eWxlPSJmb250LXNpemU6IDI0cHg7Ij5TdGFydCBUeXBpbmcgaW4gPHNwYW4gc3R5bGU9ImNvbG9yOiByZWQiPkRvYyE8L3NwYW4+PC9zcGFuPjxici8+PGJyLz5cbicpOwogICAgICAgIH0KICAgICAgfSk7CiAgICB9CgogICAgLy8gSGVscGVyIHRvIGdldCBoYXNoIGZyb20gZW5kIG9mIFVSTCBvciBnZW5lcmF0ZSBhIHJhbmRvbSBvbmUuCiAgICBmdW5jdGlvbiBnZXRFeGFtcGxlUmVmKCkgewogICAgICB2YXIgcmVmID0gZmlyZWJhc2UuZGF0YWJhc2UoKS5yZWYoKTsKICAgICAgdmFyIGhhc2ggPSB3aW5kb3cubG9jYXRpb24uaGFzaC5yZXBsYWNlKC8jL2csICcnKTsKICAgICAgaWYgKGhhc2gpIHsKICAgICAgICByZWYgPSByZWYuY2hpbGQoaGFzaCk7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgcmVmID0gcmVmLnB1c2goKTsgLy8gZ2VuZXJhdGUgdW5pcXVlIGxvY2F0aW9uLgogICAgICAgIHdpbmRvdy5sb2NhdGlvbiA9IHdpbmRvdy5sb2NhdGlvbiArICcjJyArIHJlZi5rZXkrJ0RPQ1MnOyAvLyBhZGQgaXQgYXMgYSBoYXNoIHRvIHRoZSBVUkwuCiAgICAgIH0KICAgICAgaWYgKHR5cGVvZiBjb25zb2xlICE9PSAndW5kZWZpbmVkJykgewogICAgICAgIGNvbnNvbGUubG9nKCdGaXJlYmFzZSBkYXRhOiAnLCByZWYudG9TdHJpbmcoKSk7CiAgICAgIH0KICAgICAgcmV0dXJuIHJlZjsKICAgIH0KICA8L3NjcmlwdD4KPC9ib2R5Pgo8L2h0bWw+#'+document.getElementById("key").value+"' width='100%' height='500px'></iframe>";
document.getElementById("inRoom").innerHTML = document.getElementById("key").value;
}
</script>
</body>
</html>