Adding next and back buttons, and anchor links, to shared pages #2540
sigaloid
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
This looks really cool! Although I think the website example ( https://notes.matthew.science/share/JXdxQeGfmcU6 ) isn't working, it might be one of my browser addons interfering, but anchor-js isn't loaded, and the relevant lines for it at the beginning of https://notes.matthew.science/share/api/notes/lbVEJLODreYL/download are commented out. Would it be possible to make your script to add anchors a plugin? Or how could one add it to a note in Trillium? Thanks! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've made a few changes to my shared page (css + js).
CSS changes:
Next and previous buttons:

It's really easy to change almost every color (I experimented with https://colorpicker.me/) so I just made a dark + blue theme. It's pretty ugly but I like it.
JS changes (real features):
It's sequential, so :
I think the anchor.js would be a good addition to the share page, but the rest is just an example of what I've done with it.
https://gist.github.com/sigaloid/c07252eec41b0326f208986dfd5c10d4
You can test out the anchors here: https://notes.matthew.science/share/JXdxQeGfmcU6Beta Was this translation helpful? Give feedback.
All reactions