JSFiddle - React, Tailwind, and code Playground
by vijayweb
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Checklist Table with Save As Dialog for CSV Export</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.3.0/papaparse.min.js"></script>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f0f0f0;
}
.table-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
color: #333;
}
.table-container {
position: relative;
margin-top: 20px;
margin-bottom: 20px;
}
.table-actions {
position: absolute;
top: -30px;
right: 0;
}
.table-actions a {
text-decoration: none;
color: #4CAF50;
font-weight: bold;
margin-left: 10px;
}
.status-message {
color: #4CAF50;
font-weight: bold;
margin-top: 10px;
display: none;
}
table {
width: 100%;
border-collapse: collapse;
background-color: white;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
th, td {
border: 1px solid #ddd;
padding: 12px;
text-align: left;
}
th {
background-color: #4CAF50;
color: white;
}
tr:nth-child(even) {
background-color: #f2f2f2;
}
.checkbox-container {
display: flex;
justify-content: center;
align-items: center;
}
.checkbox-custom {
appearance: none;
width: 25px;
...