Skip to content

Commit 44be30a

Browse files
copy button
1 parent d9377df commit 44be30a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,16 @@
1111
<main class="container">
1212

1313
<section class="profile">
14-
<img src="images/photoofme.jpeg" alt="Profile photo" class="avatar">
14+
<img src="images/photoofme.jpeg" alt="Profile photo" class="avatar">
15+
<button onclick="copyText()">Copy Email</button>
16+
<script>
17+
function copyText() {
1518

19+
20+
navigator.clipboard.writeText
21+
("r0hanmodi11111@gmail.com");
22+
}
23+
</script>
1624
<h1>Rohan Modi</h1>
1725
<p class="subtitleiguess">High School Student • Developer</p>
1826

0 commit comments

Comments
 (0)