added pinkpantheress, hover tooltips, css mobile change (and fixed devtool)

This commit is contained in:
zyqunix 2024-12-19 22:34:16 +01:00
parent a953037413
commit e9b6ddf1ae
4 changed files with 203 additions and 63 deletions

View file

@ -1,12 +1,11 @@
const messages = [
"Amateur Programmer",
"Donate Crypto!",
"PinkPantheress 💘💘💖🥰",
"lispnb and pluggnb 💖💖",
"woody.. my dearest 🥰💓",
"Donate Crypto!",
"iluvshed",
"#lacethemwithfent",
"#lifeiseasy",
"#teammhuman"
];
let currentMessageIndex = 0;
@ -118,5 +117,26 @@ document.addEventListener("DOMContentLoaded", () => {
function copyToClipboard(text) {
navigator.clipboard.writeText(text);
alert("Copied to clipboard!");
}
document.addEventListener("DOMContentLoaded", () => {
const tooltips = document.querySelectorAll('[class*="tooltip"]');
tooltips.forEach(tooltip => {
tooltip.addEventListener('mouseenter', () => {
tooltip.classList.add('active');
});
tooltip.addEventListener('mouseleave', () => {
tooltip.classList.remove('active');
});
tooltip.addEventListener('click', () => {
const originalTooltip = tooltip.getAttribute('data-tooltip');
tooltip.setAttribute('data-tooltip', 'Copied to Clipboard!');
setTimeout(() => {
tooltip.setAttribute('data-tooltip', originalTooltip);
}, 1000);
});
});
});