Skip to content

Commit

Permalink
added copy "██████"
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRedacted committed Aug 27, 2024
1 parent 79b142a commit ca8edbc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Socials.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<body>
<div id="header">
<div id="name">
<p style="font-size:18pt;"><b>Daniel</b> <b class="redacted"> Redacted</b></p>
<p style="font-size:18pt;"><b>Daniel</b> <b class="redacted" onclick="copyToClipboard('██████')"> Redacted</b></p>
<p style="font-size:12pt;">@DanielRedacted</p>
</div>
<span style="flex:1;"></span>
Expand Down Expand Up @@ -420,6 +420,16 @@ <h3>Website</h3>
element.classList.add('selected');
}


function copyToClipboard(text) {
// Use the Clipboard API to copy the text
navigator.clipboard.writeText(text).then(function() {
alert("Text copied to clipboard!");
}).catch(function(error) {
alert("Failed to copy text: " + error);
});
}

</script>
</body>
</html>

0 comments on commit ca8edbc

Please sign in to comment.