Skip to content

Commit 5cd41e5

Browse files
authored
Update index.html
1 parent 9aeaa7a commit 5cd41e5

1 file changed

Lines changed: 0 additions & 38 deletions

File tree

analyze/index.html

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -284,32 +284,6 @@
284284
border: 1px solid rgba(239, 68, 68, 0.3);
285285
margin: 20px 0;
286286
}
287-
288-
.summary {
289-
background: rgba(25, 25, 25, 0.8);
290-
color: #f1f1f1;
291-
padding: 24px;
292-
border-radius: 12px;
293-
margin-bottom: 24px;
294-
border: 1px solid rgba(120, 120, 120, 0.2);
295-
}
296-
297-
.summary h3 {
298-
margin-top: 0;
299-
font-size: 1.3em;
300-
color: #f1f1f1;
301-
margin-bottom: 16px;
302-
}
303-
304-
.summary p {
305-
margin: 8px 0;
306-
color: #b5b5b5;
307-
}
308-
309-
.summary strong {
310-
color: #888888;
311-
font-weight: 600;
312-
}
313287

314288
/* Modal Styles */
315289
.modal {
@@ -494,7 +468,6 @@ <h1>🏆 Codeforces Contest Analyzer</h1>
494468
<div id="error" class="error" style="display: none;"></div>
495469

496470
<div id="results" class="results" style="display: none;">
497-
<div id="summary" class="summary"></div>
498471
<div id="statsGrid" class="stats-grid"></div>
499472
<div class="chart-container">
500473
<canvas id="performanceChart"></canvas>
@@ -891,7 +864,6 @@ <h2 class="modal-title" id="modalTitle"></h2>
891864
}
892865

893866
function displayResults(username, analysis, totalSubmissions, startDate, endDate) {
894-
// Summary
895867
const totalProblemsAttempted = Object.values(analysis).reduce((sum, stats) => sum + stats.problemsAttempted, 0);
896868
const totalProblemsSolved = Object.values(analysis).reduce((sum, stats) => sum + stats.problemsSolved, 0);
897869
const overallSuccessRate = totalProblemsAttempted > 0 ? Math.round((totalProblemsSolved / totalProblemsAttempted) * 100) : 0;
@@ -906,16 +878,6 @@ <h2 class="modal-title" id="modalTitle"></h2>
906878
dateRangeText = `${startStr} - ${endStr}`;
907879
}
908880

909-
document.getElementById('summary').innerHTML = `
910-
<h3>📊 Contest Performance for ${username}</h3>
911-
<p><strong>Date Range:</strong> ${dateRangeText}</p>
912-
<p><strong>Contest Type:</strong> ${contestType}</p>
913-
<p><strong>Total Submissions:</strong> ${totalSubmissions}</p>
914-
<p><strong>Problems Attempted:</strong> ${totalProblemsAttempted}</p>
915-
<p><strong>Problems Solved:</strong> ${totalProblemsSolved}</p>
916-
<p><strong>Overall Success Rate:</strong> ${overallSuccessRate}%</p>
917-
`;
918-
919881
// Stats grid
920882
const statsGrid = document.getElementById('statsGrid');
921883
statsGrid.innerHTML = '';

0 commit comments

Comments
 (0)