How uv-xii/k-l-attendance-calculator works
KL Attendance is a browser extension that reads attendance data from the KL University ERP and sends it to the attendance calculator. It offers two paths: a popup that scrapes the active ERP tab and opens or focuses the calculator, and a floating button embedded on ERP attendance pages. The popup also previews weighted attendance percentages. The calculator’s handling of the received message is outside this repository evidence, so its internal behavior is not shown.
Main entry points: popup.js Popup Sync · content.js Floating Button · popup.html Popup Controls
Components 10
Extension Popup
- Popup Controls
kl-extension/popup.html - Popup Sync
kl-extension/popup.js - Popup Scraper
kl-extension/popup.js - Attendance Preview
kl-extension/popup.js
ERP Page Extension
- Floating Button
kl-extension/content.js - Page Scraper
kl-extension/content.js
Other components
- Student
- ERP Attendance
- Session Storage
- Attendance Calculator
Connections 11
- Student → Popup Controls: uses
- Popup Controls → Popup Sync: triggers sync
kl-extension/popup.js - Popup Sync → Popup Scraper: executes scraper
kl-extension/popup.js - Popup Scraper → ERP Attendance: reads table
kl-extension/popup.js - Popup Sync → Attendance Preview: renders results
kl-extension/popup.js - Popup Sync → Attendance Calculator: sends message
kl-extension/popup.js - Student → Floating Button: clicks
kl-extension/content.js - Floating Button → Page Scraper: invokes scraper
kl-extension/content.js - Page Scraper → ERP Attendance: reads table
kl-extension/content.js - Floating Button → Attendance Calculator: opens and posts
kl-extension/content.js - Floating Button → Session Storage: stores fallback
kl-extension/content.js