-
Notifications
You must be signed in to change notification settings - Fork 21
/
data.html
52 lines (48 loc) · 2.15 KB
/
data.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
<html>
<head>
<script>
(function(g,b,d){var c=b.head||b.getElementsByTagName("head"),D="readyState",E="onreadystatechange",F="DOMContentLoaded",G="addEventListener",H=setTimeout;
function f(){
// ***************************************************************
// *********************** $LAB stuff ****************************
// ***************************************************************
$LAB.script("js/jquery-2.1.1.js").wait()
.script("js/autobahn.js").wait()
.script("js/diy_js.js").wait()
.wait(function(){
// ***************************************************************
// *********************** scripts ok ***************************
// ***************************************************************
AUTOBAHN_DEBUG = true;
ab.debug(true);
var o = new diy_tools();
$(function(){
/*
* ****************************************
* get token and connect to wss
* connect is using fro data read from device
* ****************************************
*/
var promise = o.getToken();
promise.success(function (data) {
o.device = "kittensCategory";
o.access_token = data.access_token;
o.wss_connect();
});
});
// ***************************************************************
// *********************** scripts ok ***************************
// ***************************************************************
});
// ***************************************************************
// *********************** $LAB stuff ***************************
// ***************************************************************
}
H(function(){if("item"in c){if(!c[0]){H(arguments.callee,25);return}c=c[0]}var a=b.createElement("script"),e=false;a.onload=a[E]=function(){if((a[D]&&a[D]!=="complete"&&a[D]!=="loaded")||e){return false}a.onload=a[E]=null;e=true;f()};
a.src="js/LAB.js";
c.insertBefore(a,c.firstChild)},0);if(b[D]==null&&b[G]){b[D]="loading";b[G](F,d=function(){b.removeEventListener(F,d,false);b[D]="complete"},false)}})(this,document);
</script>
</head>
<body>
</body?
</html>