forked from quisquous/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dps.html
57 lines (51 loc) · 1.85 KB
/
dps.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" href="../../../resources/resize_handle.css">
<script src="../../../resources/common.js"></script>
<script src="../../../resources/regexes.js"></script>
<script src="../../../resources/user_config.js"></script>
<script src="../../../resources/lang.js"></script>
<script src="../../../resources/lang/en.js"></script>
<script src="../../../resources/lang/de.js"></script>
<script src="../../../resources/lang/fr.js"></script>
<script src="../../../resources/lang/ja.js"></script>
<script src="../../../resources/lang/ko.js"></script>
<script src="../../../resources/lang/cn.js"></script>
<script src="../../../resources/fights.js"></script>
<script src="../../../resources/resize_handle.js"></script>
<script src="../../../resources/lib/lodash.min.js"></script>
<script src="../../../resources/lib/react.min.js"></script>
<script src="../dps_common.js"></script>
<link rel="stylesheet" type="text/css" href="dps.css">
<!-- User config -->
<link rel="stylesheet" href="../../../user/rdmty.css">
<script src="../../../user/rdmty.js"></script>
<script src="dps.js"></script>
<script>
'use strict';
function onOverlayDataUpdate(e) {
let start = new Date().getTime();
let details = e.detail;
let container = document.getElementById('container');
container.style.display = 'block';
React.render(
React.createElement(DamageMeter, {
parseData: e.detail
}),
container
);
//console.log('rendered in ' + (+new Date() - start) + 'ms');
}
function hideOverlay() {
document.getElementById('container').style.display = 'none';
}
InitDpsModule('rdmty', onOverlayDataUpdate, hideOverlay);
</script>
</head>
<body>
<div id="container"></div>
</body>
</html>