Initial commit
This commit is contained in:
commit
d7619777af
915 changed files with 59386 additions and 0 deletions
23
templates/OpenGame/buildings_research_script.tpl
Normal file
23
templates/OpenGame/buildings_research_script.tpl
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<div id="brp" class="z"></div>
|
||||
<script type="text/javascript">
|
||||
v = new Date();
|
||||
var brp = document.getElementById('brp');
|
||||
function t(){
|
||||
n = new Date();
|
||||
ss = {tech_time};
|
||||
s = ss - Math.round( (n.getTime() - v.getTime()) / 1000.);
|
||||
m = 0;
|
||||
h = 0;
|
||||
if ( s < 0 ) {
|
||||
brp.innerHTML = '{ready}<br><a href=buildings.php?mode=research&cp={tech_home}>{continue}</a>';
|
||||
} else {
|
||||
if ( s > 59 ) { m = Math.floor( s / 60 ); s = s - m * 60; }
|
||||
if ( m > 59 ) { h = Math.floor( m / 60 ); m = m - h * 60; }
|
||||
if ( s < 10 ) { s = "0" + s }
|
||||
if ( m < 10 ) { m = "0" + m }
|
||||
brp.innerHTML = h + ':' + m + ':' + s + '<br><a href=buildings.php?mode=research&cmd=cancel&tech={tech_id}>{cancel}<br>{tech_name}</a>';
|
||||
}
|
||||
window.setTimeout("t();",999);
|
||||
}
|
||||
window.onload=t;
|
||||
</script>
|
||||
Loading…
Reference in a new issue