-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
101 lines (95 loc) · 2.14 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Coding Challenge worker</title>
<style>
h1 {
font-size: 24px;
color: #333;
text-align: center;
margin-top: 20px;
margin-bottom: 20px;
}
h2 {
font-size: 16px;
color: #666;
text-align: center;
margin-bottom: 20px;
}
button:hover {
cursor: pointer;
}
</style>
</head>
<body style="width: 300px">
<h1>Coding Challenge Solver</h1>
<h2>(jaime la nature)</h2>
<div style="display: flex; align-items: center">
<input
id="apiKey"
type="text"
style="border: 1px solid #ccc; padding: 10px; flex-grow: 1"
placeholder="OpenAI API key"
/>
<button
id="resetApiKey"
style="
background-color: #e0e0e0;
color: black;
border: none;
padding: 10px;
margin-left: 10px;
"
>
Reset
</button>
</div>
<p id="apiKeyStatus" style="color: red"></p>
<input
id="language"
type="text"
style="border: 1px solid #ccc; padding: 10px; flex-grow: 1"
value="typescript"
/>
<div style="display: flex; align-items: center; margin-top: 10px">
<button
id="solveCoding"
style="
background-color: #4caf50;
color: white;
border: none;
padding: 10px;
margin-right: 10px;
"
>
Coding Challenge
</button>
<button
id="solveQCM"
style="
background-color: #f44336;
color: white;
border: none;
padding: 10px;
margin-right: 10px;
"
>
QCM
</button>
<button
id="solveGeneric"
style="
background-color: #2196f3;
color: white;
border: none;
padding: 10px;
"
>
Generic
</button>
</div>
<script type="module" crossorigin src="/index.js"></script>
</body>
</html>