mgbam commited on
Commit
fe0020d
·
verified ·
1 Parent(s): ca950c4

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +70 -72
static/index.html CHANGED
@@ -1,94 +1,92 @@
1
- <!-- static/index.html – AnyCoder AI (dark theme) -->
2
  <!DOCTYPE html>
3
  <html lang="en">
4
  <head>
5
- <meta charset="UTF-8" />
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0" />
7
  <title>AnyCoder AI Code Generator</title>
8
  <meta name="description"
9
- content="Generate, modify & understand code with the most advanced AI models." />
10
- <link rel="stylesheet" href="file=/static/style.css" />
11
  </head>
12
  <body>
13
- <header>
14
- <h1>🚀 AnyCoder AI</h1>
15
- <p>Your AI partner for generating, modifying &amp; understanding code.</p>
16
- </header>
17
 
18
- <main>
19
- <!-- 1 · MODEL -->
20
- <section aria-labelledby="m‑h">
21
- <h2 id="m‑h">1. Select Model</h2>
22
- <select id="model" aria-label="AI Model"></select>
23
- </section>
24
 
25
- <!-- 2 · CONTEXT -->
26
- <section aria-labelledby="c‑h">
27
- <h2 id="c‑h">2. Provide Context</h2>
 
 
 
 
 
28
 
29
- <div class="tabs" role="tablist">
30
- <button role="tab" id="t‑prompt" aria-controls="p‑prompt" aria-selected="true">Prompt</button>
31
- <button role="tab" id="t‑file" aria-controls="p‑file" aria-selected="false">File</button>
32
- <button role="tab" id="t‑web" aria-controls="p‑web" aria-selected="false">Website</button>
33
- </div>
34
 
35
- <div role="tabpanel" id="pprompt">
36
- <textarea id="prompt" placeholder="Describe what you want to build…"></textarea>
37
- </div>
 
38
 
39
- <div role="tabpanel" id="pfile" hidden>
40
- <label for="file">Reference file</label>
41
- <input id="file" type="file" accept=".pdf,.docx,.txt" />
42
- </div>
 
43
 
44
- <div role="tabpanel" id="p‑web" hidden>
45
- <label for="url">Website URL</label>
46
- <input id="url" type="url" placeholder="https://example.com" />
47
- </div>
48
- </section>
49
 
50
- <!-- 3 · OUTPUT -->
51
- <section aria-labelledby="o‑h">
52
- <h2 id="o‑h">3. Configure Output</h2>
53
- <label for="lang">Target language</label>
54
- <select id="lang"></select>
55
 
56
- <div class="search">
57
- <input id="search" type="checkbox" />
58
- <label for="search">Enable web search</label>
59
- </div>
60
- </section>
61
 
62
- <!-- ACTIONS -->
63
- <section class="actions">
64
- <button id="clear">Clear session</button>
65
- <button id="gen">Generate code</button>
66
- </section>
 
 
 
67
 
68
- <!-- OUTPUT PANES -->
69
- <section aria-labelledby="out‑h">
70
- <h2 id="out‑h" class="visually‑hidden">Output</h2>
71
 
72
- <div class="tabs" role="tablist">
73
- <button role="tab" id="t‑code" aria-controls="p‑code" aria-selected="true">Code</button>
74
- <button role="tab" id="t‑preview" aria-controls="p‑preview" aria-selected="false">Preview</button>
75
- <button role="tab" id="t‑hist" aria-controls="p‑hist" aria-selected="false">History</button>
76
- </div>
77
 
78
- <div role="tabpanel" id="pcode">
79
- <pre><code id="code"></code></pre>
80
- </div>
 
 
81
 
82
- <div role="tabpanel" id="p‑preview" hidden>
83
- <iframe id="preview" sandbox="allow-scripts allow-same-origin"></iframe>
84
- </div>
85
-
86
- <div role="tabpanel" id="p‑hist" hidden>
87
- <ul id="hist" aria-live="polite"></ul>
88
- </div>
89
- </section>
90
- </main>
91
-
92
- <script type="module" src="file=/static/index.js"></script>
93
  </body>
94
  </html>
 
1
+ <!-- static/index.htmlAnyCoder / Shasha AI -->
2
  <!DOCTYPE html>
3
  <html lang="en">
4
  <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
  <title>AnyCoder AI Code Generator</title>
8
  <meta name="description"
9
+ content="Generate, modify &amp; understand code with the most advanced AI models.">
10
+ <link rel="stylesheet" href="file=/static/style.css">
11
  </head>
12
  <body>
13
+ <header>
14
+ <h1>🚀 AnyCoder AI</h1>
15
+ <p>Your AI partner for generating, modifying &amp; understanding code.</p>
16
+ </header>
17
 
18
+ <main>
19
+ <!-- 1 · MODEL -->
20
+ <section>
21
+ <h2>1. Select Model</h2>
22
+ <select id="model" aria-label="AI Model"></select>
23
+ </section>
24
 
25
+ <!-- 2 · CONTEXT -->
26
+ <section>
27
+ <h2>2. Provide Context</h2>
28
+ <div class="tabs" role="tablist">
29
+ <button role="tab" id="tab‑prompt" aria-controls="panel‑prompt" aria-selected="true">Prompt</button>
30
+ <button role="tab" id="tab‑file" aria-controls="panel‑file" aria-selected="false">File</button>
31
+ <button role="tab" id="tab‑web" aria-controls="panel‑web" aria-selected="false">Website</button>
32
+ </div>
33
 
34
+ <div role="tabpanel" id="panel‑prompt">
35
+ <textarea id="prompt" placeholder="Describe what you want to build…"></textarea>
36
+ </div>
 
 
37
 
38
+ <div role="tabpanel" id="panelfile" hidden>
39
+ <label for="file">Reference file</label>
40
+ <input id="file" type="file" accept=".pdf,.docx,.txt">
41
+ </div>
42
 
43
+ <div role="tabpanel" id="panelweb" hidden>
44
+ <label for="url">Website URL</label>
45
+ <input id="url" type="url" placeholder="https://example.com">
46
+ </div>
47
+ </section>
48
 
49
+ <!-- 3 · OUTPUT CONFIG -->
50
+ <section>
51
+ <h2>3. Configure Output</h2>
52
+ <label for="lang">Target language</label>
53
+ <select id="lang"></select>
54
 
55
+ <div class="search">
56
+ <input id="search" type="checkbox">
57
+ <label for="search">Enable web search</label>
58
+ </div>
59
+ </section>
60
 
61
+ <!-- ACTIONS -->
62
+ <section class="actions">
63
+ <button id="clear">Clear session</button>
64
+ <button id="gen">Generate code</button>
65
+ </section>
66
 
67
+ <!-- OUTPUT -->
68
+ <section>
69
+ <h2 class="visually‑hidden">Output</h2>
70
+ <div class="tabs" role="tablist">
71
+ <button role="tab" id="tab‑code" aria-controls="panel‑code" aria-selected="true">Code</button>
72
+ <button role="tab" id="tab‑preview" aria-controls="panel‑preview" aria-selected="false">Live Preview</button>
73
+ <button role="tab" id="tab‑hist" aria-controls="panel‑hist" aria-selected="false">History</button>
74
+ </div>
75
 
76
+ <div role="tabpanel" id="panel‑code">
77
+ <pre><code id="code"></code></pre>
78
+ </div>
79
 
80
+ <div role="tabpanel" id="panel‑preview" hidden>
81
+ <iframe id="preview" sandbox="allow-scripts allow-same-origin"></iframe>
82
+ </div>
 
 
83
 
84
+ <div role="tabpanel" id="panelhist" hidden>
85
+ <ul id="hist" aria-live="polite"></ul>
86
+ </div>
87
+ </section>
88
+ </main>
89
 
90
+ <script type="module" src="file=/static/index.js"></script>
 
 
 
 
 
 
 
 
 
 
91
  </body>
92
  </html>