1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 10:22:23 +00:00

edit ditto.js

This commit is contained in:
ruanyf 2014-04-25 23:47:56 +08:00
parent c2dfee8c9c
commit 9212a032f3

View File

@ -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);