Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
new Shortcode(document.querySelector('body'), {
button: function(done) {
sc_sn(this, 'button', done);
}
});
sc_sn = function(match, done) {
$.ajax({
success: function() {
var replacementValue = '...';
done(replacementValue);
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment