fix index.html

This commit is contained in:
coast 2025-10-02 02:49:07 +02:00
parent f32ce5e4b1
commit 31a8a77f60

View file

@ -1,57 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>File Transfer</title>
<style>
body {
font-family: Arial, sans-serif;
}
#file-tree {
margin-top: 20px;
}
ul {
list-style-type: none;
}
.preview-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.preview-content {
background: white;
padding: 20px;
border-radius: 5px;
max-width: 90%;
max-height: 90%;
overflow: auto;
}
img {
max-width: 100%;
max-height: 400px;
}
</style>
</head>
<body>
<h1>Upload Files</h1>
<form id="upload-form" action="/upload" method="post" enctype="multipart/form-data">
<input type="file" name="files" multiple required>
<button type="submit">Upload</button>
</form>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>File Transfer</title>
<style>
body {
font-family: Arial, sans-serif;
}
#file-tree {
margin-top: 20px;
}
ul {
list-style-type: none;
}
.preview-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.preview-content {
background: white;
padding: 20px;
border-radius: 5px;
max-width: 90%;
max-height: 90%;
overflow: auto;
}
img {
max-width: 100%;
max-height: 400px;
}
</style>
</head>
<body>
<h1>Upload Files</h1>
<form id="upload-form" action="/upload" method="post" enctype="multipart/form-data">
<input type="file" name="files" multiple required>
<button type="submit">Upload</button>
</form>
<h2>Directory Structure</h2>
<div id="file-tree">
<ul id="file-list"></ul>
</div>
<h2>Directory Structure</h2>
<div id="file-tree">
<ul id="file-list"></ul>
</div>
<script src="script.js"></script>
</body>
</html>
<script src="script.js"></script>
</body>
</html>