2015-05-08 21:47:01 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title>ZeroTier One</title>
|
|
|
|
<link rel="stylesheet" href="zerotier.css">
|
|
|
|
<script src="simpleajax.min.js"></script>
|
|
|
|
<!-- <script src="https://fb.me/react-0.13.2.js"></script> -->
|
|
|
|
<script src="react.min.js"></script>
|
|
|
|
<script src="ztui.min.js"></script>
|
|
|
|
</head>
|
|
|
|
<body><div style="width: 100%; height: 100%;" id="main"></div></body>
|
|
|
|
<script src="main.js"></script>
|
|
|
|
<script>
|
2015-05-18 22:53:49 +00:00
|
|
|
/* Windows hacks */
|
2015-05-08 21:47:01 +00:00
|
|
|
function isIE() {
|
|
|
|
var myNav = navigator.userAgent.toLowerCase();
|
|
|
|
return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false;
|
|
|
|
}
|
|
|
|
var ieVersion = isIE();
|
|
|
|
function resizeMiddleScrollClasses() {
|
|
|
|
var elems = document.getElementsByTagName('*'), i;
|
|
|
|
for (i in elems) {
|
|
|
|
if ((' ' + elems[i].className + ' ').indexOf(' middleScroll ') > -1) {
|
|
|
|
elems[i].style.height = (document.body.clientHeight - (elems[i].parentNode.parentNode.previousElementSibling.clientHeight + elems[i].parentNode.parentNode.nextElementSibling.clientHeight)) + "px";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (ieVersion !== false) {
|
|
|
|
if (ieVersion < 7) {
|
|
|
|
alert("Upgrade Internet Explorer on your system to use this interface. (detected version: " + ieVersion + ")");
|
|
|
|
} else {
|
|
|
|
resizeMiddleScrollClasses();
|
|
|
|
window.onresize = resizeMiddleScrollClasses;
|
|
|
|
}
|
|
|
|
}
|
2015-05-18 22:53:49 +00:00
|
|
|
|
|
|
|
/* MacGap hacks */
|
2015-05-19 03:30:54 +00:00
|
|
|
if (typeof macgap !== 'undefined') {
|
2015-05-18 22:53:49 +00:00
|
|
|
if (macgap.menu) {
|
|
|
|
var tmp = macgap.menu.getItem("Help");
|
|
|
|
if (tmp)
|
|
|
|
tmp.remove();
|
|
|
|
tmp = macgap.menu.getItem("Format");
|
|
|
|
if (tmp)
|
|
|
|
tmp.remove();
|
|
|
|
tmp = macgap.menu.getItem("View");
|
|
|
|
if (tmp)
|
|
|
|
tmp.remove();
|
|
|
|
tmp = macgap.menu.getItem("File");
|
|
|
|
if (tmp)
|
|
|
|
tmp.remove();
|
|
|
|
}
|
|
|
|
}
|
2015-05-08 21:47:01 +00:00
|
|
|
</script>
|
|
|
|
</html>
|