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

Extend PRAGMA playback to support javascript selections #5

Open
mekarpeles opened this issue Jul 6, 2018 · 0 comments
Open

Extend PRAGMA playback to support javascript selections #5

mekarpeles opened this issue Jul 6, 2018 · 0 comments

Comments

@mekarpeles
Copy link
Member

Currently the https://pragma.archivelab.org/playback/:id interface only works if an annotation is saved having a value of {"id": "xxx"} where xxx is some css ID which can be found within the Save Page Now'd webpage. It would be nice if an annotation could save a javascript selection and the /playback javascript was capable of (after loading the desired pragma wayback ID to playback) surrounding the selection with a span which could then be styled. i.e. extend citations to arbitrary selections (or at least also support css classes) instead of just css IDs.

Some of this work has been started here:
https://gist.github.com/mekarpeles/a1a60865d2d50e8c0b08bf1b39e8b718

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

No branches or pull requests

1 participant