Spaces:
Running
Running
Schreibe einen savefile editor für https://csgo.mtsl.dt https://csgo.mtsl.dk/js/lib/2q.js
Browse files- README.md +8 -5
- index.html +72 -19
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: CSGO Save Wizard 🛠️
|
| 3 |
+
colorFrom: yellow
|
| 4 |
+
colorTo: red
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
index.html
CHANGED
|
@@ -1,19 +1,72 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<title>CSGO.MTSL Savefile-Editor</title>
|
| 6 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<style>
|
| 9 |
+
:root {
|
| 10 |
+
--primary: #0ea5e9;
|
| 11 |
+
--secondary: #6366f1;
|
| 12 |
+
--err: #ef4444;
|
| 13 |
+
--ok: #22c55e;
|
| 14 |
+
}
|
| 15 |
+
.bg-primary-500 { background-color: var(--primary); }
|
| 16 |
+
.bg-secondary-500 { background-color: var(--secondary); }
|
| 17 |
+
.text-primary-700 { color: #0369a1; }
|
| 18 |
+
.text-secondary-600 { color: #4f46e5; }
|
| 19 |
+
.border-secondary-400 { border-color: #818cf8; }
|
| 20 |
+
.bg-primary-100 { background-color: #e0f2fe; }
|
| 21 |
+
.shadow-primary-300 { box-shadow: 0 4px 14px #bae6fd; }
|
| 22 |
+
.text-primary-500 { color: var(--primary); }
|
| 23 |
+
.text-err-600 { color: var(--err); }
|
| 24 |
+
.bg-ok-400 { background-color: var(--ok); }
|
| 25 |
+
.bg-err-600 { background-color: var(--err); }
|
| 26 |
+
.toast {
|
| 27 |
+
position: fixed;
|
| 28 |
+
bottom: 1.5rem;
|
| 29 |
+
left: 50%;
|
| 30 |
+
transform: translateX(-50%) translateY(200%);
|
| 31 |
+
transition: transform .3s ease;
|
| 32 |
+
z-index: 50;
|
| 33 |
+
}
|
| 34 |
+
.toast.show { transform: translateX(-50%) translateY(0); }
|
| 35 |
+
</style>
|
| 36 |
+
</head>
|
| 37 |
+
<body class="bg-gradient-to-br from-slate-50 to-slate-100 min-h-screen flex items-center justify-center p-4">
|
| 38 |
+
|
| 39 |
+
<div class="w-full max-w-4xl">
|
| 40 |
+
<header class="mb-4 text-center">
|
| 41 |
+
<h1 class="text-2xl font-bold text-primary-700">CSGO.MTSL Savefile-Editor</h1>
|
| 42 |
+
<p class="text-sm text-primary-500 mt-1">1. Lade Save → 2. JSON editieren → 3. Speichern → 4. Spiel neu laden.</p>
|
| 43 |
+
</header>
|
| 44 |
+
|
| 45 |
+
<main class="bg-primary-100 rounded-xl shadow-primary-300 p-6 grid gap-6">
|
| 46 |
+
<section class="grid md:grid-cols-2 gap-4">
|
| 47 |
+
<div>
|
| 48 |
+
<label class="block text-sm font-semibold text-secondary-600 mb-1">Raw Save (Base64)</label>
|
| 49 |
+
<textarea id="raw" rows="10" class="w-full border border-secondary-400 rounded p-2 text-sm font-mono resize-y" spellcheck="false"></textarea>
|
| 50 |
+
<input type="file" id="uploader" class="hidden" accept=".txt">
|
| 51 |
+
</div>
|
| 52 |
+
<div>
|
| 53 |
+
<label class="block text-sm font-semibold text-secondary-600 mb-1">Decoded JSON</label>
|
| 54 |
+
<textarea id="json" rows="10" class="w-full border border-secondary-400 rounded p-2 text-sm font-mono resize-y" spellcheck="false"></textarea>
|
| 55 |
+
</div>
|
| 56 |
+
</section>
|
| 57 |
+
|
| 58 |
+
<div id="msg" class="text-sm h-5"></div>
|
| 59 |
+
|
| 60 |
+
<section class="flex flex-wrap gap-3 justify-center">
|
| 61 |
+
<button id="loadStorage" class="px-4 py-2 rounded bg-primary-500 text-white hover:bg-opacity-90">Load from Storage</button>
|
| 62 |
+
<button id="pretty" class="px-4 py-2 rounded bg-secondary-500 text-white hover:bg-opacity-90">Pretty Print</button>
|
| 63 |
+
<button id="minify" class="px-4 py-2 rounded bg-secondary-500 text-white hover:bg-opacity-90">Minify</button>
|
| 64 |
+
<button id="encode" class="px-4 py-2 rounded bg-primary-500 text-white hover:bg-opacity-90">Encode & Save</button>
|
| 65 |
+
<button id="download" class="px-4 py-2 rounded bg-secondary-500 text-white hover:bg-opacity-90">Download .txt</button>
|
| 66 |
+
<button id="upload" class="px-4 py-2 rounded bg-secondary-500 text-white hover:bg-opacity-90">Upload .txt</button>
|
| 67 |
+
</section>
|
| 68 |
+
</main>
|
| 69 |
+
|
| 70 |
+
<footer class="text-center mt-4 text-xs text-primary-500">Nutze auf eigene Gef
|
| 71 |
+
</body>
|
| 72 |
+
</html>
|