Skip to content

Instantly share code, notes, and snippets.

@nicinabox
Created May 30, 2014 15:45
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 nicinabox/98f379fb0f9adbcac98f to your computer and use it in GitHub Desktop.
Save nicinabox/98f379fb0f9adbcac98f to your computer and use it in GitHub Desktop.
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