-
-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathexample_dev.html
More file actions
42 lines (42 loc) · 1.7 KB
/
example_dev.html
File metadata and controls
42 lines (42 loc) · 1.7 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Xabber Web</title>
<meta charset="utf-8">
<link rel="shortcut icon" type="image/png" href="assets/images/favicon.png"/>
<link rel="manifest" href="manifest.json">
<script>
document.addEventListener('DOMContentLoaded', () => {
let js = document.createElement('script'),
js_vendors = document.createElement('script'),
css = document.createElement('link');
js.src='./dist/xabber.main.js';
js.onload = () => {
xabber.configure({
// Please specify location of xabber-websocket service,
// e.g. 'wss://web.xabber.com/websocket
// To run your own server visit https://github.com/redsolution/xabber-websocket
CONNECTION_URL: '',
LOG_LEVEL: 'INFO',
DEBUG: true,
STORAGE_NAME_ENDING: 'dev'
});
xabber.start();
};
js_vendors.src='./dist/xabber.vendors.js';
document.head.appendChild(js_vendors);
css.href='./dist/main.css';
css.rel='stylesheet';
document.head.appendChild(css);
js_vendors.onload = () => {
document.head.appendChild(js);
};
});
</script>
</head>
<body style="height: 100%; width: 100%;">
<div id="xabber-container" style="height: 100%; width: 100%;">
<div class="login-container"></div>
</div>
</body>
</html>