-
Notifications
You must be signed in to change notification settings - Fork 5
/
police-console.html
59 lines (58 loc) · 1.36 KB
/
police-console.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
<title>POLICE CONSOLE</title>
<style>
button{
height: 100px;
width: 200px;
font-weight: bolder;
font-size: xx-large;
}
#text{
width: 400px;
border: black 1px solid;
}
#log{
display: none;
border: black 1px solid;
width: 400px;
height: 250px;
overflow: scroll;
}
#container{
display:none;
}
#histext {
font-weight: bolder;
color: #0000ff;
}
#mytext {
font-style: italic;
font-weight: bolder;
}
</style>
</head>
<body>
POLICE CONSOLE
<span id="iam" style="display: none"></span>
<br/>
<div id="rooms"></div>
<div id="log"></div>
<div id="container">
<input type="text" id="text" onkeydown="send">
<input type="button" onclick="TextShare.send()" value="Send">
</div>
<script src="js/text-rtc.js"></script>
<script>
TextShare.init();
document.getElementById('text').addEventListener("keydown", send, false);
function send(e){
if(e.which === 13) {TextShare.send()}
}
TextShare.createInvite("BhEEM");
var he = "Victim";
var me = "Police"
</script>
</body>
</html>