We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01162a5 commit d591e4bCopy full SHA for d591e4b
1 file changed
index.html
@@ -14,9 +14,11 @@
14
<img src="photoofme.jpeg" alt="Profile photo" class="avatar">
15
<button class="cta-button" onclick="copyText()">Copy Email</button>
16
<script>
17
- function copyText() {
18
- navigator.clipboard.writeText("r0hanmodi11111@gmail.com");
19
- }
+function copyText() {
+ navigator.clipboard.writeText("r0hanmodi11111@gmail.com")
+ .then(() => alert("Email copied!"))
20
+ .catch(() => alert("Failed to copy."));
21
+}
22
</script>
23
<h1>Rohan Modi</h1>
24
<p class="subtitleiguess">High School Student • Developer</p>
0 commit comments