-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (75 loc) · 2 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Media Directory</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f0f0f0;
width: 100%;
min-height: 100vh;
background: linear-gradient(180deg , #ffffff , #b0beff70);
position: relative;
}
h1 {
color: #333;
}
ul {
list-style-type: none;
padding: 0;
}
li {
background: transparent;
margin: 5px 0;
padding: 10px;
border: 1px solid #ddd;
}
a {
text-decoration: none;
color: #007bff;
}
a:hover {
text-decoration: underline;
}
.footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 1px;
position: fixed;
bottom: 0;
width: 100%;
font-size: 10px;
display: flex;
}
</style>
</head>
<body>
<h1>Media Directory</h1>
<ul id="file-list"></ul>
<script>
fetch('/files')
.then(response => response.json())
.then(data => {
const fileList = document.getElementById('file-list');
data.files.forEach(file => {
const li = document.createElement('li');
const a = document.createElement('a');
a.href = file.url;
a.textContent = file.name;
li.appendChild(a);
fileList.appendChild(li);
});
});
</script>
<!-- Pied de page -->
<div class="footer">
<p>Stephene WANTCHEKON</p>
<p>[email protected]</p>
</div>
</body>
</html>