Skip to content

Commit 3aca90a

Browse files
Update index.html
1 parent 536b3fb commit 3aca90a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ <h4>Some useful posts:</h4>
5555
</div>
5656
</body>
5757
<script>
58-
document.addEventListener('copy', function(event) {
59-
event.clipboardData.setData('text/plain', 'DO NOT TRY TO COPY!!!');
60-
event.preventDefault();
58+
document.addEventListener('copy', function(e) {
59+
e.preventDefault();
60+
alert('Copying is disabled on this website.');
61+
e.clipboardData.setData('text/plain', 'DO NOT TRY TO COPY!!!');
6162
});
6263
</script>
6364
<script>

0 commit comments

Comments
 (0)