-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
85 lines (72 loc) · 1.85 KB
/
index.html
File metadata and controls
85 lines (72 loc) · 1.85 KB
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
85
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Image Viwer</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!--<link rel="stylesheet" href="https://unpkg.com/purecss@0.6.2/build/pure-min.css" integrity="sha384-UQiGfs9ICog+LwheBSRCt1o5cbyKIHbwjWscjemyBMT9YCUMZffs6UqUTd0hObXD" crossorigin="anonymous">-->
<style media="screen">
* {
margin: 0;
padding: 0;
font-family: "Helvetica";
/*background-color: #FFFDFD;*/
}
/* medium screens */
@media all and (min-width: 600px) {
}
.container {
display: flex;
flex-flow: row wrap;
justify-content: space-around;
align-content: flex-start;
align-items: center;
}
.image {
flex-basis: auto;
max-width: 400px;
/*background-color: blue;*/
vertical-align: middle;
height: 100%;
align-self: center;
margin: 3px;
}
.image img {
max-width: 400px;
border: 2px solid #E7E5E5;
margin: 0 auto;
}
.image .link a {
color: #b3b3b3;
text-align: center;
}
.dirs, #show, #hide:target {
display: none;
}
#hide:target + #show, #hide:target ~ .dirs {
display: inline;
}
</style>
<!--<link rel="stylesheet" href="/static/main.css">-->
</head>
<body>
<a href="#hide" id="hide">Expand directory list ></a>
<a href="#show" id="show">Hide directory list <</a>
<div class="dirs">
<p>Directories</p>
{{ range .Dirs }}
<a href="{{.}}">{{.}}</a><br>
{{ end }}
</div>
<div class="container">
{{ range .Files }}
<div class="image">
<a href="/image/{{.}}"><img src="/image/{{.}}" alt=""></a>
<p class="link"><a href="/image/{{.}}">{{.}}</a></p>
</div>
{{ end }}
</div>
<script src="/static/main.js"></script>
</body>
</html>