-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlink.html
More file actions
45 lines (44 loc) · 1.36 KB
/
link.html
File metadata and controls
45 lines (44 loc) · 1.36 KB
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
<!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"
/>
<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 />
<h4>Your file(s) has been successfully uploaded!</h4>
</center>
<a href="{link}" target="_blank">
<i class="fa-solid fa-up-right-from-square"></i> Visit Link
</a>
<input type="button" id="copy-button" />
<label for="copy-button" id="copy-button"
><i class="fa-solid fa-copy"></i> Copy Link
</label>
</div>
<script>
document
.querySelector("input#copy-button")
.addEventListener("click", () => {
navigator.clipboard.writeText("{link}")
document.querySelector(
"label#copy-button"
).innerHTML = `<i class="fa-solid fa-check"></i> Copied!`
})
</script>
</body>
</html>