4 Copyright (C) 2006-2010 Jonathan Zarate
5 http://www.polarcloud.com/tomato/
7 For use with Tomato Firmware only.
8 No part of this file may be used without permission.
11 <meta http-equiv='content-type' content='text/html;charset=utf-
8'
>
12 <meta name='robots' content='noindex,nofollow'
>
13 <title>[<%
ident(); %>] Tomato
</title>
14 <script language='javascript'
>
15 wait
= parseInt('<% cgi_get("_nextwait"); %>', 10);
16 if (isNaN(wait
)) wait
= 5;
19 clock
.innerHTML
= wait
;
21 if (opacity
< 0) opacity
= 0;
22 spin
.style
.opacity
= opacity
.toFixed(4);
23 if (--wait
>= 0) setTimeout(tick
, 1000);
28 clock
.style
.visibility
= 'hidden';
29 window
.location
.replace('<% cgi_get("_nextpage"); %>');
33 document
.getElementById('spin').style
.visibility
= x
? 'visible' : 'hidden';
39 spin
= document
.getElementById('spin');
42 clock
= document
.getElementById('xclock');
43 clock
.style
.visibility
= 'visible';
45 if (!spun
) setSpin(0); // http may be down after this page gets sent
49 <body onload='init()' style='background-color:#fff' onclick='go()'
>
50 <table style='width:
100%;height:
100%'
>
51 <tr><td style='text-align:center;vertical-align:middle;font:
16px sans-serif;width:
100%;height:
100%'
>
53 <script type='text/javascript'
>
54 if (wait
<= 0) s
= '<b>Changes Saved...</b> <input type="button" value="Continue" onclick="go()" style="font:10px sans-serif;vertical-align:top">';
55 else s
= '<b>Please Wait...</b><span id="xclock" style="font-size:9px;background:#f7f7f7;padding:1px;visibility:hidden"> </span> <img src="spin.gif" id="spin" onload="setSpin(1)">';