Neurolingua
commited on
Commit
•
01917b6
1
Parent(s):
37c46bc
Update templates/teacher_eval.html
Browse files- templates/teacher_eval.html +43 -40
templates/teacher_eval.html
CHANGED
@@ -10,12 +10,11 @@
|
|
10 |
:root {
|
11 |
--primary-color: #3498db;
|
12 |
--secondary-color: #2c3e50;
|
13 |
-
--background-color: rgba(255, 255, 255, 0.9);
|
14 |
--text-color: #333;
|
15 |
--input-bg: #fff;
|
16 |
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
17 |
}
|
18 |
-
|
19 |
body {
|
20 |
font-family: 'Roboto', Arial, sans-serif;
|
21 |
line-height: 1.6;
|
@@ -25,7 +24,6 @@
|
|
25 |
position: relative;
|
26 |
background-color: var(--background-color);
|
27 |
}
|
28 |
-
|
29 |
.background-video {
|
30 |
position: fixed;
|
31 |
top: 0;
|
@@ -33,9 +31,8 @@
|
|
33 |
width: 100%;
|
34 |
height: 100%;
|
35 |
object-fit: cover;
|
36 |
-
z-index: -1;
|
37 |
}
|
38 |
-
|
39 |
.header {
|
40 |
background-color: var(--secondary-color);
|
41 |
padding: 20px 0;
|
@@ -60,40 +57,33 @@
|
|
60 |
align-items: center;
|
61 |
text-decoration: none;
|
62 |
}
|
63 |
-
|
64 |
.back-button:hover {
|
65 |
background-color: #2980b9;
|
66 |
transform: scale(1.1);
|
67 |
}
|
68 |
-
|
69 |
.back-button i {
|
70 |
transition: transform 0.3s ease;
|
71 |
}
|
72 |
-
|
73 |
.back-button:hover i {
|
74 |
transform: translateX(-5px);
|
75 |
}
|
76 |
-
|
77 |
.logo {
|
78 |
display: flex;
|
79 |
justify-content: center;
|
80 |
align-items: center;
|
81 |
margin-bottom: 10px;
|
82 |
}
|
83 |
-
|
84 |
.logo i {
|
85 |
font-size: 2.5em;
|
86 |
color: var(--primary-color);
|
87 |
margin-right: 10px;
|
88 |
}
|
89 |
-
|
90 |
h1 {
|
91 |
color: #fff;
|
92 |
font-size: 2.5em;
|
93 |
margin: 0;
|
94 |
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
|
95 |
}
|
96 |
-
|
97 |
.container {
|
98 |
max-width: 800px;
|
99 |
margin: 40px auto;
|
@@ -104,18 +94,15 @@
|
|
104 |
position: relative;
|
105 |
z-index: 1;
|
106 |
}
|
107 |
-
|
108 |
form {
|
109 |
display: grid;
|
110 |
gap: 20px;
|
111 |
}
|
112 |
-
|
113 |
label {
|
114 |
font-weight: 500;
|
115 |
margin-bottom: 5px;
|
116 |
color: var(--secondary-color);
|
117 |
}
|
118 |
-
|
119 |
select, input[type="text"], textarea {
|
120 |
width: 100%;
|
121 |
padding: 12px;
|
@@ -125,13 +112,11 @@
|
|
125 |
font-size: 16px;
|
126 |
transition: border-color 0.3s, box-shadow 0.3s;
|
127 |
}
|
128 |
-
|
129 |
select:focus, input[type="text"]:focus, textarea:focus {
|
130 |
outline: none;
|
131 |
border-color: var(--primary-color);
|
132 |
box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
|
133 |
}
|
134 |
-
|
135 |
input[type="submit"] {
|
136 |
background-color: var(--primary-color);
|
137 |
color: #fff;
|
@@ -143,12 +128,10 @@
|
|
143 |
font-weight: 500;
|
144 |
transition: background-color 0.3s, transform 0.1s;
|
145 |
}
|
146 |
-
|
147 |
input[type="submit"]:hover {
|
148 |
background-color: #2980b9;
|
149 |
transform: translateY(-2px);
|
150 |
}
|
151 |
-
|
152 |
.input-section {
|
153 |
display: none;
|
154 |
background-color: rgba(249, 249, 249, 0.8);
|
@@ -156,40 +139,32 @@
|
|
156 |
border-radius: 4px;
|
157 |
border: 1px solid #e0e0e0;
|
158 |
}
|
159 |
-
|
160 |
#max-marks-section {
|
161 |
margin-top: 20px;
|
162 |
}
|
163 |
-
|
164 |
.icon-input {
|
165 |
display: flex;
|
166 |
align-items: center;
|
167 |
position: relative;
|
168 |
}
|
169 |
-
|
170 |
.icon-input i {
|
171 |
margin-right: 10px;
|
172 |
color: var(--secondary-color);
|
173 |
}
|
174 |
-
|
175 |
.icon-input input, .icon-input select, .icon-input textarea {
|
176 |
flex: 1;
|
177 |
}
|
178 |
-
|
179 |
.input-section .icon-input {
|
180 |
margin-bottom: 20px;
|
181 |
}
|
182 |
-
|
183 |
.input-section label {
|
184 |
display: block;
|
185 |
margin-bottom: 5px;
|
186 |
font-weight: bold;
|
187 |
}
|
188 |
-
|
189 |
.input-section input[type="file"] {
|
190 |
height: 40px;
|
191 |
}
|
192 |
-
|
193 |
input[type="file"] {
|
194 |
border: 1px solid #ddd;
|
195 |
border-radius: 4px;
|
@@ -198,12 +173,10 @@
|
|
198 |
width: 100%;
|
199 |
box-sizing: border-box;
|
200 |
}
|
201 |
-
|
202 |
input[type="file"]::-webkit-file-upload-button {
|
203 |
visibility: hidden;
|
204 |
width: 0;
|
205 |
}
|
206 |
-
|
207 |
input[type="file"]::before {
|
208 |
content: 'Choose file';
|
209 |
display: inline-block;
|
@@ -217,12 +190,9 @@
|
|
217 |
font-weight: 700;
|
218 |
font-size: 10pt;
|
219 |
}
|
220 |
-
|
221 |
input[type="file"]:hover::before {
|
222 |
background-color: #2980b9;
|
223 |
}
|
224 |
-
|
225 |
-
/* Styles for the drive link button and text */
|
226 |
.drive-link-container {
|
227 |
position: fixed;
|
228 |
top: 20px;
|
@@ -234,14 +204,12 @@
|
|
234 |
border-radius: 8px;
|
235 |
box-shadow: var(--shadow);
|
236 |
}
|
237 |
-
|
238 |
.drive-link-container p {
|
239 |
margin: 0;
|
240 |
color: var(--secondary-color);
|
241 |
font-weight: 500;
|
242 |
font-size: 14px;
|
243 |
}
|
244 |
-
|
245 |
.drive-link-button {
|
246 |
display: inline-block;
|
247 |
background-color: var(--primary-color);
|
@@ -254,20 +222,47 @@
|
|
254 |
font-size: 14px;
|
255 |
transition: background-color 0.3s ease;
|
256 |
}
|
257 |
-
|
258 |
.drive-link-button:hover {
|
259 |
background-color: #2980b9;
|
260 |
}
|
261 |
-
|
262 |
@media (max-width: 600px) {
|
263 |
.container {
|
264 |
padding: 20px;
|
265 |
}
|
266 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
</style>
|
268 |
</head>
|
269 |
<body>
|
270 |
-
<!-- Background Video -->
|
271 |
<video class="background-video" autoplay loop muted playsinline>
|
272 |
<source src="../static/Eval.mp4" type="video/mp4">
|
273 |
<source src="../static/Eval.webm" type="video/webm">
|
@@ -282,15 +277,20 @@
|
|
282 |
</header>
|
283 |
<a href="teacher" class="back-button" title="Back to Home">
|
284 |
<i class="fas fa-arrow-left"></i>
|
285 |
-
|
286 |
|
287 |
<div class="drive-link-container">
|
288 |
<p>We have used the following documents in the demo video, which are given in the drive link. You can use your own docs also.</p>
|
289 |
<a href="https://drive.google.com/drive/folders/10NI8gwA16V1wc57a8I4AtRcXU0NG4hzD?usp=drive_link" class="drive-link-button" target="_blank">Sample documents</a>
|
290 |
</div>
|
291 |
|
|
|
|
|
|
|
|
|
|
|
292 |
<div class="container">
|
293 |
-
<form action="/eval" method="post" enctype="multipart/form-data">
|
294 |
<div class="icon-input">
|
295 |
<i class="fas fa-clipboard-list"></i>
|
296 |
<select name="input_type" id="input_type" onchange="showInputForm()">
|
@@ -341,7 +341,10 @@
|
|
341 |
document.getElementById('file-input').style.display = inputType === 'file' ? 'block' : 'none';
|
342 |
document.getElementById('text-input').style.display = inputType === 'text' ? 'block' : 'none';
|
343 |
}
|
|
|
|
|
|
|
|
|
344 |
</script>
|
345 |
</body>
|
346 |
</html>
|
347 |
-
|
|
|
10 |
:root {
|
11 |
--primary-color: #3498db;
|
12 |
--secondary-color: #2c3e50;
|
13 |
+
--background-color: rgba(255, 255, 255, 0.9);
|
14 |
--text-color: #333;
|
15 |
--input-bg: #fff;
|
16 |
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
17 |
}
|
|
|
18 |
body {
|
19 |
font-family: 'Roboto', Arial, sans-serif;
|
20 |
line-height: 1.6;
|
|
|
24 |
position: relative;
|
25 |
background-color: var(--background-color);
|
26 |
}
|
|
|
27 |
.background-video {
|
28 |
position: fixed;
|
29 |
top: 0;
|
|
|
31 |
width: 100%;
|
32 |
height: 100%;
|
33 |
object-fit: cover;
|
34 |
+
z-index: -1;
|
35 |
}
|
|
|
36 |
.header {
|
37 |
background-color: var(--secondary-color);
|
38 |
padding: 20px 0;
|
|
|
57 |
align-items: center;
|
58 |
text-decoration: none;
|
59 |
}
|
|
|
60 |
.back-button:hover {
|
61 |
background-color: #2980b9;
|
62 |
transform: scale(1.1);
|
63 |
}
|
|
|
64 |
.back-button i {
|
65 |
transition: transform 0.3s ease;
|
66 |
}
|
|
|
67 |
.back-button:hover i {
|
68 |
transform: translateX(-5px);
|
69 |
}
|
|
|
70 |
.logo {
|
71 |
display: flex;
|
72 |
justify-content: center;
|
73 |
align-items: center;
|
74 |
margin-bottom: 10px;
|
75 |
}
|
|
|
76 |
.logo i {
|
77 |
font-size: 2.5em;
|
78 |
color: var(--primary-color);
|
79 |
margin-right: 10px;
|
80 |
}
|
|
|
81 |
h1 {
|
82 |
color: #fff;
|
83 |
font-size: 2.5em;
|
84 |
margin: 0;
|
85 |
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
|
86 |
}
|
|
|
87 |
.container {
|
88 |
max-width: 800px;
|
89 |
margin: 40px auto;
|
|
|
94 |
position: relative;
|
95 |
z-index: 1;
|
96 |
}
|
|
|
97 |
form {
|
98 |
display: grid;
|
99 |
gap: 20px;
|
100 |
}
|
|
|
101 |
label {
|
102 |
font-weight: 500;
|
103 |
margin-bottom: 5px;
|
104 |
color: var(--secondary-color);
|
105 |
}
|
|
|
106 |
select, input[type="text"], textarea {
|
107 |
width: 100%;
|
108 |
padding: 12px;
|
|
|
112 |
font-size: 16px;
|
113 |
transition: border-color 0.3s, box-shadow 0.3s;
|
114 |
}
|
|
|
115 |
select:focus, input[type="text"]:focus, textarea:focus {
|
116 |
outline: none;
|
117 |
border-color: var(--primary-color);
|
118 |
box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
|
119 |
}
|
|
|
120 |
input[type="submit"] {
|
121 |
background-color: var(--primary-color);
|
122 |
color: #fff;
|
|
|
128 |
font-weight: 500;
|
129 |
transition: background-color 0.3s, transform 0.1s;
|
130 |
}
|
|
|
131 |
input[type="submit"]:hover {
|
132 |
background-color: #2980b9;
|
133 |
transform: translateY(-2px);
|
134 |
}
|
|
|
135 |
.input-section {
|
136 |
display: none;
|
137 |
background-color: rgba(249, 249, 249, 0.8);
|
|
|
139 |
border-radius: 4px;
|
140 |
border: 1px solid #e0e0e0;
|
141 |
}
|
|
|
142 |
#max-marks-section {
|
143 |
margin-top: 20px;
|
144 |
}
|
|
|
145 |
.icon-input {
|
146 |
display: flex;
|
147 |
align-items: center;
|
148 |
position: relative;
|
149 |
}
|
|
|
150 |
.icon-input i {
|
151 |
margin-right: 10px;
|
152 |
color: var(--secondary-color);
|
153 |
}
|
|
|
154 |
.icon-input input, .icon-input select, .icon-input textarea {
|
155 |
flex: 1;
|
156 |
}
|
|
|
157 |
.input-section .icon-input {
|
158 |
margin-bottom: 20px;
|
159 |
}
|
|
|
160 |
.input-section label {
|
161 |
display: block;
|
162 |
margin-bottom: 5px;
|
163 |
font-weight: bold;
|
164 |
}
|
|
|
165 |
.input-section input[type="file"] {
|
166 |
height: 40px;
|
167 |
}
|
|
|
168 |
input[type="file"] {
|
169 |
border: 1px solid #ddd;
|
170 |
border-radius: 4px;
|
|
|
173 |
width: 100%;
|
174 |
box-sizing: border-box;
|
175 |
}
|
|
|
176 |
input[type="file"]::-webkit-file-upload-button {
|
177 |
visibility: hidden;
|
178 |
width: 0;
|
179 |
}
|
|
|
180 |
input[type="file"]::before {
|
181 |
content: 'Choose file';
|
182 |
display: inline-block;
|
|
|
190 |
font-weight: 700;
|
191 |
font-size: 10pt;
|
192 |
}
|
|
|
193 |
input[type="file"]:hover::before {
|
194 |
background-color: #2980b9;
|
195 |
}
|
|
|
|
|
196 |
.drive-link-container {
|
197 |
position: fixed;
|
198 |
top: 20px;
|
|
|
204 |
border-radius: 8px;
|
205 |
box-shadow: var(--shadow);
|
206 |
}
|
|
|
207 |
.drive-link-container p {
|
208 |
margin: 0;
|
209 |
color: var(--secondary-color);
|
210 |
font-weight: 500;
|
211 |
font-size: 14px;
|
212 |
}
|
|
|
213 |
.drive-link-button {
|
214 |
display: inline-block;
|
215 |
background-color: var(--primary-color);
|
|
|
222 |
font-size: 14px;
|
223 |
transition: background-color 0.3s ease;
|
224 |
}
|
|
|
225 |
.drive-link-button:hover {
|
226 |
background-color: #2980b9;
|
227 |
}
|
|
|
228 |
@media (max-width: 600px) {
|
229 |
.container {
|
230 |
padding: 20px;
|
231 |
}
|
232 |
}
|
233 |
+
#loading-overlay {
|
234 |
+
display: none;
|
235 |
+
position: fixed;
|
236 |
+
top: 0;
|
237 |
+
left: 0;
|
238 |
+
width: 100%;
|
239 |
+
height: 100%;
|
240 |
+
background-color: rgba(0, 0, 0, 0.5);
|
241 |
+
z-index: 9999;
|
242 |
+
justify-content: center;
|
243 |
+
align-items: center;
|
244 |
+
flex-direction: column;
|
245 |
+
}
|
246 |
+
.spinner {
|
247 |
+
border: 5px solid #f3f3f3;
|
248 |
+
border-top: 5px solid var(--primary-color);
|
249 |
+
border-radius: 50%;
|
250 |
+
width: 50px;
|
251 |
+
height: 50px;
|
252 |
+
animation: spin 1s linear infinite;
|
253 |
+
}
|
254 |
+
.loading-text {
|
255 |
+
color: #fff;
|
256 |
+
font-size: 18px;
|
257 |
+
margin-top: 20px;
|
258 |
+
}
|
259 |
+
@keyframes spin {
|
260 |
+
0% { transform: rotate(0deg); }
|
261 |
+
100% { transform: rotate(360deg); }
|
262 |
+
}
|
263 |
</style>
|
264 |
</head>
|
265 |
<body>
|
|
|
266 |
<video class="background-video" autoplay loop muted playsinline>
|
267 |
<source src="../static/Eval.mp4" type="video/mp4">
|
268 |
<source src="../static/Eval.webm" type="video/webm">
|
|
|
277 |
</header>
|
278 |
<a href="teacher" class="back-button" title="Back to Home">
|
279 |
<i class="fas fa-arrow-left"></i>
|
280 |
+
</a>
|
281 |
|
282 |
<div class="drive-link-container">
|
283 |
<p>We have used the following documents in the demo video, which are given in the drive link. You can use your own docs also.</p>
|
284 |
<a href="https://drive.google.com/drive/folders/10NI8gwA16V1wc57a8I4AtRcXU0NG4hzD?usp=drive_link" class="drive-link-button" target="_blank">Sample documents</a>
|
285 |
</div>
|
286 |
|
287 |
+
<div id="loading-overlay">
|
288 |
+
<div class="spinner"></div>
|
289 |
+
<p class="loading-text">Evaluating answers...</p>
|
290 |
+
</div>
|
291 |
+
|
292 |
<div class="container">
|
293 |
+
<form action="/eval" method="post" enctype="multipart/form-data" onsubmit="showLoading()">
|
294 |
<div class="icon-input">
|
295 |
<i class="fas fa-clipboard-list"></i>
|
296 |
<select name="input_type" id="input_type" onchange="showInputForm()">
|
|
|
341 |
document.getElementById('file-input').style.display = inputType === 'file' ? 'block' : 'none';
|
342 |
document.getElementById('text-input').style.display = inputType === 'text' ? 'block' : 'none';
|
343 |
}
|
344 |
+
|
345 |
+
function showLoading() {
|
346 |
+
document.getElementById('loading-overlay').style.display = 'flex';
|
347 |
+
}
|
348 |
</script>
|
349 |
</body>
|
350 |
</html>
|
|