custom-scripts/mccs-it/CSVFilterer.html
2024-08-13 09:48:52 -04:00

25 lines
1000 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSV Filterer</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.3.0/papaparse.min.js"></script>
<script src="./CSVFilterer.js"></script>
</head>
<body>
<h1>CSV Filterer</h1>
<label for="ueFileInput">UserEnrollments.csv:</label>
<input type="file" id="ueFileInput" accept=".csv">
<button onclick="filterEnrollments(document)">Filter Enrollments</button>
<br />
<label for="usersFileInput">Users.csv:</label>
<input type="file" id="usersFileInput" accept=".csv">
<button onclick="parseUsers(document.getElementById('usersFileInput'), document)">Parse Users</button>
<br />
<button onclick="refreshStatus(document)">Refresh Status</button>
<p>Status: <span id="status">Unknown</span></p>
<a id="downloadLink" style="display:none;">Download Filtered CSV</a>
</body>
</html>