mirror of
https://github.com/zyqunix/tools.git
synced 2025-07-06 14:30:31 +02:00
added pinkpantheress, hover tooltips, css mobile change (and fixed devtool)
This commit is contained in:
parent
a953037413
commit
e9b6ddf1ae
4 changed files with 203 additions and 63 deletions
28
bio/index.js
28
bio/index.js
|
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue