forked from billyvg/OverlayPlugin-themes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testing.html
31 lines (30 loc) · 917 Bytes
/
testing.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="css/rdmty.css">
<script src="lib/react.min.js"></script>
<script src="lib/lodash.min.js"></script>
<script src="app/rdmty.js"></script>
<script>
document.addEventListener('onOverlayDataUpdate', function(e) {
var start = new Date().getTime();
var details = e.detail;
React.render(
React.createElement(DamageMeter, {
parseData: e.detail
}),
document.getElementById('container')
);
//console.log('rendered in ' + (+new Date() - start) + 'ms');
});
</script>
</head>
<body style="background-color: #000">
<div id="container">
<h3>Awaiting data.</h3>
</div>
</body>
<script src="testing.js"></script>
</html>