summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-freifunk/htdocs/luci-static/flashing.html
blob: 43e51236d7bd00d60265ca7508b234b36367ab9a (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>LuCI - System Upgrade</title>

	<style type="text/css">
		body {
			background-color:	#CCCCCC;
			font-family:		sans-serif;
			font-size:		90%;
			padding-left:		50%;
			padding-top:		100px;
		}

		h2 {
			font-size:		110%;
			margin:			5px 5px 0.5em 5px;
			border-bottom:		1px dotted #0066CC;
			color:			#0066CC;
		}

		p {
			font-size:		95%;
			margin:			15px 15px 0.5em 15px;
		}

		div {
			background-color:	#F7F7F7;
			border:			1px dotted #000000;
			width:			600px;
			height:			150px;
			margin-left:		-300px;
		}

		em {
			color:			#555555;
		}
	</style>

	<script type="text/javascript"><!--
		var time_remaining = 60 * 25;
		var interval = window.setInterval(function() {
			if( time_remaining <= 0 )
			{
				window.clearInterval(interval);
				location.href = 'http://' + location.hostname + '/';
			}
			else
			{
				var minutes = Math.floor(time_remaining / 60);
				var seconds = time_remaining % 60;
				var label = document.getElementById('time_remaining');

				if( label )
				{
					label.innerHTML =
						( minutes > 0 ? minutes + 'm ' : '' ) +
						seconds + 's';
				}
			}

			time_remaining = time_remaining - 1;
		}, 1000);
	--></script>
</head>

<body class="lang_en">
	<div>
		<h2>Performing Upgrade</h2>

		<p>
			The System is flashing now. The procedure can take up to 25 minutes,
			please be patient and wait until this page reloads itself.

			<br /><img src="resources/flashing.gif" style="vertical-align:middle; margin:10px" />

			<em>Remaining time (estimated): <span id="time_remaining">unknown</span></em>
		</p>
	</div>
</body>

</html>