Created
June 18, 2016 10:44
-
-
Save scripting/7e17baaa66dc5a85d304eb6f10358a06 to your computer and use it in GitHub Desktop.
A snippet of template code for 1999.io that adds Disqus comments to your story pages.
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
<div class="divDisqusComments"> | |
<div id="disqus_thread"></div> | |
<script> | |
var disqus_config = function () { | |
this.page.url = "[%thispageurl%]"; | |
}; | |
(function () { | |
var d = document, s = d.createElement ('script'); | |
s.src = '//smallpict.disqus.com/embed.js'; | |
s.setAttribute ('data-timestamp', +new Date()); | |
(d.head || d.body).appendChild(s); | |
})(); | |
</script> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment