commit bfb8ab1e7ba352b2e56281d6738139881c670f93 Author: redstonestudios Date: Tue Jan 27 15:47:44 2026 +0000 Dateien nach "/" hochladen diff --git a/config.js b/config.js new file mode 100644 index 0000000..08c5ed0 --- /dev/null +++ b/config.js @@ -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", +}; diff --git a/function.js b/function.js new file mode 100644 index 0000000..18d58de --- /dev/null +++ b/function.js @@ -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 + "" + textKode + ""; + + 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 = + `
` + + madeByText + + ` </> ` + + kodeText + + `
`; + + const expandedContent = ` +
+

Need a custom website or bot?

+
Click to join Discord
+
×
+
+ `; + + 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); diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..4f965fd Binary files /dev/null and b/icon.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..f4da9b3 --- /dev/null +++ b/index.html @@ -0,0 +1,192 @@ + + + + + Minecraft Server | Maintenance + + + + + + +
+ Maintenance Icon + +
+

We'll be back soon!

+

+ The site is currently under maintenance.
Check back later or stay + connected: +

+ +
+
+ + +