python-dependency-injector/docs/_static/disqus.js

12 lines
507 B
JavaScript
Raw Normal View History

2020-06-17 05:32:47 +03:00
var disqus_shortname;
var disqus_identifier;
2020-06-17 04:38:54 +03:00
$(function() {
2017-02-28 22:55:16 +03:00
var disqus_thread = $("#disqus_thread");
2020-06-17 05:32:47 +03:00
disqus_shortname = disqus_thread.data('disqus-shortname');
disqus_identifier = disqus_thread.data('disqus-identifier');
2017-02-28 22:55:16 +03:00
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
2020-06-17 04:38:54 +03:00
});