mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
edit ditto.js
This commit is contained in:
parent
f2839c759e
commit
f731ea151c
@ -18,9 +18,9 @@ var ditto = {
|
|||||||
|
|
||||||
var disqusCode = '<h3>留言</h3><div id="disqus_thread"></div>';
|
var disqusCode = '<h3>留言</h3><div id="disqus_thread"></div>';
|
||||||
|
|
||||||
var disqus_identifier;
|
var disqus_identifier=location.hash?location.hash:'index';
|
||||||
var disqus_title;
|
var disqus_title=document.title;
|
||||||
var disqus_url;
|
var disqus_url='http://'+location.host+'/'+location.hash.replace("#", "");
|
||||||
|
|
||||||
function initialize() {
|
function initialize() {
|
||||||
// initialize sidebar and buttons
|
// initialize sidebar and buttons
|
||||||
@ -204,6 +204,7 @@ function router() {
|
|||||||
reload: true,
|
reload: true,
|
||||||
config: function () {
|
config: function () {
|
||||||
window.disqus_identifier = location.hash;
|
window.disqus_identifier = location.hash;
|
||||||
|
window.disqus_title = document.title;
|
||||||
window.disqus_url = 'http://'+location.host+'/'+location.hash.replace("#", "");
|
window.disqus_url = 'http://'+location.host+'/'+location.hash.replace("#", "");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user