Share button for copying current URL
See original GitHub issueI use datasette in an iframe
inside another HTML file that contains other ways to represent my data (mostly leaflets maps built with R on summarized data), and the datasette iframe
is a tab in that page.
This particular use prevents users to access the full URLs of their datasette views and queries, which is a shame because the way datasette handles URLs to make every view or query easy to share is awesome. I know how to get the URL from the context menu of my browser, but I don’t think many visitors would do it or even notice that datasette uses permalinks for pretty much every action they do. Would it be possible to add a “Share link” button to the interface, either in datasette itself or in a plugin?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Copy current URL to clipboard - javascript - Stack Overflow
var shareBtn = document.querySelector(".share-button"); shareBtn.addEventListener('click', function( ...
Read more >Get the Copy Link Share Button for your website - Shareaholic
Get more of your content shared and grow faster with the Copy Link Share Button installed on your website. The Copy Link Share...
Read more >Copy Url to clipboard - CodePen
<button class="clipboard">Click me to copy current Url</button>. 4. <p>Have you already clicked?</p>. 5. </center>. 6. </div> ! CSS (SCSS). CSS (SCSS).
Read more >How to Copy a Web Page Link or URL - Computer Hope
Copy a URL (address) on a desktop or laptop · After the address is highlighted, press Ctrl + C or Command + C...
Read more >Natively copying url to clipboard on desktop and mobile
... a quick solution to let the user copy the current url to their clipboard. ... Here's a complete example of a ShareButton.tsx...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I really like the way the Share feature on Stack Overflow works: https://stackoverflow.com/questions/18934149/how-can-i-use-postgresqls-text-column-type-in-django
One possible treatment: