File size: 11,500 Bytes
22555d5 01917b6 22555d5 01917b6 22555d5 01917b6 22555d5 01917b6 22555d5 01917b6 22555d5 01917b6 22555d5 01917b6 22555d5 |
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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Exam Evaluation System</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css">
<style>
:root {
--primary-color: #3498db;
--secondary-color: #2c3e50;
--background-color: rgba(255, 255, 255, 0.9);
--text-color: #333;
--input-bg: #fff;
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
body {
font-family: 'Roboto', Arial, sans-serif;
line-height: 1.6;
color: var(--text-color);
margin: 0;
padding: 0;
position: relative;
background-color: var(--background-color);
}
.background-video {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
}
.header {
background-color: var(--secondary-color);
padding: 20px 0;
text-align: center;
}
.back-button {
position: fixed;
top: 20px;
left: 20px;
background-color: #3498db;
color: white;
border: none;
border-radius: 50%;
width: 50px;
height: 50px;
font-size: 24px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
display: flex;
justify-content: center;
align-items: center;
text-decoration: none;
}
.back-button:hover {
background-color: #2980b9;
transform: scale(1.1);
}
.back-button i {
transition: transform 0.3s ease;
}
.back-button:hover i {
transform: translateX(-5px);
}
.logo {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 10px;
}
.logo i {
font-size: 2.5em;
color: var(--primary-color);
margin-right: 10px;
}
h1 {
color: #fff;
font-size: 2.5em;
margin: 0;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.container {
max-width: 800px;
margin: 40px auto;
padding: 30px;
background-color: var(--background-color);
border-radius: 8px;
box-shadow: var(--shadow);
position: relative;
z-index: 1;
}
form {
display: grid;
gap: 20px;
}
label {
font-weight: 500;
margin-bottom: 5px;
color: var(--secondary-color);
}
select, input[type="text"], textarea {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 4px;
box-sizing: border-box;
font-size: 16px;
transition: border-color 0.3s, box-shadow 0.3s;
}
select:focus, input[type="text"]:focus, textarea:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
input[type="submit"] {
background-color: var(--primary-color);
color: #fff;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 18px;
font-weight: 500;
transition: background-color 0.3s, transform 0.1s;
}
input[type="submit"]:hover {
background-color: #2980b9;
transform: translateY(-2px);
}
.input-section {
display: none;
background-color: rgba(249, 249, 249, 0.8);
padding: 20px;
border-radius: 4px;
border: 1px solid #e0e0e0;
}
#max-marks-section {
margin-top: 20px;
}
.icon-input {
display: flex;
align-items: center;
position: relative;
}
.icon-input i {
margin-right: 10px;
color: var(--secondary-color);
}
.icon-input input, .icon-input select, .icon-input textarea {
flex: 1;
}
.input-section .icon-input {
margin-bottom: 20px;
}
.input-section label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.input-section input[type="file"] {
height: 40px;
}
input[type="file"] {
border: 1px solid #ddd;
border-radius: 4px;
padding: 8px 12px;
font-size: 14px;
width: 100%;
box-sizing: border-box;
}
input[type="file"]::-webkit-file-upload-button {
visibility: hidden;
width: 0;
}
input[type="file"]::before {
content: 'Choose file';
display: inline-block;
background: var(--primary-color);
color: #fff;
border-radius: 3px;
padding: 5px 8px;
outline: none;
white-space: nowrap;
cursor: pointer;
font-weight: 700;
font-size: 10pt;
}
input[type="file"]:hover::before {
background-color: #2980b9;
}
.drive-link-container {
position: fixed;
top: 20px;
right: 20px;
text-align: right;
z-index: 2;
background-color: rgba(255, 255, 255, 0.8);
padding: 10px;
border-radius: 8px;
box-shadow: var(--shadow);
}
.drive-link-container p {
margin: 0;
color: var(--secondary-color);
font-weight: 500;
font-size: 14px;
}
.drive-link-button {
display: inline-block;
background-color: var(--primary-color);
color: #fff;
padding: 8px 12px;
margin-top: 5px;
border-radius: 4px;
text-decoration: none;
font-weight: 600;
font-size: 14px;
transition: background-color 0.3s ease;
}
.drive-link-button:hover {
background-color: #2980b9;
}
@media (max-width: 600px) {
.container {
padding: 20px;
}
}
#loading-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 9999;
justify-content: center;
align-items: center;
flex-direction: column;
}
.spinner {
border: 5px solid #f3f3f3;
border-top: 5px solid var(--primary-color);
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
}
.loading-text {
color: #fff;
font-size: 18px;
margin-top: 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<video class="background-video" autoplay loop muted playsinline>
<source src="../static/Eval.mp4" type="video/mp4">
<source src="../static/Eval.webm" type="video/webm">
Your browser does not support the video tag.
</video>
<header class="header">
<div class="logo">
<i class="fas fa-graduation-cap"></i>
<h1>AI Grading System</h1>
</div>
</header>
<a href="teacher" class="back-button" title="Back to Home">
<i class="fas fa-arrow-left"></i>
</a>
<div class="drive-link-container">
<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>
<a href="https://drive.google.com/drive/folders/10NI8gwA16V1wc57a8I4AtRcXU0NG4hzD?usp=drive_link" class="drive-link-button" target="_blank">Sample documents</a>
</div>
<div id="loading-overlay">
<div class="spinner"></div>
<p class="loading-text">Evaluating answers...</p>
</div>
<div class="container">
<form action="/eval" method="post" enctype="multipart/form-data" onsubmit="showLoading()">
<div class="icon-input">
<i class="fas fa-clipboard-list"></i>
<select name="input_type" id="input_type" onchange="showInputForm()">
<option value="">-- Select an option --</option>
<option value="file">File Upload</option>
<option value="text">Text Input</option>
</select>
</div>
<div id="file-input" class="input-section">
<div class="icon-input">
<i class="fas fa-file-alt"></i>
<label for="question_file">Question Paper:</label>
<input type="file" name="question_file" id="question_file" accept=".pdf,.jpeg,.jpg,.png">
</div>
<div class="icon-input">
<i class="fas fa-file-signature"></i>
<label for="answer_file">Answer Paper:</label>
<input type="file" name="answer_file" id="answer_file" accept=".pdf,.jpeg,.jpg,.png">
</div>
</div>
<div id="text-input" class="input-section">
<div class="icon-input">
<i class="fas fa-question"></i>
<textarea name="question_text" id="question_text" rows="6" placeholder="Enter your questions here..."></textarea>
</div>
<div class="icon-input">
<i class="fas fa-pencil-alt"></i>
<textarea name="answer_text" id="answer_text" rows="6" placeholder="Enter your answers here..."></textarea>
</div>
</div>
<div id="max-marks-section" class="icon-input">
<i class="fas fa-star"></i>
<input type="text" name="max_marks" id="max_marks" placeholder="Enter maximum marks" required>
</div>
<input type="submit" value="Submit and Evaluate">
</form>
</div>
<script>
function showInputForm() {
const inputType = document.getElementById('input_type').value;
document.getElementById('file-input').style.display = inputType === 'file' ? 'block' : 'none';
document.getElementById('text-input').style.display = inputType === 'text' ? 'block' : 'none';
}
function showLoading() {
document.getElementById('loading-overlay').style.display = 'flex';
}
</script>
</body>
</html>
|