Skip to content

Paulohos/Lapse.app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lapse — Legal Pages

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.

Languages

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 with pt (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.

Pages

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

Publishing with GitHub Pages

  1. Push this repository to GitHub.
  2. In the repository, go to Settings → Pages.
  3. Under Build and deployment, set Source to "Deploy from a branch".
  4. Select the main branch and the / (root) folder, then save.
  5. Wait a minute for the deployment to finish.

The site will be available at:

https://<your-username>.github.io/<repository-name>/

Using the URLs in the iOS app

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.

Contact

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors