This repository contains the public legal pages for the Lapse iOS app:
- Terms of Use / Termos de Uso
- Privacy Policy / Política de Privacidade
The site is a simple static website built with plain HTML, CSS, and a small amount of vanilla JavaScript — no frameworks, no dependencies, no build step. It works by opening the HTML files directly in a browser and is ready to be published with GitHub Pages.
The site supports two languages:
- 🇧🇷 Português
- 🇺🇸 English
How it works:
- Automatic detection — on the first visit, the language is detected from the browser language (
navigator.languages/navigator.language). Any language starting withpt(e.g.pt-BR,pt-PT,pt-AO) shows Portuguese; everything else shows English. - Manual switching — a language switcher in the header of every page lets the user switch between Portuguese and English at any time.
- Persistence — the manual choice is saved in
localStorage(key:lapse-language) and applies across all pages on future visits. - No external services — there is no backend, no geolocation API, and no IP-based detection. Everything runs in the browser.
- Fallback — if JavaScript is disabled, the pages display the English content.
All language logic lives in language.js. Each page contains both language versions in the HTML, shown or hidden via a lang-pt / lang-en class on the <html> element.
| File | Description |
|---|---|
index.html |
Home page with the app name, a short description, and links to the legal pages |
terms.html |
Terms of Use / Termos de Uso |
privacy.html |
Privacy Policy / Política de Privacidade |
styles.css |
Shared stylesheet |
language.js |
Language detection, switching, and persistence |
- Push this repository to GitHub.
- In the repository, go to Settings → Pages.
- Under Build and deployment, set Source to "Deploy from a branch".
- Select the
mainbranch and the/ (root)folder, then save. - Wait a minute for the deployment to finish.
The site will be available at:
https://<your-username>.github.io/<repository-name>/
After publishing, use these URLs inside the Lapse iOS app (and in App Store Connect, where applicable):
- Terms of Use:
https://<your-username>.github.io/<repository-name>/terms.html - Privacy Policy:
https://<your-username>.github.io/<repository-name>/privacy.html
The same URL serves both languages — the page picks the right one for each user.
- App: Lapse
- Developer: Paulo Henrique Oliveira Souza
- Contact: lapse.support@gmail.com
- Country: Brazil