-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.tmpl
79 lines (68 loc) · 1.68 KB
/
index.tmpl
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><!-- TITLE --></title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
h1 {
color: #333;
margin-top: 0px;
margin-bottom: 15px;
}
ul {
list-style-type: none;
padding-left: 0;
}
li {
margin: 10px 0;
}
a {
text-decoration: none;
color: #007BFF;
}
a:hover {
text-decoration: underline;
}
</style>
<script>
function showImg(filename, notes) {
const image = document.getElementById('img');
image.src = filename;
const img_link = document.getElementById('img_link');
img_link.href = filename;
const captionElement = document.getElementById('caption');
if ( notes ) {
captionElement.textContent = filename + ': ' + notes;
}
else {
captionElement.textContent = filename;
}
}
</script
</head>
<body>
<div style="float: right; width: 50%; text-align: right;">
<figure id="random_img" style="text-align: center;">
<a id="img_link" target="_blank" href="<!-- RANDOM_IMAGE -->"><img id="img" src="<!-- RANDOM_IMAGE -->" style="max-width: 100%;"></a><br>
<figcaption id="caption"><!-- RANDOM_IMAGE_CAPTION --></figcaption>
</figure>
</div>
<div style="float: left; width: 50%;">
<h1><!-- TITLE --> (<!-- COUNT -->) <!-- TOTAL --></h1>
<h2>This index last generated <!-- DATETIME --></h2>
<!-- SUBDIR -->
<ul>
<!-- SUBDIRS -->
</ul>
<ul>
<!-- CONTENT -->
</ul>
</div>
<div style="clear: both;"></div>
</body>
</html>