Update index.html
Browse files- index.html +5 -3
index.html
CHANGED
|
@@ -172,7 +172,7 @@
|
|
| 172 |
<script>
|
| 173 |
// 1. Build each card from the row
|
| 174 |
function createCard(data, idx) {
|
| 175 |
-
const side =
|
| 176 |
const stamp = data.status.toLowerCase();
|
| 177 |
return `
|
| 178 |
<div class="timeline-card ${side}" data-status="${stamp}" data-search="
|
|
@@ -201,14 +201,16 @@
|
|
| 201 |
<i class="fas fa-gavel mr-1"></i>Court: ${data.court}
|
| 202 |
</span>
|
| 203 |
</div>
|
|
|
|
|
|
|
| 204 |
<a href="${data.link}" target="_blank" class="text-blue-600 hover:underline text-sm flex items-center">
|
| 205 |
<i class="fas fa-file-pdf mr-2"></i>View Documents
|
| 206 |
</a>
|
| 207 |
</div>
|
| 208 |
</div>`;
|
| 209 |
}
|
| 210 |
-
|
| 211 |
-
//
|
| 212 |
Papa.parse('cases.csv', {
|
| 213 |
download: true,
|
| 214 |
header: true,
|
|
|
|
| 172 |
<script>
|
| 173 |
// 1. Build each card from the row
|
| 174 |
function createCard(data, idx) {
|
| 175 |
+
const side = idx % 2 === 0 ? 'left' : 'right';
|
| 176 |
const stamp = data.status.toLowerCase();
|
| 177 |
return `
|
| 178 |
<div class="timeline-card ${side}" data-status="${stamp}" data-search="
|
|
|
|
| 201 |
<i class="fas fa-gavel mr-1"></i>Court: ${data.court}
|
| 202 |
</span>
|
| 203 |
</div>
|
| 204 |
+
<!-- ← insert the summary here -->
|
| 205 |
+
<p class="text-gray-700 mb-3">${data.summary}</p>
|
| 206 |
<a href="${data.link}" target="_blank" class="text-blue-600 hover:underline text-sm flex items-center">
|
| 207 |
<i class="fas fa-file-pdf mr-2"></i>View Documents
|
| 208 |
</a>
|
| 209 |
</div>
|
| 210 |
</div>`;
|
| 211 |
}
|
| 212 |
+
|
| 213 |
+
// then your Papa.parse call stays the same:
|
| 214 |
Papa.parse('cases.csv', {
|
| 215 |
download: true,
|
| 216 |
header: true,
|