mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
edit ditto.js
This commit is contained in:
+7
-3
@@ -26,9 +26,9 @@ var disqusCode = '<h3>留言</h3><div id="disqus_thread"></div>'
|
||||
+ " })();"
|
||||
+ '</script>';
|
||||
|
||||
var disqus_identifier = location.hash;
|
||||
var disqus_title = document.title;
|
||||
var disqus_url = location.href;
|
||||
var disqus_identifier;
|
||||
var disqus_title;
|
||||
var disqus_url;
|
||||
|
||||
function initialize() {
|
||||
// initialize sidebar and buttons
|
||||
@@ -195,6 +195,10 @@ function router() {
|
||||
path = path + ".md";
|
||||
}
|
||||
|
||||
disqus_identifier = location.hash;
|
||||
disqus_title = $(ditto.content_id+" h1").text();
|
||||
disqus_url = location.href;
|
||||
|
||||
// otherwise get the markdown and render it
|
||||
var loading = show_loading();
|
||||
$.get(path , function(data) {
|
||||
|
||||
Reference in New Issue
Block a user