-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
46 lines (45 loc) · 1.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MooShare</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css"
/>
<link
href="https://fonts.googleapis.com/css2?family=Poppins&display=swap"
rel="stylesheet"
/>
<meta property="og:title" content="MooShare" />
<meta
property="og:description"
content="Elevating File Sharing to Simplicity"
/>
<meta name="theme-color" content="#ff00a7" />
<link rel="stylesheet" href="/style.css" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
</head>
<body>
<div class="container">
<center>
<h1>MooShare</h1>
<h2>Elevating File Sharing to Simplicity</h2>
<br />
</center>
<form action="/upload" method="post" enctype="multipart/form-data">
<input type="file" id="upload-button" multiple name="files" />
<label for="upload-button" id="upload-button"
><i class="fa-solid fa-file"></i> Choose File(s)
</label>
</form>
</div>
<script>
document
.querySelector("input#upload-button")
.addEventListener("change", () => {
document.querySelector("form").submit()
})
</script>
</body>
</html>