Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nourredine1981 authored Dec 23, 2024
1 parent 6362ae7 commit d9ae23a
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions files.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Afficher les fichiers d'un dossier</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
h1 {
color: #2c3e50;
}
ul {
list-style-type: none;
padding: 0;
}
li {
padding: 5px 0;
}
a {
text-decoration: none;
color: #1a73e8;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<h1>Fichiers dans le dossier</h1>
<ul id="fileList"></ul>

<script>
fetch('/nordine/files.json')
.then(response => response.json())
.then(data => {
const fileList = document.getElementById('fileList');
data.files.forEach(file => {
const li = document.createElement('li');
const a = document.createElement('a');
a.href = '/nordine/' + file;
a.textContent = file;
li.appendChild(a);
fileList.appendChild(li);
});
})
.catch(error => console.error('Erreur:', error));
</script>
</body>
</html>

0 comments on commit d9ae23a

Please sign in to comment.