Last active
March 17, 2019 14:06
-
-
Save aaronpk/6207445 to your computer and use it in GitHub Desktop.
Display webmention count with no jQuery or external Javascript libraries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span id="webmention-count"></span> | |
<script type="text/javascript"> | |
function loadWebmentions(data){ | |
document.getElementById("webmention-count").innerHTML = data.count + " mentions"; | |
} | |
</script> | |
<script type="text/javascript" src="http://webmention.io/api/count?jsonp=loadWebmentions&target=http://example.com/page/100"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment