-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·108 lines (96 loc) · 2.86 KB
/
index.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<title>osw-js</title>
<script type='text/javascript' src='lib/jquery.js'></script>
<script type='text/javascript' src='lib/strophe.js'></script>
<script type='text/javascript' src='src/osw.js'></script>
<script type='text/javascript' src='src/example.js'></script>
<style type="text/css">
#contactlist li .subscription {
font-size: 0.8em;
cursor: pointer;
margin-left: 1em;
}
#contactlist li.away .nickname, #contactlist li.xa .nickname {
color: red;
}
#contactlist li.unavailable .nickname {
color: grey;
}
.contact .avatar {
width: 48px;
height: 48px;
vertical-align: middle;
padding-left: 5px;
}
#error {
color: red;
}
#authenticated {
display: none;
}
.action {
font-size: 0.8em;
font-weight: bold;
cursor: pointer;
margin: 0 1em;
}
</style>
</head>
<body>
<h1>osw-js: Communicating with OneSocialWeb in Javascript using Strophe.js</h1>
<p>This web application is a test implementation of the protocols and standards defined in OneSocialWeb</p>
<div id="status"></div>
<!-- Display any error messages from the server -->
<div id="error" style="display: none"></div>
<!-- Everything within the #unauthenticated container will only appear when the user has not signed in -->
<div id="unauthenticated">
<div id="registration">
<h2>Registration</h2>
<form>
<fieldset>
<label>Username<input type="text" id="register_username"/></label>
<label>Password<input type="text" id="register_password"/></label>
<label>Email address<input type="text" id="register_email"/></label>
</fieldset>
<input type="button" value="Register" id="register"/>
</form>
</div>
<div id="authentication">
<h2>Authentication</h2>
<form>
<fieldset>
<label>Username<input type="text" id="username"/></label>
<label>Password<input type="text" id="password"/></label>
<input type="button" value="Sign In" id="authenticate"/>
</form>
</div>
</div>
<!-- Everything within #authenticated will only appear when the user has signed in -->
<div id="authenticated">
<div id="messages"></div>
<div id="activities">
<h2>Activities</h2>
<form>
<label>Status<input type="text" id="update_status"></label>
<input type="button" value="Update" id="updatestatus"/>
</form>
<ul id="activitylist"></ul>
</div>
<div id="contacts">
<h2>Contacts</h2>
<ul id="contactlist"></ul>
<form id="add_contact"><input type="text" id="add_contact_jid"><input type="button" value="Add Contact" id="add_contact_button"></form>
</div>
<div id="profile">
<h2>Profile</h2>
Nickname: <input type="text" class="nickname"/>
<input type="button" value="Update Profile" id="edit_profile_button"/>
</div>
</div>
<hr>
<address></address>
<!-- hhmts start -->Last modified: Wed Jun 23 11:55:28 BST 2010 <!-- hhmts end -->
</body> </html>