-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (26 loc) · 1.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>¡¿¡!?!</title>
</head>
<body style="margin: 0; background-color: black; border: 6.66rem;">
<div
style="margin-top: -100px; display: grid; grid-template-columns: 1fr 1fr; grid-gap: 6.66rem; font-family: 'Roboto', sans-serif; font-size: 850%; text-align: center;">
<h1 style="color: white;"> ¡ <button data-val="¡">¡Copy!</button></h1>
<h1 style="color: white;"> ¿ <button data-val="¿">¿Copy?</button></h1>
</div>
</body>
<script>
const buttons = document.querySelectorAll("button");
buttons.forEach(button => {
button.addEventListener("click", () => {
navigator.clipboard.writeText(button.dataset.val);
});
});
</script>
</html>