forked from philippK-de/jsIRC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dia.html
110 lines (106 loc) · 1.51 KB
/
dia.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<html>
<head>
<style type = "text/css">
body{
background-color:black;
color:white;
}
input{
background-color:#CCCCCC;
border:1px solid;
}
.chatcolor0
{
color:#FFFFFF;
}
.chatcolor1
{
color:#FFFFFF;
}
.chatcolor2
{
color:#000099;
}
.chatcolor3
{
color:#009900;
}
.chatcolor4
{
color:#FF0000;
}
.chatcolor5
{
color:#993300;
}
.chatcolor6
{
color:#9900FF;
}
.chatcolor7
{
color:#FF9900;
}
.chatcolor8
{
color:#FFFF00;
}
.chatcolor9
{
color:#00FF00;
}
.chatcolor10
{
color:#009999;
}
.chatcolor11
{
color:#00FFFF;
}
.chatcolor12
{
color:#0000FF;
}
.chatcolor13
{
color:#FF00FF;
}
.chatcolor14
{
color:#999999;
}
.chatcolor15
{
color:#666666;
}
a:link,a:visited { color:#666666; text-decoration:none;}
a:hover,a:active { color:#717890; text-decoration:none; cursor:pointer;}
</style>
<script type="text/javascript">
function sendIt(){
var winname = document.title;
winname = winname.split(" ");
window.opener.sendDiaMsg(winname[2]);
}
function getKey(e) {
var code;
if (!e) var e = window.event;
if (e.keyCode) code = e.keyCode;
else if (e.which) code = e.which;
if(code == 13)
{
sendIt();
}
}
</script>
</head>
<body>
<div id = "result" style = "width:100%;height:90%;overflow:auto;border:1px solid white;">
</div>
<input id = "usertext" name = "usertext" type = "text" style = "width:78%"/>
<button style = "width:20%" onclick = "sendIt();">Send</button>
<script type="text/javascript">
document.onkeydown = getKey;
</script>
</body>
</html>