mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-18 04:05:58 +00:00
108 lines
3.5 KiB
HTML
108 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Test Comparison - Web Page Performance Test</title>
|
|
<link rel="icon" type="image/png" href="Logo.png">
|
|
<link rel="stylesheet" href="styles.css?v=3.0">
|
|
<style>
|
|
.comparison-container {
|
|
max-width: 1600px;
|
|
margin: 2rem auto;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
.comparison-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 2rem;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.metric-diff {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.5rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.diff-better { color: var(--color-accent-success); font-weight: bold; }
|
|
.diff-worse { color: var(--color-accent-error); font-weight: bold; }
|
|
.diff-neutral { color: var(--color-text-secondary); }
|
|
|
|
.filmstrip-row {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
overflow-x: auto;
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
.filmstrip-img {
|
|
height: 100px;
|
|
border: 1px solid var(--color-border);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<div class="logo-container">
|
|
<img src="Logo.png" alt="Logo" class="logo">
|
|
<h1>Test Comparison</h1>
|
|
</div>
|
|
<a href="/" class="btn-secondary">← Back to Dashboard</a>
|
|
</header>
|
|
|
|
<div class="comparison-container">
|
|
<div id="loading" style="text-align: center; padding: 2rem;">Loading comparison...</div>
|
|
|
|
<div id="comparison-content" style="display: none;">
|
|
<div class="comparison-grid">
|
|
<!-- Test A -->
|
|
<div class="test-column" id="col-a">
|
|
<h2 id="title-a">Test A</h2>
|
|
<div class="card">
|
|
<div id="meta-a"></div>
|
|
<div class="grade-circle" id="grade-a">
|
|
<span class="grade-letter"></span>
|
|
</div>
|
|
</div>
|
|
<div id="filmstrip-a" class="filmstrip-row"></div>
|
|
</div>
|
|
|
|
<!-- Test B -->
|
|
<div class="test-column" id="col-b">
|
|
<h2 id="title-b">Test B</h2>
|
|
<div class="card">
|
|
<div id="meta-b"></div>
|
|
<div class="grade-circle" id="grade-b">
|
|
<span class="grade-letter"></span>
|
|
</div>
|
|
</div>
|
|
<div id="filmstrip-b" class="filmstrip-row"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Metrics Diff Table -->
|
|
<div class="card" style="margin-top: 2rem;">
|
|
<h3>Metrics Comparison</h3>
|
|
<table style="width: 100%; border-collapse: collapse;">
|
|
<thead>
|
|
<tr>
|
|
<th>Metric</th>
|
|
<th>Test A</th>
|
|
<th>Test B</th>
|
|
<th>Difference</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="metrics-body"></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="compare.js"></script>
|
|
</body>
|
|
</html>
|