Commit graph

47 commits

Author SHA1 Message Date
edfe198530 Patch index.html to load config.js for local API
All checks were successful
Build geoquiz / build (push) Successful in 17s
2026-03-15 21:34:17 +01:00
7f06a90ad7 Add local API config
Some checks failed
Build geoquiz / build (push) Has been cancelled
2026-03-15 21:33:58 +01:00
a0ed4cccf4 Add sync workflow
All checks were successful
Build geoquiz / build (push) Successful in 19s
2026-03-15 21:30:09 +01:00
32760fab8d Add build workflow
Some checks failed
Build geoquiz / build (push) Has been cancelled
2026-03-15 21:30:07 +01:00
974816cd90 Add Dockerfile 2026-03-15 21:29:47 +01:00
VIART Mathieu
a2b304e24a Minor bug corrected - Language in Reverse mode not sync. - Improved compatibility with mobile. 2026-03-13 11:18:48 +00:00
VIART Mathieu
8a54aeadc5 Fixed minor issues with 2026-03-03 16:49:39 +00:00
VIART Mathieu
516af8b23f Fixed minor issues with 2026-03-03 16:49:35 +00:00
VIART Mathieu
dbc4a3786d Fix bugs & patch standalone mode for iOS app. 2026-03-03 15:59:58 +00:00
VIART Mathieu
3f3fd3a48c Fix bugs and display in iOS standalone mode. 2026-03-03 14:58:09 +00:00
VIART Mathieu
6966774ecb Retour forcé à la version iOS standalone 2026-03-03 13:37:09 +00:00
Mathieu VIART
d2e648c72e Adding standalone mode for iOS device. 2026-03-02 18:25:13 +00:00
Mathieu VIART
2576ffe4f7 Minor bugs resolution - improved compatibility with mobile. 2026-03-02 14:22:55 +00:00
Mathieu VIART
1ffeeab8c8 Add Sport Enjoyer and Europe presets plus UI improvements
- New Sport Enjoyer preset with rugby, football, and basketball categories
- New Europe preset with auto-built country lists
- Define SPORT_CAT_IDS constant for sport preset
- Fix preset generation with auto-build from database
- Improve mobile UI: tooltip overflow, button interactions, reverse mode consistency
- Refactor tooltip logic: consolidated show/hide, fixed event handling
- Harmonize reverse mode styling with rounded buttons and question mark
- Fix translation key presetIslands in preset grid
- Ensure helper functions defined before use in applyPreset
- Remove duplicates from auto-generated category lists
2026-03-01 23:56:45 +00:00
Mathieu VIART
2be9826b1c Sorting information added into the data file. 2026-02-28 20:39:41 +00:00
Mathieu VIART
85bb958556 fix favicon 2026-02-27 20:46:10 +00:00
Mathieu VIART
7f054023a2 adding 5 news categories 2026-02-27 20:07:18 +00:00
Mathieu VIART
60ec4e127d translation added 2026-02-27 19:11:23 +00:00
Mathieu VIART
efdfa76d30 json fixed - doc-dev added 2026-02-27 19:09:18 +00:00
Mathieu VIART
81ef40c625
Merge pull request #3 from joshii-h/refactor/modularize-index
Modularize index.html into separate CSS/JS files
2026-02-27 19:00:35 +00:00
Mathieu VIART
bd41c023dd
Add GNU General Public License v3
Added the GNU General Public License version 3 to the project.
2026-02-27 18:59:42 +00:00
Joshua Hirsig
ea561cd0bd Modularize index.html into separate CSS/JS files
Split the monolithic 5510-line index.html into 14 separate files:
- css/styles.css (1085 lines) - all styling
- js/translations.js - i18n (FR/EN/UA/DE)
- js/data.js - categories, presets, fallback data
- js/utils.js - shuffle, seed encoding/decoding
- js/seed.js - seed generation algorithms
- js/ribbon.js - country/category ribbon selectors
- js/setup.js - custom panel, mode selection, presets
- js/game.js - core game loop, state, timer
- js/game-end.js - end screen, Hungarian algorithm, odometer
- js/daily.js - daily mode, seeded RNG, leaderboard
- js/hints.js - tooltips, country descriptions
- js/ui-effects.js - animations, ripple, particles
- js/mobile.js - responsive ribbon tabs

Also allow .docx/.xlsx in .gitignore (used as dev resources).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 19:53:23 +01:00
Mathieu VIART
4ae45072eb
Development resources - Please do not delete
CdC + Excel with data (then converted to .json)
2026-02-27 18:02:15 +00:00
Mathieu VIART
67cdd813cd
Merge pull request #1 from joshii-h/feat/german-i18n-selfhosting
Add German (DE) language, self-hostable Daily API, UX improvements & repo cleanup
V5.2 - thank you Joshua for your precious help.
2026-02-27 15:21:52 +00:00
Joshua Hirsig
54a20efedc Refine German translations for country descriptions and hints 2026-02-27 15:49:51 +01:00
Joshua Hirsig
e6c7f763ac Add German (DE) language support, self-hostable Daily API, and repo cleanup
German Translation (complete i18n):
- Full DE translation block (146 keys matching FR/EN/UA coverage)
- All 37 categories with German name and description
- 228 country names in country.json (country_DE field)
- 10 inline fallback countries with country_DE
- getCountryName() and all ternary expressions handle DE
- 399 country briefs with DE field
- 16 preset labels made translatable via data-i18n
- Browser language auto-detection (navigator.language) with FR fallback
- DE language button in UI

Self-Hostable Daily API:
- Node.js server (api/server.js) converted from Cloudflare Worker
- In-memory KV store with TTL, SHA-256 IP hashing
- Configurable PORT and CORS_ORIGINS via environment variables
- Docker-ready with api/Dockerfile (node:22-alpine)
- docker-compose.yml for easy self-hosting (nginx + api)
- config.example.js for API URL override
- Default DAILY_API falls back to original Cloudflare Worker (no breaking change)

UX Improvements:
- Replaced single "Play again" button with two: "Back to menu" + "Play again"
- Added replayGame() for instant same-mode replay
- Hardcoded French alert() strings replaced with t() translations
- Added favicon (globe emoji SVG)

Repo Cleanup:
- Removed 12 unused numbered HTML snapshots
- Removed archive/, .DS_Store files, Cloudflare Worker source
- Removed .docx and .xlsx dev documents
- Added .gitignore
- Rewrote README.md with game description and self-hosting guide
2026-02-27 15:11:49 +01:00
VIART Mathieu
34166dc84a release V5.1 - Added support for different language 2026-02-27 11:16:44 +00:00
Mathieu VIART
3aeec51207 release V5.0 - Daily mode added 2026-02-25 14:49:01 +00:00
Mathieu VIART
80a2745958 test release 2026-02-25 14:46:16 +00:00
Mathieu VIART
c33d6ee7f9 test daily mode before release on index 2026-02-25 14:46:16 +00:00
Mathieu VIART
1d031b68a9
Update README.md 2026-02-25 12:03:24 +00:00
Mathieu VIART
5de64fa9e2 Version 4.7 - Integration API CloudFare - Wrangler 2026-02-25 11:58:56 +00:00
Mathieu VIART
803a71142f V4.6 Ajout presets et selection Categories 2026-02-24 23:03:06 +00:00
Mathieu VIART
c46b412ab9
Update README to simplify game instructions
Removed game instructions and clarified project description.
2026-02-24 22:14:56 +00:00
Mathieu VIART
5abb307097
Enhance README with game details and instructions
Added game description, rules, and supported languages.
2026-02-24 22:13:56 +00:00
VIART Mathieu
d2f0b95367 V4.5 deploiement advanced custom mode 2026-02-24 17:20:40 +00:00
VIART Mathieu
c8fe5ff915 index.html MaJ derniere version 2026-02-24 16:21:34 +00:00
VIART Mathieu
5f0a69a445 V4.3 Balise google ajouté 2026-02-24 16:20:48 +00:00
Mathieu VIART
4caac1aa8f
ReadMe 2026-02-24 16:12:59 +00:00
Mathieu VIART
a855dfec8e
Add files via upload 2026-02-24 13:33:10 +00:00
Mathieu VIART
8b085d7fed
V4 2026-02-24 13:28:38 +00:00
Mathieu VIART
fe824fb02a
V4.1 + Cahier des charges 2026-02-23 15:51:44 +00:00
Mathieu VIART
c6703e500a V4 - mode reverse et custom added 2026-02-22 20:18:30 +00:00
mathieuviart
dff8ef7c88
xlsx ressource 2026-02-21 19:12:15 +00:00
Mathieu VIART
e9c7870ef7 V3 release 2026-02-21 19:09:44 +00:00
mathieuviart
5bc5a10437
v2 2026-02-21 10:48:36 +00:00
mathieuviart
23e1f69b6a
Add files via upload 2026-02-19 14:23:35 +00:00