Reshuffle dirs
This commit is contained in:
parent
e56ab9d4ab
commit
629e543ef4
73 changed files with 105 additions and 2110 deletions
17
doc/template/resources/javascripts/disqus-ext.js
vendored
Normal file
17
doc/template/resources/javascripts/disqus-ext.js
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
function setupDisqus(href) {
|
||||
var disqus_shortname = 'aceapi';
|
||||
|
||||
//var paths = window.location.pathname.split("/");
|
||||
//var fileName = paths[paths.length - 2] + "/" + paths[paths.length - 1];
|
||||
|
||||
//var disqus_identifier = fileName;
|
||||
var disqus_identifier = href.substring(2);
|
||||
|
||||
(function() {
|
||||
if (document.getElementById("disqusScript") === null) {
|
||||
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);
|
||||
}
|
||||
})();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue