Untitled

 avatar
unknown
plain_text
a month ago
3.0 kB
3
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HybridOS Simulator</title>
    <style>
        body {
            font-family: monospace;
            background-color: #1a1a1a;
            color: #00ff00;
            padding: 20px;
        }
        #console {
            width: 100%;
            height: 400px;
            background-color: #000;
            padding: 10px;
            overflow-y: auto;
            border: 1px solid #00ff00;
        }
        #input {
            width: 100%;
            background-color: #000;
            color: #00ff00;
            border: none;
            outline: none;
            font-family: monospace;
        }
    </style>
</head>
<body>
    <div id="console">
        Welcome to HybridOS v0.1 - Powered by xAI<br>
        Booting HybridOS...<br>
        Kernel initialized: HybridNT-XNU-Linux<br>
        User: User<br>
    </div>
    <input id="input" type="text" placeholder="User@HybridOS> " onkeydown="handleCommand(event)">

    <script>
        const consoleDiv = document.getElementById('console');
        const input = document.getElementById('input');
        let notepadActive = false;

        function appendOutput(text) {
            consoleDiv.innerHTML += text + "<br>";
            consoleDiv.scrollTop = consoleDiv.scrollHeight;
        }

        function handleCommand(event) {
            if (event.key === "Enter") {
                const command = input.value.toLowerCase().trim();
                input.value = "";

                if (notepadActive) {
                    if (command === "exit") {
                        notepadActive = false;
                        appendOutput("Notepad closed.");
                    } else {
                        appendOutput(`Saved: ${command}`);
                    }
                    return;
                }

                if (command === "exit") {
                    appendOutput("Shutting down HybridOS...");
                    input.disabled = true;
                } else if (command === "notepad") {
                    notepadActive = true;
                    appendOutput("[Windows Notepad] Type your text (exit to quit):");
                } else if (command === "siri") {
                    appendOutput("[iOS Siri] How can I assist you?");
                    appendOutput(`Current time: ${new Date().toLocaleString()}`);
                } else if (command === "settings") {
                    appendOutput("[Android Settings] Options: 1) WiFi  2) Battery  3) Exit");
                    appendOutput("WiFi: Connected to xAI-Net | Battery: 85%");
                } else if (command === "help") {
                    appendOutput("Commands: notepad, siri, settings, exit");
                } else {
                    appendOutput(`Command '${command}' not found. Type 'help' for options.`);
                }
            }
        }
    </script>
</body>
</html>
Editor is loading...
Leave a Comment