Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configures to enable offline support #137

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

rainbow-bamboo
Copy link

Hey,
I made the website installable on both mobile and desktop as a Progressive Web App. It's a more convenient way to get offline support than downloading the html file.

To do this I added:

  1. A web manifest and service worker using PWA Builder as my base.

  2. An install button to index.html with media queries to hide it when appropriate in parchment.css . This install button is optional as browsers that support it will prompt the user when they first load the page.

  3. An icon based on a public domain vector of a sheet of parchment since one is needed for the app draw / task bar.

I hope that this is helpful :)

  • Ada

@curiousdannii
Copy link
Owner

I am planning to do this, but other things have been priorities first. In the mean time you may be interested in the single file build, which should work fine offline.

@rainbow-bamboo
Copy link
Author

I hope that you can use this as a template for when you do :)

When I run my fork locally and click, "Install," it installs it on my devices as an application that launches independently from my browser with offline support.

I think that if it can be bundled with game files directly (like the Inform7 template) it would be a lovely user experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants