-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (87 loc) · 3.37 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>4programmers.net chat</title>
<link rel="shortcut icon" href="res/img/favicon.png" type="image/gif" />
<link rel="stylesheet" type="text/css" href="res/default.css" />
<link rel="stylesheet" type="text/css" href="candy-plugins/namecomplete/candy.css" />
<link rel="stylesheet" type="text/css" href="candy-plugins/inline-images/candy.css" />
<link rel="stylesheet" type="text/css" href="candy-plugins/notifyme/candy.css" />
<link rel="stylesheet" type="text/css" href="candy-plugins/roomPanel/default.css" />
<style >
.roster-pane .user {
display: block !important;
opacity: 1 !important;
}
</style>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="libs.min.js"></script>
<script type="text/javascript" src="candy.min.js"></script>
<script type="text/javascript" src="candy-plugins/namecomplete/candy.js?v=1"></script>
<script type="text/javascript" src="candy-plugins/inline-images/candy.js"></script>
<script type="text/javascript" src="candy-plugins/notifyme/candy.js"></script>
<script type="text/javascript" src="candy-plugins/roomPanel/roomPanel.js"></script>
<script type="text/javascript" src="candy-plugins/me-does/candy.js"></script>
<script type="text/javascript" src="candy-plugins/notifications/candy.js"></script>
<script type="text/javascript" src="custom-plugins/GiphyPlugin.js?v=8"></script>
<script type="text/javascript" src="custom-plugins/settings/SettingsPlugin.js"></script>
<script type="text/javascript" src="custom-plugins/DisableXHTMLMessage.js"></script>
<script type="text/javascript" src="custom-plugins/UnreadMessagesLine.js"></script>
<script type="text/javascript">
$(document).ready(function() {
Candy.init('/http-bind/', {
core: {
debug: true,
autojoin: ['[email protected]']
},
view: { assets: 'res/' }
});
CandyShop.RoomPanel.init({
roomList: [
{
name: 'general',
jid: '[email protected]'
},
{
name: 'help',
jid: '[email protected]'
}
],
// show room list if all rooms are closed, default value is true. [optional]
showIfAllTabClosed: true,
// show '+' at the end of the room tabs
showTab: true,
// show icon in toolbar to show room list
showToolbarIcon: false,
// detect rooms before showing list, default value is true. [optional]
autoDetectRooms: false,
// how long in seconds before refreshing room list, default value is 600. [optional]
roomCacheTime: 600
});
Candy.Core.connect();
CandyShop.NameComplete.init();
CandyShop.InlineImages.initWithMaxImageSize(400);
CandyShop.NotifyMe.init({ playSound: true });
CandyShop.MeDoes.init();
CandyShop.Notifications.init();
CandyShop.Giphy.init();
CandyShop.Settings.init();
CandyShop.DisableXHTMLMessage.init();
//CandyShop.UnreadMessagesLine.init();
$.get('/session', function(data) {
var user = data.username;
var token = data.token;
if (user !== null) {
var jid = user + '@4programmers.net';
var password = 'session!' + token;
Candy.Core.connect(jid, password);
}
});
});
</script>
</head>
<body>
<div id="candy"></div>
</body>
</html>