fixes, fully translated tomato, with english dictionary and Polish translation
[tomato.git] / release / src / router / www / saved.asp
blob81ae78e648edb59eafa37613ff4daca2a683b941
1 <html>
2 <!--
3 Tomato GUI
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.
9 -->
10 <head>
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;
17 function tick()
19 clock.innerHTML = wait;
20 opacity -= step;
21 if (opacity < 0) opacity = 0;
22 spin.style.opacity = opacity.toFixed(4);
23 if (--wait >= 0) setTimeout(tick, 1000);
24 else go();
26 function go()
28 clock.style.visibility = 'hidden';
29 window.location.replace('<% cgi_get("_nextpage"); %>');
31 function setSpin(x)
33 document.getElementById('spin').style.visibility = x ? 'visible' : 'hidden';
34 spun = x;
36 function init()
38 if (wait > 0) {
39 spin = document.getElementById('spin');
40 opacity = 1;
41 step = 1 / wait;
42 clock = document.getElementById('xclock');
43 clock.style.visibility = 'visible';
44 tick();
45 if (!spun) setSpin(0); // http may be down after this page gets sent
48 </script></head>
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%'>
52 <form>
53 <script type='text/javascript'>
54 if (wait <= 0) s = '<b><% translate("Changes Saved"); %>...</b> &nbsp; <input type="button" value="<% translate("Continue"); %>" onclick="go()" style="font:10px sans-serif;vertical-align:top">';
55 else s = '<b><% translate("Please Wait"); %>...</b><span id="xclock" style="font-size:9px;background:#f7f7f7;padding:1px;visibility:hidden">&nbsp;</span> <img src="spin.gif" id="spin" onload="setSpin(1)">';
56 document.write(s);
57 </script>
58 </form>
59 </td></tr>
60 </table>
61 </body></html>