How ramyakommireddy/simple-voting-system works
This is a browser-based mock voting application. Voters look up a sample identity record, register for a voter ID, sign in, select a party, and submit one vote; an admin view summarizes votes and voters. The main runtime is concentrated in script.js, with browser localStorage holding voter and party data. The supplied excerpts show these behaviors and some navigation calls, but not the HTML event wiring, so UI-to-handler relationships are not asserted.
Main entry points: script.js View Navigation
Components 11
Voter Registration
- Sample Identity Records
script.js - Identity Lookup
script.js - Voter Registration
script.js
Voting
- Voter Sign-in
script.js - Ballot Rendering
script.js - Vote Submission
script.js - View Navigation
script.js
Administration
- Admin Login
script.js - Admin Dashboard
script.js
Browser State
- localStorage
Other components
- Voter
Connections 11
- Identity Lookup → Sample Identity Records: looks up
script.js - Voter Registration → localStorage: writes voter
script.js - Voter Sign-in → localStorage: reads voters
script.js - Voter Sign-in → View Navigation: opens ballot
script.js - View Navigation → Ballot Rendering: renders ballot
script.js - Ballot Rendering → localStorage: reads parties
script.js - Vote Submission → localStorage: updates votes
script.js - Vote Submission → View Navigation: shows confirmation
script.js - Admin Login → View Navigation: opens dashboard
script.js - View Navigation → Admin Dashboard: renders dashboard
script.js - Admin Dashboard → localStorage: reads records
script.js