|
|
<!DOCTYPE html> |
|
|
<html lang="en"> |
|
|
<head> |
|
|
<meta charset="UTF-8"> |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
|
<title>JFK Document Release 2025</title> |
|
|
<style> |
|
|
body { |
|
|
font-family: Arial, sans-serif; |
|
|
line-height: 1.6; |
|
|
margin: 0; |
|
|
padding: 20px; |
|
|
max-width: 1200px; |
|
|
margin: 0 auto; |
|
|
} |
|
|
h1 { |
|
|
color: #333; |
|
|
border-bottom: 2px solid #ddd; |
|
|
padding-bottom: 10px; |
|
|
} |
|
|
.search-container { |
|
|
margin: 20px 0; |
|
|
} |
|
|
#search { |
|
|
padding: 8px; |
|
|
width: 300px; |
|
|
font-size: 16px; |
|
|
} |
|
|
table { |
|
|
width: 100%; |
|
|
border-collapse: collapse; |
|
|
margin-top: 20px; |
|
|
} |
|
|
th, td { |
|
|
padding: 12px; |
|
|
text-align: left; |
|
|
border-bottom: 1px solid #ddd; |
|
|
} |
|
|
th { |
|
|
background-color: #f2f2f2; |
|
|
font-weight: bold; |
|
|
} |
|
|
tr:hover { |
|
|
background-color: #f5f5f5; |
|
|
} |
|
|
a { |
|
|
color: #0066cc; |
|
|
text-decoration: none; |
|
|
} |
|
|
a:hover { |
|
|
text-decoration: underline; |
|
|
} |
|
|
.footer { |
|
|
margin-top: 30px; |
|
|
padding-top: 10px; |
|
|
border-top: 1px solid #ddd; |
|
|
color: #666; |
|
|
} |
|
|
</style> |
|
|
</head> |
|
|
<body> |
|
|
<h1>JFK Document Release 2025</h1> |
|
|
<p>Browse and search through declassified documents related to the assassination of President John F. Kennedy.</p> |
|
|
|
|
|
<div class="search-container"> |
|
|
<input type="text" id="search" placeholder="Search documents..." onkeyup="filterDocuments()"> |
|
|
</div> |
|
|
|
|
|
<table id="documents-table"> |
|
|
<thead> |
|
|
<tr> |
|
|
<th>Document Name</th> |
|
|
<th>View Document</th> |
|
|
</tr> |
|
|
</thead> |
|
|
<tbody id="documents-list"> |
|
|
|
|
|
</tbody> |
|
|
</table> |
|
|
|
|
|
<div class="footer"> |
|
|
<p>This collection contains declassified documents related to the assassination of President John F. Kennedy. |
|
|
The documents were released by the National Archives and Records Administration (NARA) as part of the JFK Records Act.</p> |
|
|
</div> |
|
|
|
|
|
<script> |
|
|
|
|
|
async function loadDocuments() { |
|
|
const response = await fetch('https://huggingface.co/api/datasets/varunh/jfk-files-2025/tree/main/data'); |
|
|
const data = await response.json(); |
|
|
|
|
|
const documentsList = document.getElementById('documents-list'); |
|
|
|
|
|
|
|
|
data.sort((a, b) => a.path.localeCompare(b.path)); |
|
|
|
|
|
data.forEach(file => { |
|
|
if (file.path.endsWith('.pdf')) { |
|
|
const fileName = file.path.split('/').pop(); |
|
|
|
|
|
const row = document.createElement('tr'); |
|
|
|
|
|
const nameCell = document.createElement('td'); |
|
|
nameCell.textContent = fileName; |
|
|
|
|
|
const linkCell = document.createElement('td'); |
|
|
const link = document.createElement('a'); |
|
|
link.href = `https://huggingface.co/datasets/varunh/jfk-files-2025/resolve/main/${file.path}`; |
|
|
link.textContent = 'View PDF'; |
|
|
link.target = '_blank'; |
|
|
linkCell.appendChild(link); |
|
|
|
|
|
row.appendChild(nameCell); |
|
|
row.appendChild(linkCell); |
|
|
|
|
|
documentsList.appendChild(row); |
|
|
} |
|
|
}); |
|
|
} |
|
|
|
|
|
|
|
|
function filterDocuments() { |
|
|
const search = document.getElementById('search').value.toLowerCase(); |
|
|
const rows = document.getElementById('documents-list').getElementsByTagName('tr'); |
|
|
|
|
|
for (let i = 0; i < rows.length; i++) { |
|
|
const documentName = rows[i].getElementsByTagName('td')[0].textContent.toLowerCase(); |
|
|
if (documentName.includes(search)) { |
|
|
rows[i].style.display = ''; |
|
|
} else { |
|
|
rows[i].style.display = 'none'; |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
window.onload = loadDocuments; |
|
|
</script> |
|
|
</body> |
|
|
</html> |
|
|
|