Share a Var to Social Media Sites and/or Get a Link
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I have a small app with a lot of variables. I thought it would be neat to be able to share so I added an AddToAny snippet which shares the page but not the variables.

I'm looking for a way, that doesn't necessarily need to by AddToAny, to share a link with the var (which displays on the page <span id="target"></span>). I should be able to do this with a link/button.

Here's a link to a JSFiddle with what I have now. Please let me know if I can answer any questions that'll help you produce a solution. I look forward to seeing what you can come up with. Thanks!

awarded to Wuddrum

Crowdsource coding tasks.

2 Solutions

Hey, that looks interesting but I was going for what Wuddrum answered. I appreciate you trying though, thank you.
sharper 21 days ago
Winning solution

This should do it - You might need to open the preview in a separate tab to see the url updating.

Looks good, thanks!
sharper 21 days ago
View Timeline