-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroupchat_top.html
38 lines (34 loc) · 1.06 KB
/
groupchat_top.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<script src="switchStyle.js"></script>
<script src="shared.js" language="JavaScript1.2"></script>
<script src="jsjac.js"></script>
<script>
function setSubject() {
var aMessage = new JSJaCMessage();
aMessage.setTo(parent.group);
aMessage.setType('groupchat');
aMessage.setSubject(document.forms[0].elements['subject'].value);
parent.srcW.con.send(aMessage);
/* restore topic */
if (top.user.roster.subject)
document.forms[0].elements['subject'].value = top.user.roster.subject;
else
document.forms[0].elements['subject'].value = '';
return false;
}
</script>
</head>
<body style="margin:8px;">
<form onSubmit="return setSubject();">
<table width="100%">
<tr>
<td>Topic: </td>
<td width="100%"><input type="text" style="width:100%;" name="subject"></span></td>
</tr>
</table>
</form>
</body>
</html>