-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tmpl.html
44 lines (44 loc) · 1.06 KB
/
index.tmpl.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1" name="viewport">
<meta content="#101010" name="theme-color">
<link href="/style.css" rel="stylesheet" type="text/css">
<title>instadl</title>
</head>
<body>
<h1>instadl ~</h1>
<p>input post urls or post IDs in the box below and hit submit.</p>
<form action="/getpost" method="post">
<textarea name="postlink"></textarea><br>
<input type="submit" value="submit">
</form>
{{ if .Results }}
<hr>
<p>ids: <code>{{.Ids}}</code></p>
<form action="/getzip">
<input type="hidden" name="ids" value="{{.Ids}}">
<input type="submit" value="download all">
</form>
<div class="results">
{{ range $r := .Results }}
{{ range $r.Media }}
<a href="{{.ContentUrl}}">
<div class="result">
<div class="infobox">
{{$r.Author}}<br>{{ $r.Description }}
</div>
{{ if eq .Type "video" }}
<img src="{{ .Thumb }}">
{{else}}
<img src="{{ .ContentUrl }}">
{{end}}
</div>
</a>
{{end}}
{{ end }}
</div>
{{ end }}
</body>
</html>