-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.html
46 lines (43 loc) · 1.24 KB
/
layout.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Dowloader</title>
<link href="./layout/css/bootstrap.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<link href="./layout/css/bootstrap-responsive.css" rel="stylesheet">
<script type="text/javascript">
var param = get_url_vars();
if(param["error"] == "1"){
document.open();
document.writeln("<div class='alert alert-warning' role='alert'><strong>warning</strong>:パスワードが間違っています</div>")
document.close();
}
function get_url_vars()
{
var vars = new Object, params;
var temp_params = window.location.search.substring(1).split('&');
for(var i = 0; i <temp_params.length; i++) {
params = temp_params[i].split('=');
vars[params[0]] = params[1];
}
return vars;
}
</script>
</head>
<body>
<div class="container">
<h1>Download {{.Name}}</h1>
<form action="/{{.Path}}" method="POST">
<div>
<input type="text" name="num">
</div>
<div><input type="submit" value="Send"></div>
</form>
</div>
</body>
</html>