Skip to content

add permalink #878

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

add permalink #878

wants to merge 7 commits into from

Conversation

BigBlueHat
Copy link
Member

  • Load JSON-LD from hash fragments.
  • Change how popups are attached.
  • Reduce size of shortcuts button.
  • Add permalink popup & copy button.

Supports `startTab` and `json-ld` (for the document).
More popups coming.
Prep for more buttons.
Copy link

cloudflare-workers-and-pages bot commented Aug 15, 2025

Deploying json-ld-org with  Cloudflare Pages  Cloudflare Pages

Latest commit: d29b554
Status: ✅  Deploy successful!
Preview URL: https://c4b5a9c8.json-ld-org.pages.dev
Branch Preview URL: https://add-permalink.json-ld-org.pages.dev

View logs

@BigBlueHat
Copy link
Member Author

Here's a test URL:
https://add-permalink.json-ld-org.pages.dev/playground/next/#json-ld=%7B%22%40context%22%3A%7B%22gr%22%3A%22http%3A%2F%2Fpurl.org%2Fgoodrelations%2Fv1%23%22%2C%22pto%22%3A%22http%3A%2F%2Fwww.productontology.org%2Fid%2F%22%2C%22foaf%22%3A%22http%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%22%2C%22xsd%22%3A%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%22%2C%22foaf%3Apage%22%3A%7B%22%40type%22%3A%22%40id%22%7D%2C%22gr%3AacceptedPaymentMethods%22%3A%7B%22%40type%22%3A%22%40id%22%7D%2C%22gr%3AhasBusinessFunction%22%3A%7B%22%40type%22%3A%22%40id%22%7D%2C%22gr%3AhasCurrencyValue%22%3A%7B%22%40type%22%3A%22xsd%3Afloat%22%7D%7D%2C%22%40id%22%3A%22https%3A%2F%2Fexample.org%2Fcars%2Ffor-sale%23tesla%22%2C%22%40type%22%3A%22gr%3AOffering%22%2C%22gr%3Aname%22%3A%22Used+Tesla+Roadster%22%2C%22gr%3Adescription%22%3A%22Need+to+sell+fast+and+furiously%22%2C%22gr%3AhasBusinessFunction%22%3A%22gr%3ASell%22%2C%22gr%3AacceptedPaymentMethods%22%3A%22gr%3ACash%22%2C%22gr%3AhasPriceSpecification%22%3A%7B%22gr%3AhasCurrencyValue%22%3A%2285000%22%2C%22gr%3AhasCurrency%22%3A%22USD%22%7D%2C%22gr%3Aincludes%22%3A%7B%22%40type%22%3A%5B%22gr%3AIndividual%22%2C%22pto%3AVehicle%22%5D%2C%22gr%3Aname%22%3A%22Tesla+Roadster%22%2C%22foaf%3Apage%22%3A%22https%3A%2F%2Fwww.teslamotors.com%2Froadster%22%7D%7D&startTab=tab-expanded

Things still needed include:

  • handling/setting the context parameter
  • warning if the document is too large
  • (maybe) find a different URL shortening service to use (...or add one into json-ld.org?)

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.

1 participant