| | <!DOCTYPE html> |
| | <html lang="en"> |
| | <head> |
| | <meta charset="UTF-8"> |
| | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | <title>Dox AI</title> |
| | <link rel="stylesheet" href="styles.css"> |
| | </head> |
| | <body> |
| | <header>Dox AI - Unified App & Website Generator</header> |
| |
|
| | <div class="controls"> |
| | <input type="text" id="prompt" placeholder="Enter your prompt..." /> |
| | <select id="mode"> |
| | <option value="website">Website AI</option> |
| | <option value="app">App AI</option> |
| | <option value="both">Both</option> |
| | </select> |
| | <button id="sendBtn">Send</button> |
| | </div> |
| |
|
| | <div id="iframes"> |
| | <iframe id="website-frame" src="https://dsduded-deepstudio.hf.space" style="display:none;"></iframe> |
| | <iframe id="app-frame" src="https://dsduded-gemini-coder-new.hf.space" style="display:none;"></iframe> |
| | </div> |
| |
|
| | <script> |
| | const websiteFrame = document.getElementById('website-frame'); |
| | const appFrame = document.getElementById('app-frame'); |
| | const sendBtn = document.getElementById('sendBtn'); |
| | const promptInput = document.getElementById('prompt'); |
| | const modeSelect = document.getElementById('mode'); |
| | |
| | function showFrames() { |
| | const mode = modeSelect.value; |
| | websiteFrame.style.display = 'none'; |
| | appFrame.style.display = 'none'; |
| | |
| | if (mode === 'website') websiteFrame.style.display = 'block'; |
| | if (mode === 'app') appFrame.style.display = 'block'; |
| | if (mode === 'both') { |
| | websiteFrame.style.display = 'block'; |
| | appFrame.style.display = 'block'; |
| | } |
| | } |
| | |
| | sendBtn.addEventListener('click', () => { |
| | showFrames(); |
| | const prompt = promptInput.value; |
| | |
| | |
| | console.log("Prompt to send:", prompt); |
| | }); |
| | |
| | modeSelect.addEventListener('change', showFrames); |
| | </script> |
| | </body> |
| | </html> |
| |
|