Revision f9cc072d
Added by Stephen Beaver over 9 years ago
src/usr/local/www/reboot.php | ||
---|---|---|
85 | 85 |
} |
86 | 86 |
|
87 | 87 |
?> |
88 |
<div id="clock" style="text-align: center;"></div> |
|
88 |
|
|
89 | 89 |
<div id="countdown" style="text-align: center;"></div> |
90 | 90 |
|
91 | 91 |
<script> |
92 | 92 |
//<![CDATA[ |
93 | 93 |
events.push(function(){ |
94 | 94 |
|
95 |
$('#clock').pietimer({ |
|
96 |
seconds: 90, |
|
97 |
color: '#404040', |
|
98 |
height: 75, |
|
99 |
width: 75 |
|
100 |
}, |
|
101 |
function(){ |
|
102 |
window.location="/index.php"; |
|
103 |
}); |
|
104 |
|
|
105 | 95 |
function startCountdown(time) { |
106 | 96 |
setInterval(function(){ |
107 | 97 |
$('#countdown').html('<h4>Rebooting<br />Page will reload in ' +time+ ' seconds.</h4>'); |
... | ... | |
110 | 100 |
} |
111 | 101 |
|
112 | 102 |
// startCountdown(60); |
113 |
$('#clock').pietimer('start'); |
|
114 | 103 |
startCountdown(90); |
115 | 104 |
}); |
116 | 105 |
//]]> |
Also available in: Unified diff
Nix hte spinning clock