-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3d93d9
commit 5c044c4
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<section class="post-comments"> | ||
<button class="show-comments btn--full-width" id="show-comments" onclick="loadComments();"><a href="{{url}}#disqus_thread">Load Comments</a></button> | ||
|
||
<!-- The empty element required for Disqus to loads comments into --> | ||
<div id="disqus_thread"></div> | ||
<noscript>Please enable JavaScript to view the <a rel="nofollow" href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> | ||
<a rel="nofollow" href="http://disqus.com" class="dsq-brlink m0a"><em>comments powered by <span class="logo-disqus">Disqus</span></em></a> | ||
|
||
|
||
<script type="text/javascript"> | ||
// EDIT THIS LINE! | ||
var disqus_shortname = 'YOUR_DISQUS_SHORTNAME'; // You *must* replace this with your shortname | ||
var disqus_identifier = '{{uuid}}'; | ||
(function () { | ||
var s = document.createElement('script'); s.async = true; | ||
s.type = 'text/javascript'; | ||
s.src = '//' + disqus_shortname + '.disqus.com/count.js'; | ||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); | ||
}()); | ||
function loadComments() { | ||
(function () { | ||
var dsq = document.createElement('script'); | ||
dsq.type = 'text/javascript'; | ||
dsq.async = true; | ||
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js'; | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
})(); | ||
document.getElementById('show-comments').style.display = "none"; | ||
} | ||
</script> | ||
</section> |
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