-
Notifications
You must be signed in to change notification settings - Fork 0
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
add ability to link to lines #41
Comments
I got this mostly working except:
|
@karindalziel handing this off to you. Relevant DOM type info: The idea is that we want to make that "URL" on the right hand side something a bit more visually appealing, perhaps an icon, perhaps with hover text explaining that you click it to copy a link to your clipboard, etc. It should only appear when you are hovering the poem line, rather than having hundreds on the page all the time. |
A little (non functional) code already exists in |
So I got this far on the visual part of this issue I'm not quite sure what we should do next, let's discuss. I used the "link" emoji as the icon, I'm not sure how cross compatible that is but emoji's seem pretty widespread anymore? I'm thinking the javascript to copy the link will apply to the whole div, correct? |
Next up, figure out a way to indicate that the URL has been copied to clipboard |
So right now the options are: 1: keep the above as is, but add a tooltip that says "click to copy link to clipboard" on hover 2: do something like stack overflow, with a text box they can use to select and copy the link themselves, with (optionally) another link to copy to clipboard 3: do something like github, where clicking an icon brings up a submenu with the option to "copy permalink" |
Another consideration: the reviews would have to be handled differently from the main text of the variorum if we do the copy link option, which may require the creation of new, reviews-specific css/js? |
Above issue apparently resolved itself? Removing labels... |
you can manually link to a line right now if you look for its anchor id, but my proposal is:
this feature would make sending links to look at specific lines possible, although the behavior might be a little funky depending on how fast the page is loading
The text was updated successfully, but these errors were encountered: