2008-08-03 15:01:36 +00:00
|
|
|
<%#
|
2015-01-16 22:38:38 +00:00
|
|
|
Copyright 2008 Steven Barth <steven@midlink.org>
|
2015-01-16 22:46:42 +00:00
|
|
|
Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
|
2015-01-16 22:38:38 +00:00
|
|
|
Licensed to the public under the Apache License 2.0.
|
2008-08-03 15:01:36 +00:00
|
|
|
-%>
|
2011-10-24 01:10:34 +00:00
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
2018-08-07 15:37:48 +00:00
|
|
|
<title><%=luci.sys.hostname()%> - <%= title or translate("Rebooting...") %></title>
|
2011-10-24 01:10:34 +00:00
|
|
|
<link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/cascade.css" />
|
|
|
|
<script type="text/javascript" src="<%=resource%>/xhr.js"></script>
|
|
|
|
<script type="text/javascript">//<![CDATA[
|
|
|
|
var interval = window.setInterval(function() {
|
|
|
|
var img = new Image();
|
2018-08-07 15:37:48 +00:00
|
|
|
var target = ('https:' == document.location.protocol ? 'https://' : 'http://') + <%=addr and "'%s'" % addr or "window.location.host"%>;
|
|
|
|
|
2011-10-24 01:10:34 +00:00
|
|
|
img.onload = function() {
|
|
|
|
window.clearInterval(interval);
|
2018-08-13 08:57:21 +00:00
|
|
|
window.location.replace(target);
|
2011-10-24 01:10:34 +00:00
|
|
|
};
|
2018-08-07 15:37:48 +00:00
|
|
|
|
|
|
|
img.src = target + '<%=resource%>/icons/loading.gif?' + Math.random();
|
|
|
|
|
2011-10-24 01:10:34 +00:00
|
|
|
}, 5000);
|
|
|
|
//]]></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
2018-08-07 15:37:48 +00:00
|
|
|
<header>
|
|
|
|
<div class="fill">
|
|
|
|
<div class="container">
|
|
|
|
<p class="brand"><%=luci.sys.hostname() or "?"%></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
 
|
|
|
|
<div class="main">
|
|
|
|
<div id="maincontainer">
|
|
|
|
<div id="maincontent" class="container">
|
|
|
|
<h2 name="content" id="applyreboot-container" ><%:System%> - <%= title or translate("Rebooting...") %></h2>
|
|
|
|
<div class="cbi-section" id="applyreboot-section">
|
|
|
|
<div>
|
|
|
|
<%= msg or translate("Changes applied.") %>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" />
|
|
|
|
<%:Waiting for changes to be applied...%>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-10-24 01:10:34 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
2018-08-07 15:37:48 +00:00
|
|
|
</html>
|