Update 1.js
This commit is contained in:
+25
-23
@@ -7,40 +7,42 @@ container.addEventListener("click", () => {
|
|||||||
|
|
||||||
if (clickCount === 4) {
|
if (clickCount === 4) {
|
||||||
navigator.clipboard.writeText("asdasd").then(() => {
|
navigator.clipboard.writeText("asdasd").then(() => {
|
||||||
showGlitchMessage();
|
showNotification();
|
||||||
});
|
});
|
||||||
|
|
||||||
clickCount = 0;
|
clickCount = 0;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function showGlitchMessage() {
|
function showNotification() {
|
||||||
const message = document.createElement("div");
|
const notification = document.createElement("div");
|
||||||
message.innerText = "!!! ERROR: System Corrupted !!!";
|
notification.innerText = "🤫 Bir şeyler kopyalandı ama sessiz ol...";
|
||||||
message.style.position = "fixed";
|
notification.style.position = "fixed";
|
||||||
message.style.top = "50%";
|
notification.style.bottom = "-60px"; // İlk başta aşağıda
|
||||||
message.style.left = "50%";
|
notification.style.left = "50%";
|
||||||
message.style.transform = "translate(-50%, -50%)";
|
notification.style.transform = "translateX(-50%)";
|
||||||
message.style.background = "black";
|
notification.style.background = "#333";
|
||||||
message.style.color = "red";
|
notification.style.color = "#fff";
|
||||||
message.style.fontSize = "24px";
|
notification.style.padding = "12px 24px";
|
||||||
message.style.padding = "20px";
|
notification.style.borderRadius = "20px"; // Kenarları oval
|
||||||
message.style.border = "2px solid red";
|
notification.style.boxShadow = "0 4px 6px rgba(0, 0, 0, 0.1)";
|
||||||
message.style.fontFamily = "monospace";
|
notification.style.transition = "bottom 0.5s ease-in-out";
|
||||||
message.style.zIndex = "9999";
|
notification.style.zIndex = "9999";
|
||||||
|
|
||||||
document.body.appendChild(message);
|
document.body.appendChild(notification);
|
||||||
|
|
||||||
// Titreme efekti
|
// Bildirimi yukarı kaydır
|
||||||
let interval = setInterval(() => {
|
setTimeout(() => {
|
||||||
message.style.transform = `translate(-50%, -50%) rotate(${Math.random() * 4 - 2}deg)`;
|
notification.style.bottom = "20px";
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
||||||
// 3 saniye sonra mesajı sil
|
// 2 saniye sonra aşağı kaydır ve sil
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
clearInterval(interval);
|
notification.style.bottom = "-60px";
|
||||||
message.remove();
|
setTimeout(() => {
|
||||||
}, 3000);
|
notification.remove();
|
||||||
|
}, 500);
|
||||||
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user