mirror of
https://github.com/zyqunix/tools.git
synced 2025-07-06 14:30:31 +02:00
bio and old redo
This commit is contained in:
parent
e6f5488545
commit
5d1ec96989
9 changed files with 1794 additions and 3 deletions
122
bio/index.js
Normal file
122
bio/index.js
Normal file
|
@ -0,0 +1,122 @@
|
|||
const messages = [
|
||||
"Amateur Programmer",
|
||||
"Donate Crypto!",
|
||||
"lispnb and pluggnb <3 <3",
|
||||
"woody.. my dearest ૮˶ᵔᵕᵔ˶ა",
|
||||
"iluvshed",
|
||||
"#lacethemwithfent",
|
||||
"#lifeiseasy",
|
||||
"#teammhuman"
|
||||
];
|
||||
|
||||
let currentMessageIndex = 0;
|
||||
let currentCharIndex = 0;
|
||||
let isDeleting = false;
|
||||
|
||||
function typeWriter() {
|
||||
const currentMessage = messages[currentMessageIndex];
|
||||
let displayText = '';
|
||||
|
||||
if (isDeleting) {
|
||||
displayText = currentMessage.substring(0, currentCharIndex - 1);
|
||||
currentCharIndex--;
|
||||
} else {
|
||||
displayText = currentMessage.substring(0, currentCharIndex + 1);
|
||||
currentCharIndex++;
|
||||
}
|
||||
|
||||
displayText += "<span id='typewriter-line'>|</span>";
|
||||
document.getElementById('typewriter').innerHTML = displayText;
|
||||
|
||||
if (!isDeleting && currentCharIndex === currentMessage.length + 1) {
|
||||
isDeleting = true;
|
||||
setTimeout(typeWriter, 1000);
|
||||
} else if (isDeleting && currentCharIndex === 0) {
|
||||
isDeleting = false;
|
||||
currentMessageIndex = (currentMessageIndex + 1) % messages.length;
|
||||
setTimeout(typeWriter, 1000);
|
||||
} else {
|
||||
setTimeout(typeWriter, isDeleting ? 40 : 75);
|
||||
}
|
||||
}
|
||||
|
||||
let cursorOpacity = 0;
|
||||
let fadeDirection = 1;
|
||||
|
||||
setInterval(() => {
|
||||
const cursorElement = document.getElementById("typewriter-line");
|
||||
|
||||
if (cursorElement) {
|
||||
cursorElement.style.opacity = cursorOpacity;
|
||||
cursorOpacity += 0.1 * fadeDirection;
|
||||
|
||||
if (cursorOpacity <= 0 || cursorOpacity >= 1) {
|
||||
fadeDirection *= -1;
|
||||
}
|
||||
}
|
||||
}, 50);
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
let titleIndex = 0;
|
||||
let increasingTitle = true;
|
||||
|
||||
function updateTitle() {
|
||||
const titleText = "@zyqunix";
|
||||
|
||||
if (increasingTitle) {
|
||||
document.title = titleText.substring(0, titleIndex + 1);
|
||||
titleIndex++;
|
||||
|
||||
if (titleIndex === titleText.length) {
|
||||
increasingTitle = false;
|
||||
setTimeout(updateTitle, 1500);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
document.title = titleText.substring(0, titleIndex - 1);
|
||||
titleIndex--;
|
||||
|
||||
if (titleIndex === 1) {
|
||||
increasingTitle = true;
|
||||
setTimeout(updateTitle, 500);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
setTimeout(updateTitle, 333);
|
||||
}
|
||||
|
||||
updateTitle();
|
||||
});
|
||||
|
||||
let clickToEnterOverlay = document.getElementById("clickToEnter");
|
||||
clickToEnterOverlay.onclick = () => {
|
||||
clickToEnterOverlay.style.transition = '0.75s';
|
||||
clickToEnterOverlay.style.opacity = '0';
|
||||
clickToEnterOverlay.style.zIndex = '-9999';
|
||||
|
||||
main.style.opacity = '1';
|
||||
main.style.marginTop = "0px";
|
||||
|
||||
videoPlayer.play();
|
||||
playPauseButton.innerHTML = "❚❚";
|
||||
isPlaying = !isPlaying;
|
||||
|
||||
typeWriter();
|
||||
};
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
window.addEventListener("keydown", event => {
|
||||
if (event.ctrlKey && ['s', 'c', 'e', 'u'].includes(event.key.toLowerCase())) {
|
||||
event.preventDefault();
|
||||
window.location.href = 'https://pornhub.com/gay';
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener("contextmenu", event => event.preventDefault());
|
||||
});
|
||||
|
||||
function copyToClipboard(text) {
|
||||
navigator.clipboard.writeText(text);
|
||||
alert("Copied to clipboard!");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue