numworks / epsilon

Modern graphing calculator operating system.
https://www.numworks.com/resources/engineering/software/
1.75k stars 463 forks source link

PWA-compliant Simulator #1823

Open Stephan-P opened 3 years ago

Stephan-P commented 3 years ago

As it stands today, the Numworks Simulator cannot be installed as a Chrome App or Edge App. The browser does not recognize the simulator (online or download) as a Progressive Web App and that's a pity.

My hunch is that it's a minor thing

(Edit: removed link that did not provide the desired tips after all)

Stephan-P commented 3 years ago

Maybe this can be of help: https://www.freecodecamp.org/news/build-a-pwa-from-scratch-with-html-css-and-javascript/

Ecco commented 3 years ago

That's an interesting request. I guess we could make the simulator page a PWA. My biggest concern was about the navigation menu. Currently the simulator page comes with a navigation bar since it's just another page of our website. And that's also super convenient when browsing around.

If this page were to be seen as a PWA, should the navigation bar stay? If not, then how would that work for standard browsing?

Stephan-P commented 3 years ago

That's hard to answer right now. Maybe worth a trial?

Stephan-P commented 3 years ago

Maybe this can be of help:

I've been doing some experiments with the downloadable simulator, but it'd seem that building a PWA requires a web server as a development platform.

cazeip commented 3 years ago

If this page were to be seen as a PWA, should the navigation bar stay? If not, then how would that work for standard browsing?

Using JavaScript, you can test if the document is being viewed in a browser window or in a standalone view, as a PWA. Knowing this, you could simply hide the navigation bar if the page were to be loaded in a standalone view.