forked from basisjs/basisjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (41 loc) · 1.23 KB
/
Copy pathindex.html
File metadata and controls
45 lines (41 loc) · 1.23 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
43
44
45
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Basis.js index page</title>
</head>
<body>
<ul id="menu">
<li><a href="demo">Demo</a></li>
<li><a href="docs">Docs</a></li>
<li><a href="test">Test suite</a></li>
<li><a href="tour">Tour</a> (slides)</li>
<hr/>
<li><a href="https://github.com/basisjs/basisjs">Source code</a> (github.com)</li>
<li><a href="http://basisjs.com/">Site</a></li>
</ul>
<script>
var attachDevServerRetry = 50;
window.onload = function attachFileSync(){
var basisjsTools = window.basisjsToolsFileSync;
if (!basisjsTools)
{
if (attachDevServerRetry < 500)
setTimeout(attachFileSync, attachDevServerRetry);
else
console.warn('basisjsToolsFileSync doesn\'t detected');
attachDevServerRetry += 100;
return;
}
if (typeof basisjsTools.getRemoteUrl == 'function')
{
var menu = document.getElementById('menu');
var item = document.createElement('li');
item.innerHTML = '<a href="' + basisjsTools.getRemoteUrl() + '">Remote devtools</a>';
menu.appendChild(document.createElement('hr'));
menu.appendChild(item);
}
};
</script>
</body>
</html>