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
c2dfee8c9c
commit
9212a032f3
@ -26,7 +26,9 @@ var disqusCode = '<h3>留言</h3><div id="disqus_thread"></div>'
|
||||
+ " })();"
|
||||
+ '</script>';
|
||||
|
||||
var disqus_identifier;
|
||||
var disqus_identifier = location.hash;
|
||||
var disqus_title = document.title;
|
||||
var disqus_url = location.href;
|
||||
|
||||
function initialize() {
|
||||
// initialize sidebar and buttons
|
||||
@ -182,8 +184,6 @@ function show_loading() {
|
||||
function router() {
|
||||
var path = location.hash.replace("#", "./");
|
||||
|
||||
disqus_identifier = path;
|
||||
|
||||
// default page if hash is empty
|
||||
if (location.pathname === "/index.html") {
|
||||
path = location.pathname.replace("index.html", ditto.index);
|
||||
|
Loading…
x
Reference in New Issue
Block a user