Dateien nach "/" hochladen
This commit is contained in:
7
config.js
Normal file
7
config.js
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
// might not work because the deobfuscation process could might have altered variable names
|
||||||
|
const config = {
|
||||||
|
title: "Minecraft Server | Maintenance",
|
||||||
|
discord: "https://discord.gg/yourserver",
|
||||||
|
vote: "https://minecraft-server-vote-link.com",
|
||||||
|
store: "https://yourstore.com",
|
||||||
|
};
|
||||||
128
function.js
Normal file
128
function.js
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
function initializeLinks() {
|
||||||
|
if (typeof config === "undefined") {
|
||||||
|
console.error("Config not loaded");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.title) {
|
||||||
|
document.title = config.title;
|
||||||
|
}
|
||||||
|
|
||||||
|
const buttons = {
|
||||||
|
discord: document.getElementById("discordBtn"),
|
||||||
|
vote: document.getElementById("voteBtn"),
|
||||||
|
store: document.getElementById("storeBtn"),
|
||||||
|
};
|
||||||
|
|
||||||
|
Object.keys(buttons).forEach((key) => {
|
||||||
|
if (buttons[key] && config[key]) {
|
||||||
|
buttons[key].href = config[key];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
try {
|
||||||
|
const footerId = "kode-footer";
|
||||||
|
const footerElement = document.getElementById(footerId);
|
||||||
|
|
||||||
|
if (footerElement) {
|
||||||
|
const textMadeBy = "Made by ";
|
||||||
|
const textKode = "KODE";
|
||||||
|
|
||||||
|
const discordUrl = "https://discord.gg/wdnkNS62mJ";
|
||||||
|
|
||||||
|
const span = document.createElement("span");
|
||||||
|
|
||||||
|
span.style.cssText =
|
||||||
|
"color:#9ca3af;font-size:0.9em;text-align:center;cursor:pointer;display:inline;";
|
||||||
|
|
||||||
|
span.innerHTML = textMadeBy + "<strong>" + textKode + "</strong>";
|
||||||
|
|
||||||
|
span.addEventListener("click", () => {
|
||||||
|
window.open(discordUrl, "_blank");
|
||||||
|
});
|
||||||
|
|
||||||
|
footerElement.appendChild(span);
|
||||||
|
}
|
||||||
|
} catch (e) {}
|
||||||
|
|
||||||
|
try {
|
||||||
|
const madeByText = "Made by";
|
||||||
|
const kodeText = "KODE";
|
||||||
|
const discordUrlWidget = "https://discord.gg/wdnkNS62mJ";
|
||||||
|
|
||||||
|
const widget = document.createElement("div");
|
||||||
|
|
||||||
|
widget.style.cssText =
|
||||||
|
"position:fixed;bottom:20px;right:20px;background:rgba(255,255,255,0.75);backdrop-filter:blur(8px);color:#666;padding:10px 20px;border-radius:8px;font-size:0.75em;cursor:pointer;z-index:9999;box-shadow:0 1px 8px rgba(0,0,0,0.05);border:1px solid rgba(255,255,255,0.3);transition:all 0.3s ease;max-width:240px;user-select:none;opacity:0.8;";
|
||||||
|
|
||||||
|
let isOpen = false;
|
||||||
|
|
||||||
|
const badgeHtml =
|
||||||
|
`<div style="display:flex;align-items:center;gap:8px">` +
|
||||||
|
madeByText +
|
||||||
|
` <span style="font-family:monospace;font-size:12px;color:#888;font-weight:bold;vertical-align:top;line-height:1;"></></span> <strong style="color:#555;">` +
|
||||||
|
kodeText +
|
||||||
|
`</strong></div>`;
|
||||||
|
|
||||||
|
const expandedContent = `
|
||||||
|
<div style="margin-top:10px;padding-top:10px;border-top:1px solid rgba(0,0,0,0.1);">
|
||||||
|
<p>Need a custom website or bot?</p>
|
||||||
|
<div style="color:#4f46e5;font-weight:bold;margin-top:4px;">Click to join Discord</div>
|
||||||
|
<div class="close-btn" style="position:absolute;top:5px;right:10px;font-size:16px;">×</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
|
||||||
|
widget.className = "kode-widget";
|
||||||
|
widget.innerHTML = badgeHtml;
|
||||||
|
|
||||||
|
widget.addEventListener("click", function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
|
||||||
|
if (
|
||||||
|
e.target.classList.contains("close-btn") ||
|
||||||
|
e.target.innerHTML === "×"
|
||||||
|
) {
|
||||||
|
if (isOpen) {
|
||||||
|
widget.innerHTML = badgeHtml;
|
||||||
|
widget.style.width = "auto";
|
||||||
|
isOpen = false;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isOpen) {
|
||||||
|
widget.innerHTML = badgeHtml + expandedContent;
|
||||||
|
widget.style.width = "280px";
|
||||||
|
isOpen = true;
|
||||||
|
} else {
|
||||||
|
window.open(discordUrlWidget, "_blank");
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
widget.addEventListener("mouseenter", function () {
|
||||||
|
widget.style.opacity = "1";
|
||||||
|
widget.style.boxShadow = "0 4px 12px rgba(0,0,0,0.1)";
|
||||||
|
widget.style.transform = "translateY(-2px)";
|
||||||
|
});
|
||||||
|
|
||||||
|
widget.addEventListener("mouseleave", function () {
|
||||||
|
widget.style.opacity = "0.8";
|
||||||
|
widget.style.transform = "translateY(0)";
|
||||||
|
widget.style.boxShadow = "0 1px 8px rgba(0,0,0,0.05)";
|
||||||
|
});
|
||||||
|
|
||||||
|
document.addEventListener("click", function (e) {
|
||||||
|
if (isOpen && !widget.contains(e.target)) {
|
||||||
|
widget.innerHTML = badgeHtml;
|
||||||
|
widget.style.width = "auto";
|
||||||
|
isOpen = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
document.body.appendChild(widget);
|
||||||
|
} catch (err) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
document.addEventListener("DOMContentLoaded", initializeLinks);
|
||||||
192
index.html
Normal file
192
index.html
Normal file
@@ -0,0 +1,192 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>Minecraft Server | Maintenance</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css"
|
||||||
|
/>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
background: #212121;
|
||||||
|
background-size: 400% 400%;
|
||||||
|
animation: gradientShift 8s ease infinite;
|
||||||
|
font-family: "Segoe UI", sans-serif;
|
||||||
|
color: #f5f5f5;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Container */
|
||||||
|
.container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 60px;
|
||||||
|
max-width: 1000px;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Main Icon */
|
||||||
|
.icon {
|
||||||
|
width: 160px;
|
||||||
|
height: auto;
|
||||||
|
filter: drop-shadow(0 0 15px rgba(255, 102, 0, 0.6));
|
||||||
|
transition:
|
||||||
|
transform 0.9s cubic-bezier(0.6, 0, 0.4, 1.4),
|
||||||
|
filter 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon:hover {
|
||||||
|
transform: rotate(360deg) scale(1.05);
|
||||||
|
filter: drop-shadow(0 0 25px rgba(255, 102, 0, 0.9));
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Ensure spin doesn’t reset */
|
||||||
|
.icon:active {
|
||||||
|
transform: rotate(720deg) scale(1.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Text + Buttons */
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
margin: 0 0 12px 0;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
background: linear-gradient(135deg, #ffffff, #ff6600);
|
||||||
|
background-clip: text;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
margin: 0 0 28px 0;
|
||||||
|
color: #cfcfcf;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Buttons with improved styling */
|
||||||
|
.buttons {
|
||||||
|
display: flex;
|
||||||
|
gap: 20px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
padding: 14px 28px;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 500;
|
||||||
|
border-radius: 12px;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
background: rgba(255, 255, 255, 0.03);
|
||||||
|
color: #f5f5f5;
|
||||||
|
border: 2px solid rgba(255, 255, 255, 0.1);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: -100%;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(
|
||||||
|
90deg,
|
||||||
|
transparent,
|
||||||
|
rgba(255, 102, 0, 0.1),
|
||||||
|
transparent
|
||||||
|
);
|
||||||
|
transition: left 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn:hover::before {
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn:hover {
|
||||||
|
border-color: #ff6600;
|
||||||
|
color: #ff6600;
|
||||||
|
background: rgba(255, 102, 0, 0.08);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 8px 16px rgba(255, 102, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn:active {
|
||||||
|
transform: translateY(0px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn i {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn:hover i {
|
||||||
|
transform: scale(1.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Mobile */
|
||||||
|
@media (max-width: 700px) {
|
||||||
|
.container {
|
||||||
|
flex-direction: column;
|
||||||
|
text-align: center;
|
||||||
|
gap: 30px;
|
||||||
|
}
|
||||||
|
.icon {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.buttons {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<img class="icon" src="icon.png" alt="Maintenance Icon" />
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
<h1>We'll be back soon!</h1>
|
||||||
|
<p>
|
||||||
|
The site is currently under maintenance.<br />Check back later or stay
|
||||||
|
connected:
|
||||||
|
</p>
|
||||||
|
<div class="buttons">
|
||||||
|
<a id="discordBtn" class="btn" href="https://discord.gg/yourserver"
|
||||||
|
><i class="fa-brands fa-discord"></i> Discord</a
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
id="voteBtn"
|
||||||
|
class="btn"
|
||||||
|
href="https://minecraft-server-vote-link.com"
|
||||||
|
><i class="fa-solid fa-check"></i> Vote</a
|
||||||
|
>
|
||||||
|
<a id="storeBtn" class="btn" href="https://yourstore.com"
|
||||||
|
><i class="fa-solid fa-store"></i> Store</a
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user