-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
52 lines (44 loc) · 1.19 KB
/
example.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Kuna Chart Header example</title>
<link href="css/kch-style.css" rel="stylesheet" media="all" />
<script src="https://js.pusher.com/4.4/pusher.min.js"></script>
<script src="dist/kuna-chart-header.js"></script>
</head>
<body>
<section>
<div id="kuna-chart-header"></div>
</section>
<style>
body, html {
margin: 0;
padding: 0;
}
#kuna-chart-header {
width: 100%;
max-width: 1150px;
margin: 30px auto 0 auto;
}
</style>
<script>
const symbol = 'btcuah';
window.pusher = new Pusher('4b6a8b2c758be4e58868', {
encrypted: true,
wsHost: 'pusher.kuna.io',
wsPort: '443',
wssPort: '443',
enabledTransports: ['ws', 'flash'],
});
var chartHeader = KunaChartHeader.create('#kuna-chart-header', {
symbol: 'dashuah',
baseAsset: 'DASH',
quoteAsset: 'UAH',
pricePrecision: 0,
volumePrecision: 2,
});
</script>
</body>
</html>