add javascript to insert download buttons #1266
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
in order to have big "get F3D button" for the current OS above the release table:
Include a script in the header, the script is loaded on every page but will perform different actions depending on which page it's in.
The idea is that the javascript only enhances the existing html, while being totally optional. We don't want to start adding <script> tags in the markdown documents.
In the case of the install page, the script retrieves the download links from the table in the page (html generated from the markdown file) and adds buttons for the ones where the "Platform" column matches the guessed client OS
edit: temporarily deployed at https://snoyer.github.io/f3d/doc/user/INSTALLATION.html
should look something like: