Added Converse.JS chat window for XMPP server

master
Jack Henschel 7 years ago
parent 289ce7a3ef
commit fc4280d55b
  1. 24
      index.html

@ -14,9 +14,13 @@
<head>
<meta charset="utf-8">
<title>Cubieserver.de</title>
<link rel="stylesheet" type="text/css" href="main.css">
<link rel="stylesheet" type="text/css" href="main.css">
<script src="//use.edgefonts.net/cabin.js"></script>
<script src="main.js"></script>
<link type="text/css" rel="stylesheet" media="screen" href="conversejs/css/theme.css" />
<link type="text/css" rel="stylesheet" media="screen" href="conversejs/css/converse.min.css" />
<script src="conversejs/builds/converse.min.js"></script>
</head>
<body>
<div class="header">
@ -167,4 +171,22 @@
<footer>
</footer>
</body>
<script>
require(['converse'], function (converse) {
converse.initialize({
bosh_service_url: 'https://cubieserver.de:5280/http-bind/',
keepalive: true,
message_carbons: true,
play_sounds: true,
roster_groups: true,
show_controlbox_by_default: true,
allow_registration: false,
archived_messages_page_size: 100,
default_domain: 'cubieserver.de',
domain_placeholder: 'cubieserver.de',
//websocket_url: 'https://chat.cubieserver.de/websocket/',
});
});
</script>
</html>

Loading…
Cancel
Save