Spaces:
Running
Running
A phone flashing tool made to run of USB like a dongle with a adb terminal fastboot apktool prewrote bat. files with commands like and reboot bootloader , adb devices , oem fastboot reboot - Initial Deployment
Browse files- README.md +7 -5
- index.html +341 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: plashwizard
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: yellow
|
| 5 |
+
colorTo: yellow
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,341 @@
|
|
| 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 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>USB Phone Flasher Tool</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
@keyframes pulse {
|
| 11 |
+
0% { opacity: 0.6; }
|
| 12 |
+
50% { opacity: 1; }
|
| 13 |
+
100% { opacity: 0.6; }
|
| 14 |
+
}
|
| 15 |
+
.pulse {
|
| 16 |
+
animation: pulse 2s infinite;
|
| 17 |
+
}
|
| 18 |
+
.terminal {
|
| 19 |
+
font-family: 'Courier New', monospace;
|
| 20 |
+
background-color: #1e1e1e;
|
| 21 |
+
color: #f0f0f0;
|
| 22 |
+
}
|
| 23 |
+
.scrollbar-hide::-webkit-scrollbar {
|
| 24 |
+
display: none;
|
| 25 |
+
}
|
| 26 |
+
.command-history {
|
| 27 |
+
height: calc(100% - 60px);
|
| 28 |
+
}
|
| 29 |
+
.typewriter {
|
| 30 |
+
overflow: hidden;
|
| 31 |
+
border-right: .15em solid #4ade80;
|
| 32 |
+
white-space: nowrap;
|
| 33 |
+
letter-spacing: .15em;
|
| 34 |
+
animation:
|
| 35 |
+
typing 3.5s steps(40, end),
|
| 36 |
+
blink-caret .75s step-end infinite;
|
| 37 |
+
}
|
| 38 |
+
@keyframes typing {
|
| 39 |
+
from { width: 0 }
|
| 40 |
+
to { width: 100% }
|
| 41 |
+
}
|
| 42 |
+
@keyframes blink-caret {
|
| 43 |
+
from, to { border-color: transparent }
|
| 44 |
+
50% { border-color: #4ade80; }
|
| 45 |
+
}
|
| 46 |
+
</style>
|
| 47 |
+
</head>
|
| 48 |
+
<body class="bg-gray-900 text-white min-h-screen">
|
| 49 |
+
<div class="container mx-auto px-4 py-8">
|
| 50 |
+
<!-- Header -->
|
| 51 |
+
<header class="flex flex-col md:flex-row justify-between items-center mb-8">
|
| 52 |
+
<div class="flex items-center mb-4 md:mb-0">
|
| 53 |
+
<div class="bg-blue-600 p-3 rounded-full mr-4">
|
| 54 |
+
<i class="fas fa-mobile-alt text-2xl"></i>
|
| 55 |
+
</div>
|
| 56 |
+
<div>
|
| 57 |
+
<h1 class="text-2xl md:text-3xl font-bold">USB Phone Flasher Tool</h1>
|
| 58 |
+
<p class="text-gray-400">ADB • Fastboot • APKTool • Batch Commands</p>
|
| 59 |
+
</div>
|
| 60 |
+
</div>
|
| 61 |
+
<div class="flex items-center space-x-4">
|
| 62 |
+
<div class="flex items-center">
|
| 63 |
+
<div class="w-3 h-3 rounded-full bg-green-500 mr-2 pulse"></div>
|
| 64 |
+
<span class="text-sm">USB Connected</span>
|
| 65 |
+
</div>
|
| 66 |
+
<button class="bg-red-600 hover:bg-red-700 px-4 py-2 rounded-lg flex items-center">
|
| 67 |
+
<i class="fas fa-power-off mr-2"></i>
|
| 68 |
+
<span>Eject</span>
|
| 69 |
+
</button>
|
| 70 |
+
</div>
|
| 71 |
+
</header>
|
| 72 |
+
|
| 73 |
+
<!-- Main Content -->
|
| 74 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 75 |
+
<!-- Left Panel - Quick Commands -->
|
| 76 |
+
<div class="bg-gray-800 rounded-xl p-6 lg:col-span-1">
|
| 77 |
+
<h2 class="text-xl font-bold mb-4 flex items-center">
|
| 78 |
+
<i class="fas fa-bolt mr-2 text-yellow-400"></i>
|
| 79 |
+
Quick Commands
|
| 80 |
+
</h2>
|
| 81 |
+
<div class="space-y-3">
|
| 82 |
+
<button onclick="runCommand('adb devices')" class="w-full bg-gray-700 hover:bg-gray-600 px-4 py-3 rounded-lg flex items-center justify-between transition">
|
| 83 |
+
<span>List Devices</span>
|
| 84 |
+
<span class="text-xs bg-gray-600 px-2 py-1 rounded">adb devices</span>
|
| 85 |
+
</button>
|
| 86 |
+
<button onclick="runCommand('adb reboot bootloader')" class="w-full bg-gray-700 hover:bg-gray-600 px-4 py-3 rounded-lg flex items-center justify-between transition">
|
| 87 |
+
<span>Reboot to Bootloader</span>
|
| 88 |
+
<span class="text-xs bg-gray-600 px-2 py-1 rounded">adb reboot bootloader</span>
|
| 89 |
+
</button>
|
| 90 |
+
<button onclick="runCommand('fastboot devices')" class="w-full bg-gray-700 hover:bg-gray-600 px-4 py-3 rounded-lg flex items-center justify-between transition">
|
| 91 |
+
<span>Fastboot Devices</span>
|
| 92 |
+
<span class="text-xs bg-gray-600 px-2 py-1 rounded">fastboot devices</span>
|
| 93 |
+
</button>
|
| 94 |
+
<button onclick="runCommand('fastboot oem unlock')" class="w-full bg-gray-700 hover:bg-gray-600 px-4 py-3 rounded-lg flex items-center justify-between transition">
|
| 95 |
+
<span>OEM Unlock</span>
|
| 96 |
+
<span class="text-xs bg-gray-600 px-2 py-1 rounded">fastboot oem unlock</span>
|
| 97 |
+
</button>
|
| 98 |
+
<button onclick="runCommand('fastboot reboot')" class="w-full bg-gray-700 hover:bg-gray-600 px-4 py-3 rounded-lg flex items-center justify-between transition">
|
| 99 |
+
<span>Reboot Device</span>
|
| 100 |
+
<span class="text-xs bg-gray-600 px-2 py-1 rounded">fastboot reboot</span>
|
| 101 |
+
</button>
|
| 102 |
+
</div>
|
| 103 |
+
|
| 104 |
+
<h2 class="text-xl font-bold mt-8 mb-4 flex items-center">
|
| 105 |
+
<i class="fas fa-file-alt mr-2 text-blue-400"></i>
|
| 106 |
+
Batch Scripts
|
| 107 |
+
</h2>
|
| 108 |
+
<div class="space-y-3">
|
| 109 |
+
<button onclick="runBatchScript('unlock_bootloader')" class="w-full bg-blue-600 hover:bg-blue-700 px-4 py-3 rounded-lg flex items-center transition">
|
| 110 |
+
<i class="fas fa-unlock mr-3"></i>
|
| 111 |
+
<span>Unlock Bootloader</span>
|
| 112 |
+
</button>
|
| 113 |
+
<button onclick="runBatchScript('flash_recovery')" class="w-full bg-purple-600 hover:bg-purple-700 px-4 py-3 rounded-lg flex items-center transition">
|
| 114 |
+
<i class="fas fa-download mr-3"></i>
|
| 115 |
+
<span>Flash Recovery</span>
|
| 116 |
+
</button>
|
| 117 |
+
<button onclick="runBatchScript('root_device')" class="w-full bg-green-600 hover:bg-green-700 px-4 py-3 rounded-lg flex items-center transition">
|
| 118 |
+
<i class="fas fa-shield-alt mr-3"></i>
|
| 119 |
+
<span>Root Device</span>
|
| 120 |
+
</button>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
|
| 124 |
+
<!-- Right Panel - Terminal -->
|
| 125 |
+
<div class="bg-gray-800 rounded-xl p-0 overflow-hidden lg:col-span-2">
|
| 126 |
+
<div class="bg-gray-900 px-4 py-3 flex items-center justify-between border-b border-gray-700">
|
| 127 |
+
<div class="flex items-center space-x-2">
|
| 128 |
+
<div class="w-3 h-3 rounded-full bg-red-500"></div>
|
| 129 |
+
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
|
| 130 |
+
<div class="w-3 h-3 rounded-full bg-green-500"></div>
|
| 131 |
+
</div>
|
| 132 |
+
<div class="text-sm text-gray-400">
|
| 133 |
+
ADB/Fastboot Terminal
|
| 134 |
+
</div>
|
| 135 |
+
<div class="flex items-center space-x-3">
|
| 136 |
+
<button onclick="clearTerminal()" class="text-gray-400 hover:text-white">
|
| 137 |
+
<i class="fas fa-trash-alt"></i>
|
| 138 |
+
</button>
|
| 139 |
+
<button onclick="copyTerminalContent()" class="text-gray-400 hover:text-white">
|
| 140 |
+
<i class="fas fa-copy"></i>
|
| 141 |
+
</button>
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
+
<div class="terminal p-4 h-96 overflow-y-auto scrollbar-hide command-history" id="terminal">
|
| 145 |
+
<div class="text-green-400 mb-2">USB Phone Flasher Tool v1.2.0</div>
|
| 146 |
+
<div class="text-gray-400 mb-4">Type "help" for available commands</div>
|
| 147 |
+
<div class="mb-4">
|
| 148 |
+
<div class="text-green-400">user@flasher:~$ <span class="typewriter">adb devices</span></div>
|
| 149 |
+
<div class="mt-1 ml-8">List of devices attached</div>
|
| 150 |
+
<div class="mt-1 ml-8 text-yellow-300">0123456789ABCDEF device</div>
|
| 151 |
+
</div>
|
| 152 |
+
</div>
|
| 153 |
+
<div class="bg-gray-900 px-4 py-3 border-t border-gray-700 flex items-center">
|
| 154 |
+
<span class="text-green-400 mr-2">user@flasher:~$</span>
|
| 155 |
+
<input type="text" id="commandInput" class="bg-transparent flex-1 outline-none text-white" placeholder="Enter command..." onkeypress="handleCommandInput(event)">
|
| 156 |
+
<button onclick="sendCommand()" class="ml-2 bg-green-600 hover:bg-green-700 px-3 py-1 rounded">
|
| 157 |
+
<i class="fas fa-paper-plane"></i>
|
| 158 |
+
</button>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
</div>
|
| 162 |
+
|
| 163 |
+
<!-- Status Bar -->
|
| 164 |
+
<div class="mt-6 bg-gray-800 rounded-xl p-4 flex flex-wrap items-center justify-between">
|
| 165 |
+
<div class="flex items-center space-x-4">
|
| 166 |
+
<div class="flex items-center">
|
| 167 |
+
<i class="fas fa-microchip text-blue-400 mr-2"></i>
|
| 168 |
+
<span>ADB: <span class="text-green-400">Active</span></span>
|
| 169 |
+
</div>
|
| 170 |
+
<div class="flex items-center">
|
| 171 |
+
<i class="fas fa-bolt text-yellow-400 mr-2"></i>
|
| 172 |
+
<span>Fastboot: <span class="text-green-400">Ready</span></span>
|
| 173 |
+
</div>
|
| 174 |
+
<div class="flex items-center">
|
| 175 |
+
<i class="fas fa-box-open text-purple-400 mr-2"></i>
|
| 176 |
+
<span>APKTool: <span class="text-green-400">v2.8.1</span></span>
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
<div class="flex items-center mt-2 md:mt-0">
|
| 180 |
+
<i class="fas fa-hdd text-gray-400 mr-2"></i>
|
| 181 |
+
<span>Storage: <span class="text-green-400">15.2GB free</span></span>
|
| 182 |
+
</div>
|
| 183 |
+
</div>
|
| 184 |
+
</div>
|
| 185 |
+
|
| 186 |
+
<script>
|
| 187 |
+
// Sample command responses
|
| 188 |
+
const commandResponses = {
|
| 189 |
+
'adb devices': 'List of devices attached\n0123456789ABCDEF device',
|
| 190 |
+
'adb reboot bootloader': 'Rebooting into bootloader...',
|
| 191 |
+
'fastboot devices': '0123456789ABCDEF fastboot',
|
| 192 |
+
'fastboot oem unlock': '...\nOKAY [ 0.012s]\nFinished. Total time: 0.012s',
|
| 193 |
+
'fastboot reboot': 'Rebooting...\nFinished. Total time: 0.002s',
|
| 194 |
+
'help': 'Available commands:\n- adb devices\n- adb reboot bootloader\n- fastboot devices\n- fastboot oem unlock\n- fastboot reboot\n- clear\n- help',
|
| 195 |
+
'clear': ''
|
| 196 |
+
};
|
| 197 |
+
|
| 198 |
+
// Batch script responses
|
| 199 |
+
const batchScripts = {
|
| 200 |
+
'unlock_bootloader': [
|
| 201 |
+
'Starting bootloader unlock process...',
|
| 202 |
+
'adb reboot bootloader',
|
| 203 |
+
'Waiting for device in fastboot mode...',
|
| 204 |
+
'fastboot oem unlock',
|
| 205 |
+
'Device unlocked successfully!',
|
| 206 |
+
'fastboot reboot'
|
| 207 |
+
],
|
| 208 |
+
'flash_recovery': [
|
| 209 |
+
'Starting recovery flash process...',
|
| 210 |
+
'adb reboot bootloader',
|
| 211 |
+
'Waiting for device in fastboot mode...',
|
| 212 |
+
'fastboot flash recovery twrp-3.7.0.img',
|
| 213 |
+
'Recovery flashed successfully!',
|
| 214 |
+
'fastboot reboot'
|
| 215 |
+
],
|
| 216 |
+
'root_device': [
|
| 217 |
+
'Starting device rooting process...',
|
| 218 |
+
'adb reboot bootloader',
|
| 219 |
+
'Waiting for device in fastboot mode...',
|
| 220 |
+
'fastboot flash boot magisk_patched.img',
|
| 221 |
+
'Device rooted successfully!',
|
| 222 |
+
'fastboot reboot'
|
| 223 |
+
]
|
| 224 |
+
};
|
| 225 |
+
|
| 226 |
+
function runCommand(command) {
|
| 227 |
+
const terminal = document.getElementById('terminal');
|
| 228 |
+
const commandLine = document.createElement('div');
|
| 229 |
+
commandLine.className = 'text-green-400 mb-1';
|
| 230 |
+
commandLine.textContent = `user@flasher:~$ ${command}`;
|
| 231 |
+
terminal.appendChild(commandLine);
|
| 232 |
+
|
| 233 |
+
const response = commandResponses[command] || `Command not found: ${command}`;
|
| 234 |
+
|
| 235 |
+
if (command === 'clear') {
|
| 236 |
+
terminal.innerHTML = '';
|
| 237 |
+
return;
|
| 238 |
+
}
|
| 239 |
+
|
| 240 |
+
if (response) {
|
| 241 |
+
const responseLines = response.split('\n');
|
| 242 |
+
responseLines.forEach(line => {
|
| 243 |
+
const responseElement = document.createElement('div');
|
| 244 |
+
responseElement.className = 'ml-8';
|
| 245 |
+
responseElement.textContent = line;
|
| 246 |
+
terminal.appendChild(responseElement);
|
| 247 |
+
});
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
terminal.scrollTop = terminal.scrollHeight;
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
function runBatchScript(scriptName) {
|
| 254 |
+
const terminal = document.getElementById('terminal');
|
| 255 |
+
const script = batchScripts[scriptName];
|
| 256 |
+
|
| 257 |
+
if (!script) {
|
| 258 |
+
const errorLine = document.createElement('div');
|
| 259 |
+
errorLine.className = 'text-red-400 mb-1';
|
| 260 |
+
errorLine.textContent = `Script not found: ${scriptName}`;
|
| 261 |
+
terminal.appendChild(errorLine);
|
| 262 |
+
terminal.scrollTop = terminal.scrollHeight;
|
| 263 |
+
return;
|
| 264 |
+
}
|
| 265 |
+
|
| 266 |
+
// Clear terminal for batch script
|
| 267 |
+
terminal.innerHTML = '';
|
| 268 |
+
const scriptHeader = document.createElement('div');
|
| 269 |
+
scriptHeader.className = 'text-purple-400 mb-2';
|
| 270 |
+
scriptHeader.textContent = `=== Running batch script: ${scriptName.replace(/_/g, ' ')} ===`;
|
| 271 |
+
terminal.appendChild(scriptHeader);
|
| 272 |
+
|
| 273 |
+
// Simulate script execution with delay
|
| 274 |
+
script.forEach((line, index) => {
|
| 275 |
+
setTimeout(() => {
|
| 276 |
+
const isCommand = line.includes('adb') || line.includes('fastboot');
|
| 277 |
+
|
| 278 |
+
const lineElement = document.createElement('div');
|
| 279 |
+
lineElement.className = isCommand ? 'text-green-400 mb-1' : 'mb-1';
|
| 280 |
+
|
| 281 |
+
if (isCommand) {
|
| 282 |
+
lineElement.textContent = `user@flasher:~$ ${line}`;
|
| 283 |
+
} else {
|
| 284 |
+
lineElement.textContent = line;
|
| 285 |
+
}
|
| 286 |
+
|
| 287 |
+
terminal.appendChild(lineElement);
|
| 288 |
+
terminal.scrollTop = terminal.scrollHeight;
|
| 289 |
+
}, index * 800);
|
| 290 |
+
});
|
| 291 |
+
}
|
| 292 |
+
|
| 293 |
+
function handleCommandInput(e) {
|
| 294 |
+
if (e.key === 'Enter') {
|
| 295 |
+
sendCommand();
|
| 296 |
+
}
|
| 297 |
+
}
|
| 298 |
+
|
| 299 |
+
function sendCommand() {
|
| 300 |
+
const input = document.getElementById('commandInput');
|
| 301 |
+
const command = input.value.trim();
|
| 302 |
+
|
| 303 |
+
if (command) {
|
| 304 |
+
runCommand(command);
|
| 305 |
+
input.value = '';
|
| 306 |
+
}
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
function clearTerminal() {
|
| 310 |
+
document.getElementById('terminal').innerHTML = '';
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
+
function copyTerminalContent() {
|
| 314 |
+
const terminal = document.getElementById('terminal');
|
| 315 |
+
const range = document.createRange();
|
| 316 |
+
range.selectNode(terminal);
|
| 317 |
+
window.getSelection().removeAllRanges();
|
| 318 |
+
window.getSelection().addRange(range);
|
| 319 |
+
document.execCommand('copy');
|
| 320 |
+
window.getSelection().removeAllRanges();
|
| 321 |
+
|
| 322 |
+
// Show copied notification
|
| 323 |
+
const notification = document.createElement('div');
|
| 324 |
+
notification.className = 'absolute top-4 right-4 bg-gray-800 text-white px-4 py-2 rounded-lg shadow-lg';
|
| 325 |
+
notification.textContent = 'Terminal content copied!';
|
| 326 |
+
document.body.appendChild(notification);
|
| 327 |
+
|
| 328 |
+
setTimeout(() => {
|
| 329 |
+
notification.remove();
|
| 330 |
+
}, 2000);
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
// Initialize with help command
|
| 334 |
+
window.onload = function() {
|
| 335 |
+
setTimeout(() => {
|
| 336 |
+
runCommand('help');
|
| 337 |
+
}, 1500);
|
| 338 |
+
};
|
| 339 |
+
</script>
|
| 340 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Karmastudios/plashwizard" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 341 |
+
</html>
|