Создай веб приложение, которое по запросу в чате будет создавать чит на майнкрафт джава, с менюшками, рабочими функциями, обходами, короче всё то, что пожелают в запросе. Потом после создания можно будет скачать готовый файл zip со всеми нужными файлами внутри, который останется локально скомпилировать. Облако если надо включи. После создания чита его можно будет редактировать в чате(по запросу в чате можно добавить новые функции и вообще любое обновление для чита сделать).
Browse files- README.md +8 -5
- index.html +354 -18
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: MineCraft Wizard Hackinator 🧙♂️✨
|
| 3 |
+
colorFrom: purple
|
| 4 |
+
colorTo: purple
|
| 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,355 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>MineCraft Wizard Hackinator</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
|
| 11 |
+
<style>
|
| 12 |
+
.gradient-text {
|
| 13 |
+
background: linear-gradient(90deg, #3b82f6, #8b5cf6);
|
| 14 |
+
-webkit-background-clip: text;
|
| 15 |
+
background-clip: text;
|
| 16 |
+
color: transparent;
|
| 17 |
+
}
|
| 18 |
+
.code-block {
|
| 19 |
+
font-family: 'Courier New', monospace;
|
| 20 |
+
background-color: #1e293b;
|
| 21 |
+
color: #f8fafc;
|
| 22 |
+
border-radius: 0.5rem;
|
| 23 |
+
padding: 1rem;
|
| 24 |
+
overflow-x: auto;
|
| 25 |
+
}
|
| 26 |
+
</style>
|
| 27 |
+
</head>
|
| 28 |
+
<body class="bg-gray-900 text-gray-100 min-h-screen">
|
| 29 |
+
<div id="vanta-bg"></div>
|
| 30 |
+
<div class="container mx-auto px-4 py-12 relative z-10">
|
| 31 |
+
<!-- Header -->
|
| 32 |
+
<header class="text-center mb-12">
|
| 33 |
+
<h1 class="text-5xl font-bold mb-4 gradient-text">MineCraft Wizard Hackinator</h1>
|
| 34 |
+
<p class="text-xl text-gray-300 max-w-2xl mx-auto">Craft your perfect Minecraft Java cheat with magical precision! ✨</p>
|
| 35 |
+
</header>
|
| 36 |
+
|
| 37 |
+
<!-- Main Content -->
|
| 38 |
+
<main class="max-w-4xl mx-auto">
|
| 39 |
+
<!-- Hack Generator -->
|
| 40 |
+
<section class="bg-gray-800 rounded-xl p-6 mb-8 shadow-2xl border border-gray-700">
|
| 41 |
+
<div class="flex items-center mb-6">
|
| 42 |
+
<i data-feather="wand" class="text-purple-500 mr-3"></i>
|
| 43 |
+
<h2 class="text-2xl font-bold">Create Your Hack</h2>
|
| 44 |
+
</div>
|
| 45 |
+
|
| 46 |
+
<div class="space-y-4">
|
| 47 |
+
<div>
|
| 48 |
+
<label class="block text-gray-300 mb-2">What features do you want?</label>
|
| 49 |
+
<textarea id="hackRequest" class="w-full bg-gray-700 rounded-lg p-3 text-gray-100 border border-gray-600 focus:border-purple-500 focus:ring-1 focus:ring-purple-500" rows="4" placeholder="e.g. Fly hack, KillAura, X-Ray, NoFall, Speed, etc."></textarea>
|
| 50 |
+
</div>
|
| 51 |
+
|
| 52 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
| 53 |
+
<div>
|
| 54 |
+
<label class="block text-gray-300 mb-2">Minecraft Version</label>
|
| 55 |
+
<select class="w-full bg-gray-700 rounded-lg p-2 text-gray-100 border border-gray-600">
|
| 56 |
+
<option>1.20.1</option>
|
| 57 |
+
<option>1.19.4</option>
|
| 58 |
+
<option>1.18.2</option>
|
| 59 |
+
<option>1.17.1</option>
|
| 60 |
+
<option>1.16.5</option>
|
| 61 |
+
</select>
|
| 62 |
+
</div>
|
| 63 |
+
<div>
|
| 64 |
+
<label class="block text-gray-300 mb-2">Anti-Cheat Bypass</label>
|
| 65 |
+
<select class="w-full bg-gray-700 rounded-lg p-2 text-gray-100 border border-gray-600">
|
| 66 |
+
<option>None</option>
|
| 67 |
+
<option>NCP (NoCheatPlus)</option>
|
| 68 |
+
<option>AAC (Advanced AntiCheat)</option>
|
| 69 |
+
<option>Spartan</option>
|
| 70 |
+
<option>Matrix</option>
|
| 71 |
+
<option>Verus</option>
|
| 72 |
+
</select>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
|
| 76 |
+
<div>
|
| 77 |
+
<label class="block text-gray-300 mb-2">Additional Options</label>
|
| 78 |
+
<div class="flex flex-wrap gap-3">
|
| 79 |
+
<label class="inline-flex items-center">
|
| 80 |
+
<input type="checkbox" class="rounded bg-gray-700 border-gray-600 text-purple-500">
|
| 81 |
+
<span class="ml-2">Custom GUI</span>
|
| 82 |
+
</label>
|
| 83 |
+
<label class="inline-flex items-center">
|
| 84 |
+
<input type="checkbox" class="rounded bg-gray-700 border-gray-600 text-purple-500" checked>
|
| 85 |
+
<span class="ml-2">Auto-updater</span>
|
| 86 |
+
</label>
|
| 87 |
+
<label class="inline-flex items-center">
|
| 88 |
+
<input type="checkbox" class="rounded bg-gray-700 border-gray-600 text-purple-500">
|
| 89 |
+
<span class="ml-2">Cloud Config</span>
|
| 90 |
+
</label>
|
| 91 |
+
<label class="inline-flex items-center">
|
| 92 |
+
<input type="checkbox" class="rounded bg-gray-700 border-gray-600 text-purple-500">
|
| 93 |
+
<span class="ml-2">Encryption</span>
|
| 94 |
+
</label>
|
| 95 |
+
</div>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
|
| 99 |
+
<button id="generateBtn" class="mt-6 w-full bg-gradient-to-r from-purple-600 to-blue-500 hover:from-purple-700 hover:to-blue-600 text-white font-bold py-3 px-4 rounded-lg transition-all duration-300 flex items-center justify-center">
|
| 100 |
+
<i data-feather="zap" class="mr-2"></i>
|
| 101 |
+
Generate My Hack
|
| 102 |
+
</button>
|
| 103 |
+
</section>
|
| 104 |
+
|
| 105 |
+
<!-- Preview Section -->
|
| 106 |
+
<section id="previewSection" class="hidden bg-gray-800 rounded-xl p-6 mb-8 shadow-2xl border border-gray-700">
|
| 107 |
+
<div class="flex items-center mb-6">
|
| 108 |
+
<i data-feather="eye" class="text-blue-500 mr-3"></i>
|
| 109 |
+
<h2 class="text-2xl font-bold">Your Hack Preview</h2>
|
| 110 |
+
</div>
|
| 111 |
+
|
| 112 |
+
<div class="mb-6">
|
| 113 |
+
<h3 class="text-xl font-semibold mb-3">Features Included:</h3>
|
| 114 |
+
<div id="featuresList" class="grid grid-cols-1 md:grid-cols-2 gap-2 mb-4">
|
| 115 |
+
<!-- Features will be added here by JS -->
|
| 116 |
+
</div>
|
| 117 |
+
</div>
|
| 118 |
+
|
| 119 |
+
<div class="mb-6">
|
| 120 |
+
<h3 class="text-xl font-semibold mb-3">Code Preview:</h3>
|
| 121 |
+
<div class="code-block">
|
| 122 |
+
<pre id="codePreview">// Your generated code will appear here</pre>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
|
| 126 |
+
<div class="flex flex-col sm:flex-row gap-3">
|
| 127 |
+
<button id="downloadBtn" class="flex-1 bg-green-600 hover:bg-green-700 text-white font-bold py-3 px-4 rounded-lg transition-all duration-300 flex items-center justify-center">
|
| 128 |
+
<i data-feather="download" class="mr-2"></i>
|
| 129 |
+
Download Hack (ZIP)
|
| 130 |
+
</button>
|
| 131 |
+
<button id="editBtn" class="flex-1 bg-yellow-600 hover:bg-yellow-700 text-white font-bold py-3 px-4 rounded-lg transition-all duration-300 flex items-center justify-center">
|
| 132 |
+
<i data-feather="edit" class="mr-2"></i>
|
| 133 |
+
Edit Request
|
| 134 |
+
</button>
|
| 135 |
+
<button id="tweakBtn" class="flex-1 bg-purple-600 hover:bg-purple-700 text-white font-bold py-3 px-4 rounded-lg transition-all duration-300 flex items-center justify-center">
|
| 136 |
+
<i data-feather="plus" class="mr-2"></i>
|
| 137 |
+
Add More Features
|
| 138 |
+
</button>
|
| 139 |
+
</div>
|
| 140 |
+
</section>
|
| 141 |
+
|
| 142 |
+
<!-- Edit Section -->
|
| 143 |
+
<section id="editSection" class="hidden bg-gray-800 rounded-xl p-6 mb-8 shadow-2xl border border-gray-700">
|
| 144 |
+
<div class="flex items-center mb-6">
|
| 145 |
+
<i data-feather="edit-3" class="text-yellow-500 mr-3"></i>
|
| 146 |
+
<h2 class="text-2xl font-bold">Edit Your Hack</h2>
|
| 147 |
+
</div>
|
| 148 |
+
|
| 149 |
+
<div class="space-y-4">
|
| 150 |
+
<div>
|
| 151 |
+
<label class="block text-gray-300 mb-2">What would you like to change or add?</label>
|
| 152 |
+
<textarea id="editRequest" class="w-full bg-gray-700 rounded-lg p-3 text-gray-100 border border-gray-600 focus:border-purple-500 focus:ring-1 focus:ring-purple-500" rows="4" placeholder="Describe the changes or new features you want"></textarea>
|
| 153 |
+
</div>
|
| 154 |
+
|
| 155 |
+
<div class="flex gap-3">
|
| 156 |
+
<button id="updateBtn" class="flex-1 bg-purple-600 hover:bg-purple-700 text-white font-bold py-3 px-4 rounded-lg transition-all duration-300 flex items-center justify-center">
|
| 157 |
+
<i data-feather="refresh-cw" class="mr-2"></i>
|
| 158 |
+
Update Hack
|
| 159 |
+
</button>
|
| 160 |
+
<button id="cancelEditBtn" class="flex-1 bg-gray-600 hover:bg-gray-700 text-white font-bold py-3 px-4 rounded-lg transition-all duration-300 flex items-center justify-center">
|
| 161 |
+
<i data-feather="x" class="mr-2"></i>
|
| 162 |
+
Cancel
|
| 163 |
+
</button>
|
| 164 |
+
</div>
|
| 165 |
+
</div>
|
| 166 |
+
</section>
|
| 167 |
+
|
| 168 |
+
<!-- Instructions -->
|
| 169 |
+
<section class="bg-gray-800 rounded-xl p-6 shadow-2xl border border-gray-700">
|
| 170 |
+
<div class="flex items-center mb-6">
|
| 171 |
+
<i data-feather="info" class="text-green-500 mr-3"></i>
|
| 172 |
+
<h2 class="text-2xl font-bold">How It Works</h2>
|
| 173 |
+
</div>
|
| 174 |
+
|
| 175 |
+
<div class="space-y-4">
|
| 176 |
+
<div class="flex items-start">
|
| 177 |
+
<div class="bg-blue-500 rounded-full p-2 mr-3 flex-shrink-0">
|
| 178 |
+
<i data-feather="edit-2" class="text-white" width="18"></i>
|
| 179 |
+
</div>
|
| 180 |
+
<div>
|
| 181 |
+
<h3 class="font-bold text-lg">1. Describe Your Hack</h3>
|
| 182 |
+
<p class="text-gray-300">Tell us what features you want in your Minecraft Java cheat. The more details, the better!</p>
|
| 183 |
+
</div>
|
| 184 |
+
</div>
|
| 185 |
+
|
| 186 |
+
<div class="flex items-start">
|
| 187 |
+
<div class="bg-purple-500 rounded-full p-2 mr-3 flex-shrink-0">
|
| 188 |
+
<i data-feather="zap" class="text-white" width="18"></i>
|
| 189 |
+
</div>
|
| 190 |
+
<div>
|
| 191 |
+
<h3 class="font-bold text-lg">2. Generate & Preview</h3>
|
| 192 |
+
<p class="text-gray-300">Our wizard will craft your perfect hack. Review the preview before downloading.</p>
|
| 193 |
+
</div>
|
| 194 |
+
</div>
|
| 195 |
+
|
| 196 |
+
<div class="flex items-start">
|
| 197 |
+
<div class="bg-green-500 rounded-full p-2 mr-3 flex-shrink-0">
|
| 198 |
+
<i data-feather="download" class="text-white" width="18"></i>
|
| 199 |
+
</div>
|
| 200 |
+
<div>
|
| 201 |
+
<h3 class="font-bold text-lg">3. Download & Compile</h3>
|
| 202 |
+
<p class="text-gray-300">Get a ZIP file with all necessary files. Simple local compilation required.</p>
|
| 203 |
+
</div>
|
| 204 |
+
</div>
|
| 205 |
+
|
| 206 |
+
<div class="flex items-start">
|
| 207 |
+
<div class="bg-yellow-500 rounded-full p-2 mr-3 flex-shrink-0">
|
| 208 |
+
<i data-feather="refresh-cw" class="text-white" width="18"></i>
|
| 209 |
+
</div>
|
| 210 |
+
<div>
|
| 211 |
+
<h3 class="font-bold text-lg">4. Edit Anytime</h3>
|
| 212 |
+
<p class="text-gray-300">Need changes? Just describe what you want and we'll update your hack.</p>
|
| 213 |
+
</div>
|
| 214 |
+
</div>
|
| 215 |
+
</div>
|
| 216 |
+
</section>
|
| 217 |
+
</main>
|
| 218 |
+
|
| 219 |
+
<!-- Footer -->
|
| 220 |
+
<footer class="mt-16 text-center text-gray-400 text-sm">
|
| 221 |
+
<p>© 2023 MineCraft Wizard Hackinator | Not affiliated with Mojang or Microsoft</p>
|
| 222 |
+
<p class="mt-1">Use responsibly. Cheating may violate server rules.</p>
|
| 223 |
+
</footer>
|
| 224 |
+
</div>
|
| 225 |
+
|
| 226 |
+
<script>
|
| 227 |
+
// Initialize Vanta.js background
|
| 228 |
+
VANTA.NET({
|
| 229 |
+
el: "#vanta-bg",
|
| 230 |
+
mouseControls: true,
|
| 231 |
+
touchControls: true,
|
| 232 |
+
gyroControls: false,
|
| 233 |
+
minHeight: 200.00,
|
| 234 |
+
minWidth: 200.00,
|
| 235 |
+
scale: 1.00,
|
| 236 |
+
scaleMobile: 1.00,
|
| 237 |
+
color: 0x3b82f6,
|
| 238 |
+
backgroundColor: 0x111827,
|
| 239 |
+
points: 12.00,
|
| 240 |
+
maxDistance: 22.00,
|
| 241 |
+
spacing: 18.00
|
| 242 |
+
});
|
| 243 |
+
|
| 244 |
+
// Initialize Feather Icons
|
| 245 |
+
feather.replace();
|
| 246 |
+
|
| 247 |
+
// Sample hack features for demo
|
| 248 |
+
const sampleFeatures = [
|
| 249 |
+
"Fly Hack - Toggleable flight with customizable speed",
|
| 250 |
+
"KillAura - Auto-attack nearby mobs/players",
|
| 251 |
+
"X-Ray - See through blocks to find ores",
|
| 252 |
+
"Speed - Move faster than normal",
|
| 253 |
+
"NoFall - Take no fall damage",
|
| 254 |
+
"AutoTool - Automatically selects best tool",
|
| 255 |
+
"Fullbright - See in dark areas clearly"
|
| 256 |
+
];
|
| 257 |
+
|
| 258 |
+
// Sample code for demo
|
| 259 |
+
const sampleCode = `package com.mcwizard.hack;
|
| 260 |
+
|
| 261 |
+
import net.minecraft.client.Minecraft;
|
| 262 |
+
import net.minecraftforge.common.MinecraftForge;
|
| 263 |
+
import net.minecraftforge.fml.common.Mod;
|
| 264 |
+
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
| 265 |
+
|
| 266 |
+
@Mod(modid = "McWizardHack", version = "1.0")
|
| 267 |
+
public class Main {
|
| 268 |
+
public static final Minecraft mc = Minecraft.getMinecraft();
|
| 269 |
+
|
| 270 |
+
@Mod.EventHandler
|
| 271 |
+
public void init(FMLInitializationEvent event) {
|
| 272 |
+
// Register all hack modules
|
| 273 |
+
MinecraftForge.EVENT_BUS.register(new FlyHack());
|
| 274 |
+
MinecraftForge.EVENT_BUS.register(new KillAura());
|
| 275 |
+
MinecraftForge.EVENT_BUS.register(new XRay());
|
| 276 |
+
MinecraftForge.EVENT_BUS.register(new Speed());
|
| 277 |
+
MinecraftForge.EVENT_BUS.register(new NoFall());
|
| 278 |
+
|
| 279 |
+
// Initialize GUI
|
| 280 |
+
new HackGUI().initialize();
|
| 281 |
+
}
|
| 282 |
+
}`;
|
| 283 |
+
|
| 284 |
+
// DOM Elements
|
| 285 |
+
const generateBtn = document.getElementById('generateBtn');
|
| 286 |
+
const previewSection = document.getElementById('previewSection');
|
| 287 |
+
const featuresList = document.getElementById('featuresList');
|
| 288 |
+
const codePreview = document.getElementById('codePreview');
|
| 289 |
+
const editSection = document.getElementById('editSection');
|
| 290 |
+
const hackRequest = document.getElementById('hackRequest');
|
| 291 |
+
const editRequest = document.getElementById('editRequest');
|
| 292 |
+
const editBtn = document.getElementById('editBtn');
|
| 293 |
+
const tweakBtn = document.getElementById('tweakBtn');
|
| 294 |
+
const updateBtn = document.getElementById('updateBtn');
|
| 295 |
+
const cancelEditBtn = document.getElementById('cancelEditBtn');
|
| 296 |
+
const downloadBtn = document.getElementById('downloadBtn');
|
| 297 |
+
|
| 298 |
+
// Event Listeners
|
| 299 |
+
generateBtn.addEventListener('click', () => {
|
| 300 |
+
// Show preview section
|
| 301 |
+
previewSection.classList.remove('hidden');
|
| 302 |
+
|
| 303 |
+
// Populate features (in a real app, this would come from an API)
|
| 304 |
+
featuresList.innerHTML = '';
|
| 305 |
+
sampleFeatures.forEach(feature => {
|
| 306 |
+
const featureItem = document.createElement('div');
|
| 307 |
+
featureItem.className = 'flex items-start';
|
| 308 |
+
featureItem.innerHTML = `
|
| 309 |
+
<i data-feather="check-circle" class="text-green-500 mr-2 mt-1 flex-shrink-0"></i>
|
| 310 |
+
<span class="text-gray-300">${feature}</span>
|
| 311 |
+
`;
|
| 312 |
+
featuresList.appendChild(featureItem);
|
| 313 |
+
});
|
| 314 |
+
|
| 315 |
+
// Populate code preview
|
| 316 |
+
codePreview.textContent = sampleCode;
|
| 317 |
+
|
| 318 |
+
// Scroll to preview
|
| 319 |
+
previewSection.scrollIntoView({ behavior: 'smooth' });
|
| 320 |
+
|
| 321 |
+
// Update icons
|
| 322 |
+
feather.replace();
|
| 323 |
+
});
|
| 324 |
+
|
| 325 |
+
editBtn.addEventListener('click', () => {
|
| 326 |
+
previewSection.classList.add('hidden');
|
| 327 |
+
editSection.classList.remove('hidden');
|
| 328 |
+
editRequest.value = hackRequest.value;
|
| 329 |
+
});
|
| 330 |
+
|
| 331 |
+
tweakBtn.addEventListener('click', () => {
|
| 332 |
+
previewSection.classList.add('hidden');
|
| 333 |
+
editSection.classList.remove('hidden');
|
| 334 |
+
editRequest.placeholder = "What additional features would you like?";
|
| 335 |
+
});
|
| 336 |
+
|
| 337 |
+
updateBtn.addEventListener('click', () => {
|
| 338 |
+
// In a real app, this would send the update request to the backend
|
| 339 |
+
hackRequest.value = editRequest.value;
|
| 340 |
+
editSection.classList.add('hidden');
|
| 341 |
+
previewSection.classList.remove('hidden');
|
| 342 |
+
});
|
| 343 |
+
|
| 344 |
+
cancelEditBtn.addEventListener('click', () => {
|
| 345 |
+
editSection.classList.add('hidden');
|
| 346 |
+
previewSection.classList.remove('hidden');
|
| 347 |
+
});
|
| 348 |
+
|
| 349 |
+
downloadBtn.addEventListener('click', () => {
|
| 350 |
+
// In a real app, this would generate and download a ZIP file
|
| 351 |
+
alert('In a real implementation, this would download a ZIP file with all the hack source code and resources. For this demo, imagine you got your hack files!');
|
| 352 |
+
});
|
| 353 |
+
</script>
|
| 354 |
+
</body>
|
| 355 |
</html>
|