scaife-viewer / beyond-translation-site

Site used to iterate on translation alignments within the Scaife Viewer ecosystem
3 stars 4 forks source link

Add a basic share widget to improve iframe presentation #179

Closed jacobwegner closed 10 months ago

jacobwegner commented 10 months ago

The new "Embed" widget has an option to copy an embed URL to the clipboard:

Given https://deploy-preview-83--scaife-viewer-frontend.netlify.app/explore-homer/urn:cts:greekLit:tlg0032.tlg006.perseus-grc2:1.1?mode=interlinear&collectionUrn=urn%3Acite2%3Abeyond-translation%3Atext_annotation_collection.atlas_v1%3Aglaux_trees image

image

The generated URL removes the sidebars and pagination options:

https://deploy-preview-83--scaife-viewer-frontend.netlify.app/explore-homer/urn:cts:greekLit:tlg0032.tlg006.perseus-grc2:1.1?embed=y&mode=interlinear&collectionUrn=urn%3Acite2%3Abeyond-translation%3Atext_annotation_collection.atlas_v1%3Aglaux_trees

image
jacobwegner commented 10 months ago

@gregorycrane The "Embed" widget is now visible on https://beyond-translation.perseus.org.