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

panel-navigation: rm need for javascript #20

Merged
merged 3 commits into from
May 24, 2023

Conversation

SomberNight
Copy link
Member

Currently on master, the website requires javascript for the panel-navigation (to switch between e.g. the "home", "download", "about", etc. pages). This PR adds a CSS-based approach instead. This makes the website functional without javascript.

Note that the navigation still works a bit "better" if javascript is enabled, as without it the browser ~jumps to the top of the html anchor when switching panels. If javascript is available, I am using a trick to avoid this behaviour.

The slideshow still requires javascript, it is blank without it.

closes #3

The panel-navigation introduced in the prev commit, which works without javascript,
(using css), has a restriction: all panels/pages have to be contained in a
single html file. To accommodate this, this commit inlines panel-download.html
into index.html.

Previously we had
- panel-download.html.template => panel-download.html
- index.html

Now we have
- panel-download.html.template + index.html.template => index.html

electrum/contrib/make_download in the client repo is also adapted.
@SomberNight
Copy link
Member Author

I recommend reviewing commit-by-commit.
Re the generated index.html file, just use electrum/contrib/make_download to regenerate it, and compare that way.

@ecdsa ecdsa merged commit a6379e4 into spesmilo:master May 24, 2023
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.

remove javascript (or make it optional)
2 participants