Skip to content

Instantly share code, notes, and snippets.

@canweriotnow
Last active December 26, 2015 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save canweriotnow/7208510 to your computer and use it in GitHub Desktop.
Save canweriotnow/7208510 to your computer and use it in GitHub Desktop.
Share to Sanderling button
<span style="background-color:#A8BE38;display:inline-block;padding:4px;border-radius:5px;">
<a href="#" class="sanderling-share-button btn" onClick="sanderlingShare();" style="font-family: Helvetica, Arial, sans-serif;font-size: small;text-decoration: none; color: black;">
<div id="innerling">
<img src="https://s3.amazonaws.com/AnEstuary/brand/birdie-sm.png" width="20px"/>
Share on Sanderling
</div>
</a>
</span>
<script type="text/javascript">
var sanderlingShare = function() {
var title = document.title;
var url = window.location.href;
var windowFeatures = "menubar=no,location=no,rezixable=yes,scrollbars=yes,status=no,innerHeight=565,innerwidth=455";
var href = "https://sanderling.io/share/new?l=share&title=" + title + "&url=" + url;
window.open(href, 'sanderShare', windowFeatures);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment