-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (98 loc) · 3.19 KB
/
Copy pathindex.html
File metadata and controls
107 lines (98 loc) · 3.19 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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Valentine's Day</title>
<link rel="icon" href="media\VM1fcpu2bKs1e2Kdbj\love_icon-icons.com_67808.ico" type="image/x-icon"> </head>
<script defer src="https://cloud.umami.is/script.js" data-website-id="352c7074-be3e-407a-b40e-f2dd3838fa3f"></script>
<style>
body {
background-color: #ffc8fd;
font-family: 'Comic Sans MS', cursive;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
.container {
text-align: center;
}
h1 {
color: #ff6b6b;
font-size: 2.5em;
margin-bottom: 20px;
}
input {
padding: 10px;
margin: 5px;
font-size: 1.2em;
border-radius: 10px;
border: none;
}
button {
padding: 10px 20px;
margin-top: 10px;
border: none;
border-radius: 20px;
cursor: pointer;
background-color: #ff6b6b;
color: white;
font-size: 1.2em;
}
#generatedLink {
margin-top: 15px;
font-size: 1.2em;
color: #333;
}
#linkField {
width: 80%;
padding: 10px;
font-size: 1.2em;
text-align: center;
border: 1px solid #ccc;
border-radius: 10px;
margin-top: 10px;
background-color: #f0f0f0;
cursor: not-allowed;
color: #666;
}
</style>
</head>
<body>
<div class="container">
<h1>Enter Your Names</h1>
<input type="text" id="yourName" placeholder="Your Name">
<input type="text" id="baeName" placeholder="Bae's Name">
<br>
<button onclick="generateLink()">Generate</button>
<p id="generatedLink">Share link to your bae:</p>
<input type="text" id="linkField" readonly>
<br>
<button onclick="copyLink()">Copy Link</button>
</div>
<script>
function generateLink() {
const yourName = document.getElementById('yourName').value;
const baeName = document.getElementById('baeName').value;
if (yourName && baeName) {
const link = `https://vt.shizuka.my.id/valentine.html?from=${encodeURIComponent(yourName)}&to=${encodeURIComponent(baeName)}`;
document.getElementById('linkField').value = link;
document.getElementById('generatedLink').style.display = 'block';
} else {
alert('Please enter both names!');
}
}
function copyLink() {
const linkField = document.getElementById('linkField');
navigator.clipboard.writeText(linkField.value).then(() => {
alert('Link copied to clipboard!');
}).catch(err => {
console.error('Failed to copy: ', err);
});
}
</script>
</body>
</html>