Skip to content

Instantly share code, notes, and snippets.

@bilalucar
Created June 7, 2017 12:46
Show Gist options
  • Save bilalucar/c63711e0ca9ea84f569a753cee3f414a to your computer and use it in GitHub Desktop.
Save bilalucar/c63711e0ca9ea84f569a753cee3f414a to your computer and use it in GitHub Desktop.
Medium Menu -11
function onShareClick() {
window.open(`https://twitter.com/intent/tweet?text=${this.shareTxt}`);
this.remove();
document.getSelection().removeAllRanges()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment