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 @@