yacy_search_server/htroot/Steering.html
low012 000dad034b *) better usage of JS timers (intervals)
*) added messages when status is checked

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6781 6c8d7289-2bf4-0310-a012-ef5d649a1542
2010-03-28 22:17:36 +00:00

74 lines
2.8 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="js/ajax.js"></script>
<title>YaCy '#[clientname]#': Steering</title>
#%env/templates/metas.template%#
</head>
<body style="margin:40px;text-align:center;">
<script type="text/javascript">
<!--
var ro;
function pingPeer() {
ro = createRequestObject();
var url = "yacy/hello.html" + '?' + Math.random();
ro.open("Get",url,true);
ro.onreadystatechange = callback;
ro.send(null);
document.getElementById("status").innerHTML = 'Checking peer status...';
}
function callback() {
if (ro.readyState == 4) {
if(ro.status == 200) {
document.getElementById("status").innerHTML = 'Peer is online again, forwarding to status page...';
window.location.replace('Status.html');
} else {
isDown = true;
document.getElementById("status").innerHTML = 'Peer is not online yet, will check again in a few seconds...';
}
}
}
function setPingInterval() {
window.setInterval('pingPeer()', 5000);
pingPeer();
}
//-->
</script>
<p><img src="env/grafics/kaskelix_exit.png" alt="Kaskelix"/></p>
#(info)#
<b>No action submitted</b><br />
<p>Go back to the <a href="Settings_p.html">Settings</a> page</p>
::
<b>Your system is not protected by a password</b><br />
Please go to the <a href="/Settings_p.html">Settings</a> page and set an administration password.
::
<b>You don't have the correct access right to perform this task.</b><br />
Please log in.
<p>You can now go back to the <a href="Settings_p.html">Settings</a> page if you want to make more changes.</p>
::
<h2>See you soon!</h2>
Application will terminate after working off all scheduled tasks.
::
<h2>Just a moment, please!</h2>
Application will terminate after working off all scheduled tasks.<br />
Then YaCy will restart.<br />
If you can't reach YaCy's interface after 5 minutes restart failed.
<script type="text/javascript">window.setTimeout('setPingInterval()', 60000);</script>
<div id="status"></div>
::
<h2>Just a moment, please!</h2>
<b>Installing release #[release]#</b><br />
YaCy will be restarted after installation.
<script type="text/javascript">window.setTimeout('setPingInterval()', 60000);</script>
<div id="status"></div>
#(/info)#
</p>
</body>
</html>