Skip to content

full-screen mode details #63

@eplebel

Description

@eplebel

details of full-screen mode with side panel for viewing (supported) embeddable content: i.e., embeddable full-text PDFs, HTML articles/pages, interactive notebooks/code capsules, open peer review, supplementary materials PDF files, etc. (Live demo)
HOMEPAGE-sep-2019_improved-sidePanel

for viewports > 1900px, a full-screen icon will appear immediately to the right of a supported embeddable content's external-link icon, which when clicked, will open (w/ animation if easy to add) a side-panel (to the right) and display the content within it (pressing the "ESC key" or "X" within the panel closes the panel).
--> if viewport <1900px, full-screen icons are not visible, so user cannot enter full-screen mode
(ensuring that the right-hand article card action buttons (i.e., "EDIT", "LINK", etc.) overflow over the vertical-scrollbar of the left-hand article list panel...)

full-screen mode will be available on the homepage (recent articles component), search results page, article page, and author page (but NOT for author page external embed widget for now).

(difficult)
for contract#2, only the following embeddable content will be supported:

(NOTE: in the future, we should "validate" each full-screenable links, and only display a full-screen icon if link doesn't return a 404)

  • key figures/videos within article card will open full-screen via much better FancyBox media viewer (as implemented on my alpha page), rather than currently limited/suboptimal React Image Lightbox viewer that we're currently using.
    • NOTE: some folks have reported an issue trying to port fancyBox into a React app (possible due to dependency issue w/ jQuery, see here), however, others have successfully been able to import it, so hopefully it's possible and/or there's now a fix/workaround for this.
    • if fancyBox works, or if a better media viewer is implemented that supports image captions (because current React Image Lightbox doesn't support captions, one of its many limitations), please add the following image caption text: "Figure/table is reproduced based on an open license or under Fair Use for educational/scientific purposes."




Content that will NOT (yet) be supported:



****various reasons why content cannot be embedded:


**SEVERAL techniques exist to work around sameorigin restrictions, however, not sure how effective and/or legal these are.... (as listed here: https://stackoverflow.com/questions/3076414/ways-to-circumvent-the-same-origin-policy)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions