diff options
Diffstat (limited to 'static/js')
-rw-r--r-- | static/js/loadComments.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/static/js/loadComments.js b/static/js/loadComments.js new file mode 100644 index 0000000..cce27dc --- /dev/null +++ b/static/js/loadComments.js @@ -0,0 +1,7 @@ +var loadComments = function() { + var el = document.getElementById("loadComments"); + el.parentNode.removeChild(el); + var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; + dsq.src = 'http://elephly.disqus.com/embed.js'; + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); +}; |