Merge branch 'VLAN-GUI' into VLAN-MultiSSID
[tomato.git] / release / src / router / www / reboot.asp
blobcd1b2781b55181c88dd0892520058ec9aecae544
1 <html>
2 <head>
3 <meta http-equiv='content-type' content='text/html;charset=utf-8'>
4 <meta name='robots' content='noindex,nofollow'>
5 <title>[<% ident(); %>] Rebooting...</title>
6 <script type='text/javascript'>
7 var n = 50 + parseInt('0<% nv("wait_time"); %>');
8 function tick()
10 var e = document.getElementById('continue');
11 e.value = n--;
12 if (n < 0) {
13 e.value = 'Continue';
14 return;
16 if (n == 19) e.disabled = false;
17 setTimeout(tick, 1000);
19 function go()
21 window.location.replace('/');
23 function init()
25 resmsg = '';
26 //<% resmsg(); %>
27 if (resmsg.length) {
28 e = document.getElementById('msg');
29 e.innerHTML = resmsg;
30 e.style.display = '';
32 tick()
34 </script></head>
35 <body style='background:#fff' onload='init()'><table style='width:100%;height:100%'>
36 <tr><td style='text-align:center;vertical-align:middle;font:12px sans-serif'><form>
37 <div style='width:600px;border-bottom:1px solid #aaa;margin:5px auto;padding:5px 0;font-size:14px;display:none;font-weight:bold' id='msg'></div>
38 Please wait while the router reboots... &nbsp;
39 <input type='button' value='' style='font:12px sans-serif;width:80px;height:24px' id='continue' onclick='go()' disabled>
40 </form></td></tr>
41 </table></body></html>