wordpress-theme-openmamba/distribution/autobuilds.it.html

55 lines
2.0 KiB
HTML

<!--#set var="title" value="Build automatici" -->
<!--#set var="description" value="Pagina dei build automatici" -->
<!--#set var="keywords" value="openmamba,autodist,autospec,makedist,ftbfs,sviluppatori,patch" -->
<!--#set var="bodyadd" value="onload=ajax_getvalues(\"$file\")" -->
<!--#include virtual="/header.html" -->
<script type="text/javascript">
<!--
var lastupdate = 0;
var reloadtime = 0;
function ajax_getvalues() {
var url = "/cgi-bin/autodist.cgi?"+window.location.href.replace(/.*\?/,"");
var xmlhttp;
if (window.XMLHttpRequest)
xmlhttp = new XMLHttpRequest();
else if (window.ActiveXObject)
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
else
return;
document.getElementById("noajax_msg").innerHTML = "";
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState != 4)
return;
var xmldoc = xmlhttp.responseXML.documentElement;
document.getElementById("output").innerHTML = xmldoc.getElementsByTagName("output")[0].childNodes[0].nodeValue;
reloadtime = xmldoc.getElementsByTagName("reloadtime")[0].childNodes[0].nodeValue;
lastupdate = (+new Date());
setTimeout("ajax_getvalues()", reloadtime);
}
xmlhttp.open("GET", url, true);
xmlhttp.send(null);
}
//-->
</script>
<table width="100%"><tr><td>
<tr><td valign="middle">
<table align="center"><tr>
<td><img src="/images/community-gr.png" alt="build automatici"></td>
<td class="toptitle">Build automatici</td>
</tr></table>
</td></tr>
<tr><td>
<div id="noajax_msg"><p>Il supporto per AJAX non è abilitato nel tuo browser. L'aggiornamento live non sarà disponibile, premi Ricarica per aggiornare la pagina.</p></div>
<span id="output">Caricamento in corso, attendere...</span>
<script>
$("#output").mousemove(function(event) {
lastupdatetime = (+new Date()) - lastupdate; // milliseconds since last update
// var msg = "called " + lastupdatetime + "ms ago";
if (lastupdatetime > reloadtime) { lastupdate = lastupdatetime; ajax_getvalues(); }
});
</script>
</td></tr>
</table>
<!--#include virtual="/footer.html" -->