This project displays a 2D seating layout of library tables with interactive features. Tables that already have links turn light green and open in a new tab when clicked. Tables without links display a form for users to submit their own.
You need Python 3.x installed on your system.
- Clone or download this repository:
git clone https://github.com/samanpl/seats.git cd seats - Run a local HTTP server using Python:
python -m http.server 8000
- Open your browser and navigate to:
http://localhost:8000
⚠️ Opening index.html directly with file:// will not work due to browser CORS restrictions.
📦 seats/
├── index.html # Main HTML file
├── links.json # Contains mapping of table numbers to external links
├── layout.json # 2D array of table numbers representing layout
├── ./assets
├── style.css # CSS for layout and design
├── ./js
└── script.js # JavaScript to generate the grid and handle interaction✅ Linked seats open in new tabs ✅ Unlinked seats show a submission form ✅ Stylish layout using CSS grid ✅ Formspree integration to handle form submissions via email ✅ Mobile-friendly and simple design
{
"T1": "https://example.com/table1",
"T2": "https://example.com/table2"
}[
["T1", "T2", "T3"],
["T4", "T5", "T6"]
]Feel free to fork this project, improve it, and open pull requests. Suggestions, bug reports, and enhancements are all welcome!
GPL-3.0 License © 2025 pypi0