|
|
@ -8,8 +8,10 @@ |
|
|
|
<script type="text/javascript" src="javascript/I2PControl.js"></script> |
|
|
|
<script type="text/javascript" src="javascript/I2PControl.js"></script> |
|
|
|
<script type="text/javascript"> |
|
|
|
<script type="text/javascript"> |
|
|
|
function updateRouterInfo(result, session) { |
|
|
|
function updateRouterInfo(result, session) { |
|
|
|
if(session.error) |
|
|
|
if(session.error) { |
|
|
|
alert("Error: " + result["error"]); |
|
|
|
alert("Error: " + result["error"]); |
|
|
|
|
|
|
|
return; // TODO: try to recover |
|
|
|
|
|
|
|
} |
|
|
|
I2PControl.updateDocument({ |
|
|
|
I2PControl.updateDocument({ |
|
|
|
"version" : result["i2p.router.version"], |
|
|
|
"version" : result["i2p.router.version"], |
|
|
|
"status" : I2PControl.statusToString(result["i2p.router.net.status"]), |
|
|
|
"status" : I2PControl.statusToString(result["i2p.router.net.status"]), |
|
|
@ -21,10 +23,10 @@ function updateRouterInfo(result, session) { |
|
|
|
"bw-out" : result["i2p.router.net.bw.outbound.1s"] |
|
|
|
"bw-out" : result["i2p.router.net.bw.outbound.1s"] |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.setTimeout(function() { requestRouterInfo(session); }, 5000); |
|
|
|
} |
|
|
|
} |
|
|
|
window.onload = function() { |
|
|
|
|
|
|
|
var session = new I2PControl.Session("itoopie"); |
|
|
|
function requestRouterInfo(session) { |
|
|
|
session.start(function() { |
|
|
|
|
|
|
|
session.request("RouterInfo", { |
|
|
|
session.request("RouterInfo", { |
|
|
|
"i2p.router.version" : "", |
|
|
|
"i2p.router.version" : "", |
|
|
|
"i2p.router.net.status" : "", |
|
|
|
"i2p.router.net.status" : "", |
|
|
@ -35,8 +37,13 @@ window.onload = function() { |
|
|
|
"i2p.router.net.bw.inbound.1s" : "", |
|
|
|
"i2p.router.net.bw.inbound.1s" : "", |
|
|
|
"i2p.router.net.bw.outbound.1s" : "" |
|
|
|
"i2p.router.net.bw.outbound.1s" : "" |
|
|
|
}, updateRouterInfo); |
|
|
|
}, updateRouterInfo); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.onload = function() { |
|
|
|
|
|
|
|
var session = new I2PControl.Session("itoopie"); |
|
|
|
|
|
|
|
session.start(function() { requestRouterInfo(session); }); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
</script> |
|
|
|
</head> |
|
|
|
</head> |
|
|
|
|
|
|
|
|
|
|
@ -70,7 +77,7 @@ window.onload = function() { |
|
|
|
<h2 class="content-subhead">Not yet implemented :)</h2> |
|
|
|
<h2 class="content-subhead">Not yet implemented :)</h2> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<script type="text/html" id="help"> |
|
|
|
<div id="helpPage" style="display:hidden"> |
|
|
|
<div class="header"> |
|
|
|
<div class="header"> |
|
|
|
<h1>I2P help</h1> |
|
|
|
<h1>I2P help</h1> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -82,29 +89,28 @@ window.onload = function() { |
|
|
|
</h2> |
|
|
|
</h2> |
|
|
|
<h2 class="content-subhead"><a href="https://geti2p.net/en/">I2P Project</a> </h2> |
|
|
|
<h2 class="content-subhead"><a href="https://geti2p.net/en/">I2P Project</a> </h2> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</script> |
|
|
|
</div> |
|
|
|
<div id="layout"> |
|
|
|
|
|
|
|
<a href="#menu" id="menuLink" class="menu-link"> |
|
|
|
|
|
|
|
<span></span> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="menu"> |
|
|
|
|
|
|
|
<div class="pure-menu"> |
|
|
|
|
|
|
|
<span class="pure-menu-heading">i2pd</span> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ul class="pure-menu-list"> |
|
|
|
<div id="menu"> |
|
|
|
<li class="pure-menu-item"><a href="#/" class="pure-menu-link">Home</a></li> |
|
|
|
<span class="menu-heading">i2pd</span> |
|
|
|
<li class="pure-menu-item"><a href="#/config" class="pure-menu-link">Configure</a></li> |
|
|
|
<ul class="menu-list"> |
|
|
|
<li class="pure-menu-item"><a href="#/help" class="pure-menu-link">Help</a></li> |
|
|
|
<li class="menu-item"> |
|
|
|
|
|
|
|
<a href="#/" class="menu-link">Home</a> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
<li class="menu-item"> |
|
|
|
|
|
|
|
<a href="#/config" class="menu-link">Configure</a> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
<li class="menu-item"> |
|
|
|
|
|
|
|
<a href="#/help" class="menu-link">Help</a> |
|
|
|
|
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="main"> |
|
|
|
<div id="main"> |
|
|
|
<noscript> |
|
|
|
<noscript> |
|
|
|
<div class="header"><h1>Please, enable JavaScript!</h1></div> |
|
|
|
<div class="header"><h1>Please enable JavaScript!</h1></div> |
|
|
|
</noscript> |
|
|
|
</noscript> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</body> |
|
|
|
</body> |
|
|
|
</html> |
|
|
|
</html> |
|
|
|