From 00f701a8c939f2a7f1fef65e7963b78503bc6014 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 5 Apr 2022 21:06:58 +0100 Subject: [PATCH] StuffZ --- clipboard.js | 4 ++++ index.html | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/clipboard.js b/clipboard.js index ad0de6c..662182b 100755 --- a/clipboard.js +++ b/clipboard.js @@ -21,3 +21,7 @@ function resetCopy() { } +//const clipboard = querySelector('.tooltiptext'); +const minecraft = document.getElementById('minecraft-clip'); +minecraft.addEventListener('click', copyToClipboard('minecraft-server')); +minecraft.addEventListener('mouseout', resetCopy()); diff --git a/index.html b/index.html index 6cfb29b..76391a8 100755 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ - + @@ -16,7 +16,7 @@
- +