Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

js-copy-drag-json-ld

Simple JavaScript code for a “Copy link” button which adds custom JSON-LD data to the clipboard and drag&drop payload.

Try it out here: Open example.html and dump-data.html.

Click this button to copy JSON-LD data to the clipboard. Drag and drop it onto another Web page to transfer JSON-LD data.

You can also Shift+Click (Windows) or Command+Click (Mac) it to open the link in a new tab.

example.html screenshot dump_data.html screenshot

Credits: The example JSON-LD data is taken from Google’s Introduction to Structured Data. The Link.svg icon used in the example is taken from Microsoft’s YamUI.

About

JavaScript code for a “Copy link” button which adds custom JSON-LD data to the clipboard and drag&drop payload.

Resources

License

Releases

No releases published

Packages

No packages published