forked from Jackysi/advancedtomato-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reboot-default.asp
148 lines (135 loc) · 3.45 KB
/
reboot-default.asp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<!--
Tomato GUI
Copyright (C) 2006-2010 Jonathan Zarate
http://www.polarcloud.com/tomato/
For use with Tomato Firmware only.
No part of this file may be used without permission.
-->
<html lang="en">
<head>
<meta http-equiv='content-type' content='text/html;charset=utf-8'>
<meta name='robots' content='noindex,nofollow'>
<title>[<% ident(); %>] Restoring Defaults...</title>
<style>
body {
font: 13px 'Verdana', sans-serif;
background-color: #fafafa;
color: #585858;
}
.progress {
position: relative;
overflow: hidden;
height: 20px;
margin: 10px 0;
background-color: #f0f0f0;
border-radius: 3px;
-webkit-border-radius: 3px;
box-shadow: inset 0 -1px 0 rgba(0,0,0,0.02);
-webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.02);
}
.progress .bar {
float: left;
width: 0%;
height: 100%;
color: #ffffff;
text-align: center;
background-color: #69baf2;
-webkit-transition: width 0.6s ease;
transition: width 0.6s ease;
box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
-webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
}
.bar .txt {
color: #000;
position: absolute;
width: 100%;
top: 0;
left: 0;
text-align: center;
font-size: 11px;
line-height: 20px;
}
.btn {
font-family: Verdana;
display: inline-block;
text-align: center;
cursor: pointer;
background-image: none;
padding: 5px 16px;
margin: 0;
font-size: 11px;
font-weight: bold !important;
line-height: 1.42857143;
color: #fff !important;
background: #69baf2;
transition: 0.1s ease-out;
border-radius: 4px;
-webkit-border-radius: 4px;
border: 0;
border-bottom: 2px solid #4297d0;
}
.btn:hover {
background: #77c1f6;
}
.btn:active, .btn:focus {
transition: none;
margin-top: 2px;
border-width: 0;
}
</style>
<script type="text/javascript">
var Max = 120 + parseInt('0<% nv("wait_time"); %>');
var n = 0;
function tick()
{
var e = document.getElementById('prog');
var d = document.getElementById('progTXT');
var c = document.getElementById('continue');
e.style.width = (((n++) / Max) * 100) + '%';
d.innerHTML = (Max - n) + 's';
if (n == Max) {
d.innerHTML = '';
e.style.width = '100%';
go();
return;
}
if (n == (Max-15)) c.style.display = 'block';
setTimeout(tick, 1000);
}
function go()
{
window.location = 'http://192.168.1.1/';
}
function init()
{
resmsg = '';
//<% resmsg(); %>
if (resmsg.length) {
e = document.getElementById('msg');
e.innerHTML = resmsg;
e.style.display = '';
}
tick()
}
</script>
</head>
<body>
<div style="width:100%; max-width: 650px; margin: 10% auto; text-align: center;">
<div style="width:90%; margin:5px auto;padding:5px 5%;" id="msg">
<b id="re">Please wait while the defaults are restored... </b>
<div id="progbar" class="progress">
<div class="bar info" id="prog">
<span class="txt" id="progTXT"></span>
</div>
</div>
<div id="continue" style="display: none;">
<button class="btn" type="button" name="go" onclick="go()">Continue</button>
<br /><br />
</div>
The router will reset its address back to 192.168.1.1. <br />You may need to renew your computer's DHCP or reboot your computer before continuing.
</div>
</div>
<script type="text/javascript">init();</script>
</body>
</html>