mirror of https://github.com/lumapu/ahoy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.9 KiB
51 lines
1.9 KiB
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Update</title>
|
|
<link rel="stylesheet" type="text/css" href="style.css"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<script type="text/javascript" src="api.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="topnav">
|
|
<a href="/" class="active">AhoyDTU</a>
|
|
<a href="javascript:void(0);" class="icon" onclick="topnav()">
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
</a>
|
|
<div id="topnav" class="hide"></div>
|
|
</div>
|
|
<div id="content" class="content">
|
|
<div>
|
|
Make sure that you have noted all your settings before starting an update. New versions may have changed their memory layout which can break your existing settings.<br/>
|
|
<br/>
|
|
<a href="/get_setup" target="_blank">Download your settings (JSON file)</a>
|
|
</div>
|
|
<br/><br/>
|
|
<form method="POST" action="/update" enctype="multipart/form-data" accept-charset="utf-8">
|
|
<input type="file" name="update"><input type="submit" value="Update">
|
|
</form>
|
|
</div>
|
|
<div id="footer">
|
|
<p class="left">© 2022</p>
|
|
<p class="right" id="version"></p>
|
|
</div>
|
|
<script type="text/javascript">
|
|
function parseSys(obj) {
|
|
document.getElementById("version").appendChild(
|
|
link("https://github.com/lumapu/ahoy/commits/" + obj["build"], "Git SHA: " + obj["build"] + " :: " + obj["version"], "_blank")
|
|
);
|
|
}
|
|
|
|
function parse(obj) {
|
|
if(null != obj) {
|
|
parseMenu(obj["menu"]);
|
|
parseSys(obj["system"]);
|
|
}
|
|
}
|
|
|
|
getAjax("/api/index", parse);
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|