How andreemiranda/geradorlotofacil works
Lotofácil Pro is a browser-based Lotofácil game generator. The main workflow is choosing or randomly generating a 15-number base, producing nine 9+6 combinations, rejecting duplicates, and managing the results by exporting or copying them. The README documents these product capabilities; the sampled JavaScript entry is only a placeholder, so the application internals are represented at the documented level. The sampled server and service worker show delivery and offline-cache behavior directly.
Main entry points: index.html Group management · server.js HTTP server · sw.js Offline service worker · styles.css Responsive styling
Components 17
Game generation
- Base numbers
index.html - Surpresinha
index.html - Input validation
index.html - Combination generator
index.html - Duplicate history
index.html
Result management
- Games display
index.html - Group management
index.html - TXT export
index.html - Clipboard copy
index.html
Web application
- Web interface
index.html - Responsive styling
styles.css
Delivery and offline
- PWA manifest
manifest.json - Offline service worker
sw.js - Embedded asset fallbacks
embedded-assets.js - HTTP server
server.js
Other components
- Player
- Browser
Connections 17
- Player → Base numbers: enters numbers
README.md - Player → Surpresinha: requests random base
README.md - Base numbers → Input validation: validates input
README.md - Surpresinha → Combination generator: provides base
README.md - Input validation → Combination generator: provides base
README.md - Combination generator → Duplicate history: checks uniqueness
README.md - Duplicate history → Games display: adds unique games
README.md - Player → Group management: manages results
README.md - Group management → TXT export: exports games
README.md - Group management → Clipboard copy: copies games
README.md - Browser → HTTP server: requests app
- HTTP server → Web interface: serves fallback page
server.js - HTTP server → Embedded asset fallbacks: uses asset fallbacks
server.js - Browser → Offline service worker: runs offline caching
sw.js - Offline service worker → Web interface: caches app page
sw.js - Browser → PWA manifest: loads install metadata
- Web interface → Responsive styling: uses styling