-
-
Notifications
You must be signed in to change notification settings - Fork 780
/
Copy pathlocal.html
61 lines (59 loc) · 2.5 KB
/
local.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Converse.js</title>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Converse XMPP/Jabber Chat" />
<meta name="author" content="JC Brand" />
<meta name="keywords" content="xmpp chat webchat converse.js" />
<link rel="manifest" href="./manifest.json">
<link rel="shortcut icon" type="image/ico" href="images/favicon.ico"/>
<link type="text/css" rel="stylesheet" media="screen" href="dist/converse.css" />
<script src="3rdparty/libsignal-protocol.js"></script>
<script src="dist/converse.js"></script>
</head>
<body class="reset" style="background-color: var(--global-background-color)">
<script>
function initConverse() {
converse.plugins.add('converse-debug', {
initialize () {
const { _converse } = this;
window._converse = _converse;
}
});
converse.initialize({
auto_fill_history_gaps: false,
archived_messages_page_size: 2,
muc_subscribe_to_rai: true,
theme: 'dracula',
auto_away: 300,
message_limit: 300,
// auto_join_rooms: ['ttt@conference.chat.example.org'],
loglevel: 'debug',
// modtools_disable_assign: ['owner', 'moderator', 'participant', 'visitor'],
// modtools_disable_query: ['moderator', 'participant', 'visitor'],
// connection_options: { 'worker': '/dist/shared-connection-worker.js' },
// persistent_store: 'IndexedDB',
message_archiving: 'always',
// muc_domain: 'conference.chat.example.org',
view_mode: 'fullscreen',
// websocket_url: 'ws://chat.example.org:5380/xmpp-websocket',
// websocket_url: 'wss://chat.example.org:5381/xmpp-websocket',
// websocket_url: 'wss://conversejs.org/xmpp-websocket',
// bosh_service_url: 'http://chat.example.org:5280/http-bind',
allow_user_defined_connection_url: true,
muc_show_logs_before_join: true,
whitelisted_plugins: ['converse-debug'],
blacklisted_plugins: [],
show_background: true,
});
}
if (typeof converse === 'undefined') {
window.addEventListener('converse-loaded', initConverse);
} else {
initConverse();
}
</script>
</html>