<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport"…
- User
/* Analytics Cards Grid Layout */ .analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; } .metric-card { background: var(--panel); padding: 20px; border-radius: 8px; border: 1px solid var(--border); text-align: center; } .metric-card h3 { margin: 0 0 8px 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.7; } .metric-card p { margin: 0; font-size: 28px; font-weight: 800; } .card-blue { border-top: 4px solid var(--primary); } .card-green { border-top: 4px solid var(--success); } .card-red { border-top: 4px solid var(--danger); } .card-gold { border-top: 4px solid var(--warning); } </style><div id="setup-screen" class="screen"> <div style="display: flex; justify-content: space-between; align-items: center;"> <h2>JEE CBT Practice Terminal</h2> <button id="theme-toggle-btn" class="btn">Toggle Dark Theme</button> </div> <hr style="border: 0; height: 1px; background: var(--border);"> <h3>Launch New Examination</h3> <p>Select your configured test structure JSON answer key mapping file:</p> <input type="file" id="test-file-input" accept=".json" style="padding: 10px; background: var(--panel); border: 1px dashed var(--border); width: 100%; max-width: 400px; border-radius: 6px;"> <hr style="border: 0; height: 1px; background: var(--border); margin-top:25px;"> <h3>Historical Test Registry</h3> <table id="history-table"> <thead> <tr><th>Date</th><th>Exam Name</th><th>Net Score</th><th>Metrics</th><th>Action</th></tr> </thead> <tbody></tbody> </table> </div> <div id="exam-screen" class="screen hidden"> <div style="display:flex; justify-content:space-between; align-items:center;"> <h3 id="test-title-nav">Loading Test Profile...</h3> <div id="global-timer" style="font-weight:bold; color:var(--danger); font-size:18px; font-family:monospace;">Remaining Time: 00:00:00</div> </div> <div id="subject-tabs-container" style="margin-top:10px;"></div> <div class="flex"> <div class="main-panel"> <div id="section-instruction-text" style="font-style:italic; opacity: 0.8; margin-bottom:15px; padding:12px; background: rgba(0,115,230,0.05); border-left:4px solid var(--primary); border-radius:0 4px 4px 0;"></div> <h4 id="current-q-label" style="margin: 0 0 5px 0;">Question</h4> <div id="current-q-marking" style="color: var(--success); font-size: 14px; margin-bottom: 15px; font-weight: 600;"></div> <div id="question-render-area" style="font-size:18px; line-height:1.6; margin-bottom:20px;"></div> <hr style="border:0; height:1px; background:var(--border);"> <div id="answer-input-zone"></div> <hr style="border:0; height:1px; background:var(--border); margin-top:25px;"> <div style="display:flex; justify-content: space-between;"> <button id="btn-prev" class="btn" style="background:#555;">← Previous</button> <div> <button id="btn-clear-response" class="btn" style="background:#888;">Clear Response</button> <button id="btn-mark-review" class="btn" style="background:var(--warning); color:black;">Mark for Review & Next</button> </div> <button id="btn-next" class="btn">Next →</button> </div> </div> <div class="side-panel"> <h4>Time Elapsed: <span id="panel-timer" style="font-family:monospace;">00:00:00</span></h4> <hr style="border:0; height:1px; background:var(--border);"> <h5>Question Palette</h5> <div id="palette-grid-container"></div> <hr style="border:0; height:1px; background:var(--border); margin-top:25px;"> <button id="btn-submit-exam" class="btn" style="background:var(--danger); width:100%; font-size:16px; padding:14px;">Submit Examination</button> </div> </div> </div> <div id="analysis-screen" class="screen hidden"> <div style="display: flex; justify-content: space-between; align-items: center;"> <h2>Diagnostic Performance Dashboard</h2> <button id="btn-close-analysis" class="btn">Return to Terminal Hub</button> </div> <h4 id="analysis-test-name" style="margin: 0; opacity:0.6;">Test Summary</h4> <div class="analytics-grid"> <div class="metric-card card-blue"> <h3>Net Aggregate Score</h3> <p id="analysis-net-score" style="color: var(--primary);">0</p> </div> <div class="metric-card card-green"> <h3>Positive Marks</h3> <p id="analysis-pos-score" style="color: var(--success);">0</p> </div> <div class="metric-card card-red"> <h3>Negative Penalty</h3> <p id="analysis-neg-score" style="color: var(--danger);">0</p> </div> <div class="metric-card card-gold"> <h3>Accuracy Rating</h3> <p id="analysis-accuracy">0%</p> </div> </div> <h3>Subject Performance Breakdown</h3> <table> <thead> <tr><th>Subject Identifier</th><th>Net Score Obtained</th><th>Correct Items</th><th>Incorrect Penalty</th><th>Unattempted</th></tr> </thead> <tbody id="analysis-subject-tbody"></tbody> </table> <h3>Time Allocation Efficiency Insights</h3> <div class="analytics-grid"> <div class="metric-card card-blue"> <h3>Avg Time / Correct Q</h3> <p id="time-metric-correct" style="font-size:22px;">0s</p> </div> <div class="metric-card card-red"> <h3>Avg Time / Incorrect Q</h3> <p id="time-metric-incorrect" style="font-size:22px;">0s</p> </div> <div class="metric-card card-gold"> <h3>Total Time Consumed</h3> <p id="time-metric-total" style="font-size:22px;">0s</p> </div> </div> <h3>Itemized Question-by-Question Diagnostics</h3> <table> <thead> <tr><th>Q.No</th><th>Subject</th><th>Your Response</th><th>Correct Key</th><th>Verdict Outcome</th><th>Time Spent</th></tr> </thead> <tbody id="analysis-questions-tbody"></tbody> </table> </div> <div id="modal-overlay" class="hidden" style="position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); display:flex; justify-content:center; align-items:center; z-index:9999;"> <div style="background:var(--panel); padding:25px; border-radius:8px; max-width:400px; text-align:center; box-shadow:0 10px 25px rgba(0,0,0,0.2);"> <h3 id="modal-title" style="margin-top:0;">Confirmation</h3> <p id="modal-body">Are you sure you want to proceed?</p> <button id="modal-confirm-btn" class="btn" style="background:var(--success);">Confirm</button> <button id="modal-cancel-btn" class="btn" style="background:#777;">Cancel</button> </div> </div> <script> let currentTestConfig = null; let activeResponses = {}; let questionTimeTracking = {}; let currentQuestionIndex = 0; let currentSubjectFilter = null; let examTimerInstance = null; let timeSpentTrackerTimer = null; const STORAGE_KEYS = { HISTORY: 'JEE_ENGINE_HISTORICAL_REGISTRY', ACTIVE_SESSION: 'JEE_ENGINE_CRASH_RECOVERY_CACHE' }; function executeEvaluationPipeline() { clearInterval(examTimerInstance); clearInterval(timeSpentTrackerTimer); let record = { testId: currentTestConfig.testId, testName: currentTestConfig.testName, date: new Date().toLocaleDateString(), totalPositive: 0, totalNegative: 0, netScore: 0, correctCount: 0, incorrectCount: 0, unattemptedCount: 0, totalTime: 0, timeCorrectSum: 0, timeIncorrectSum: 0, subjectMetrics: {}, questionsDetails: [] }; currentTestConfig.questions.forEach((q, idx) => { const state = activeResponses[idx] || { choices: null, status: "UNVISITED" }; const timeSpent = questionTimeTracking[idx] || 0; record.totalTime += timeSpent; let isAttempted = state.choices !== null; let score = 0; let verdict = "UNATTEMPTED"; if (!record.subjectMetrics[q.subject]) { record.subjectMetrics[q.subject] = { score: 0, correct: 0, incorrect: 0, unattempted: 0, total: 0 }; } record.subjectMetrics[q.subject].total++; if (!isAttempted) { record.unattemptedCount++; record.subjectMetrics[q.subject].unattempted++; } else { const isCorrect = evaluateAnswer(q, state.choices); if (isCorrect) { score = q.marking.positive; verdict = "CORRECT"; record.correctCount++; record.timeCorrectSum += timeSpent; record.subjectMetrics[q.subject].correct++; } else { score = -q.marking.negative; verdict = "INCORRECT"; record.incorrectCount++; record.timeIncorrectSum += timeSpent; record.subjectMetrics[q.subject].incorrect++; } } if (score > 0) record.totalPositive += score; else record.totalNegative += Math.abs(score); record.subjectMetrics[q.subject].score += score; record.questionsDetails.push({ qIdx: idx, subject: q.subject, userChoices: state.choices, correctAnswer: q.correctAnswer, verdict: verdict, score: score, timeSpent: timeSpent }); }); record.netScore = record.totalPositive - record.totalNegative; let history = JSON.parse(localStorage.getItem(STORAGE_KEYS.HISTORY)) || []; history = history.filter(h => h.testId !== record.testId); history.push(record); localStorage.setItem(STORAGE_KEYS.HISTORY, JSON.stringify(history)); renderDiagnosticAnalysisScreen(record); } function evaluateAnswer(q, ans) { if (!ans) return false; if (Array.isArray(q.correctAnswer)) { const userArr = Array.isArray(ans) ? ans : [ans]; return q.correctAnswer.length === userArr.length && userArr.every(v => q.correctAnswer.includes(v)); } return String(ans).trim().toLowerCase() === String(q.correctAnswer).trim().toLowerCase(); } const DOM = { setupScreen: document.getElementById('setup-screen'), examScreen: document.getElementById('exam-screen'), analysisScreen: document.getElementById('analysis-screen'), testFileInput: document.getElementById('test-file-input'), navTestTitle: document.getElementById('test-title-nav'), globalTimer: document.getElementById('global-timer'), panelTimer: document.getElementById('panel-timer'), subjectTabsContainer: document.getElementById('subject-tabs-container'), sectionInstructionText: document.getElementById('section-instruction-text'), currentQLabel: document.getElementById('current-q-label'), currentQMarking: document.getElementById('current-q-marking'), questionRenderArea: document.getElementById('question-render-area'), answerInputZone: document.getElementById('answer-input-zone'), paletteGridContainer: document.getElementById('palette-grid-container'), historyTableBody: document.querySelector('#history-table tbody'), btnMarkReview: document.getElementById('btn-mark-review'), btnClearResponse: document.getElementById('btn-clear-response'), btnPrev: document.getElementById('btn-prev'), btnNext: document.getElementById('btn-next'), btnSubmitExam: document.getElementById('btn-submit-exam'), btnCloseAnalysis: document.getElementById('btn-close-analysis'), btnThemeToggle: document.getElementById('theme-toggle-btn'), modalOverlay: document.getElementById('modal-overlay'), modalTitle: document.getElementById('modal-title'), modalBody: document.getElementById('modal-body'), modalConfirmBtn: document.getElementById('modal-confirm-btn'), modalCancelBtn: document.getElementById('modal-cancel-btn') }; document.addEventListener("DOMContentLoaded", () => { if(DOM.testFileInput) DOM.testFileInput.addEventListener('change', handleUpload); DOM.btnThemeToggle.addEventListener('click', () => document.body.classList.toggle('dark-theme')); DOM.btnCloseAnalysis.addEventListener('click', () => { showScreen(DOM.setupScreen); renderGlobalDashboard(); }); DOM.btnNext.addEventListener('click', () => moveStep(1)); DOM.btnPrev.addEventListener('click', () => moveStep(-1)); DOM.btnClearResponse.addEventListener('click', clearResponse); DOM.btnMarkReview.addEventListener('click', flagReview); DOM.btnSubmitExam.addEventListener('click', confirmSubmission); renderGlobalDashboard(); }); function showScreen(target) { [DOM.setupScreen, DOM.examScreen, DOM.analysisScreen].forEach(s => s.classList.add('hidden')); target.classList.remove('hidden'); } function handleUpload(e) { const file = e.target.files[0]; if (!file) return; const reader = new FileReader(); reader.onload = function(evt) { try { bootstrapExam(JSON.parse(evt.target.result)); } catch (err) { alert("Invalid JSON formulation key config."); } }; reader.readAsText(file); } function bootstrapExam(config) { currentTestConfig = config; DOM.navTestTitle.textContent = config.testName; activeResponses = {}; questionTimeTracking = {}; currentTestConfig.timeRemaining = config.durationMinutes * 60; currentQuestionIndex = 0; currentTestConfig.questions.forEach((_, idx) => { activeResponses[idx] = { status: "UNVISITED", choices: null }; questionTimeTracking[idx] = 0; }); currentSubjectFilter = currentTestConfig.questions[0].subject; buildTabs(); showScreen(DOM.examScreen); jumpTo(0); clearInterval(examTimerInstance); examTimerInstance = setInterval(() => { if (currentTestConfig.timeRemaining <= 0) { executeEvaluationPipeline(); } else { currentTestConfig.timeRemaining--; updateTimers(); } }, 1000); clearInterval(timeSpentTrackerTimer); timeSpentTrackerTimer = setInterval(() => { questionTimeTracking[currentQuestionIndex]++; }, 1000); } function updateTimers() { const hrs = String(Math.floor(currentTestConfig.timeRemaining / 3600)).padStart(2, '0'); const mins = String(Math.floor((currentTestConfig.timeRemaining % 3600) / 60)).padStart(2, '0'); const secs = String(currentTestConfig.timeRemaining % 60).padStart(2, '0'); DOM.globalTimer.textContent = `Remaining Time: ${hrs}:${mins}:${secs}`; DOM.panelTimer.textContent = `${hrs}:${mins}:${secs}`; } function buildTabs() { DOM.subjectTabsContainer.innerHTML = ''; const subs = [...new Set(currentTestConfig.questions.map(q => q.subject))]; subs.forEach(sub => { const tab = document.createElement('div'); tab.className = `sub-tab ${sub === currentSubjectFilter ? 'active' : ''}`; tab.textContent = sub.toUpperCase(); tab.addEventListener('click', () => { currentSubjectFilter = sub; buildTabs(); jumpTo(currentTestConfig.questions.findIndex(q => q.subject === sub)); }); DOM.subjectTabsContainer.appendChild(tab); }); } function jumpTo(idx) { if (activeResponses[currentQuestionIndex].status === "UNVISITED") activeResponses[currentQuestionIndex].status = "UNANSWERED"; currentQuestionIndex = idx; currentSubjectFilter = currentTestConfig.questions[idx].subject; renderWorkspace(); renderPalette(); } function renderWorkspace() { const qData = currentTestConfig.questions[currentQuestionIndex]; DOM.currentQLabel.textContent = `Question ${currentQuestionIndex + 1} (${qData.type})`; DOM.currentQMarking.textContent = `Marks: +${qData.marking.positive}, -${qData.marking.negative}`; DOM.sectionInstructionText.textContent = qData.sectionInstruct Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.