2015-09-01ãã1ã¶æéã®è¨äºä¸è¦§
";
html += " > ";
html += "
";
html += " > ";
html += "
";
var title = document.querySelector("h1.entry-title a");
if(title != null){
html += " > ";
html += "
";
html += "" + title.text + "";
html += "
";
}
console.log(html);
result.push(html);
flagMap[es[0]] = true;
flagMap[key] = true;
} else {
flagMap[key] = false;
}
}
}
/* é層åãã¦ãªãã«ãã´ãªç¨ */
for(var key in flagMap) {
if(flagMap[key] == false) {
var categorySpan = document.createElement("span");
appendCategoryLink(categorySpan, "TOP", topUrl);
categorySpan.appendChild(document.createTextNode(" > "));
appendCategoryLink(categorySpan, key, urlMap[key]);
categoryResult.push(categorySpan);
var html = "
";
html += " > ";
html += "
";
var title = document.querySelector("h1.entry-title a");
if(title != null)ã{
html += " > ";
html += "
";
html += "" + title.text + "";
html += "
";
}
result.push(html);
}
}
/* ãã³ãããªã¹ãæ¸ãåºã */
var categoryHTML = document.querySelector("div#breadcrumb");
if(result.length > 0 && categoryHTML != null) {
categoryHTML.innerHTML = '';
categoryHTML.innerHTML = result[0];
var categories = document.querySelector("div.categories");
if(categoryResult.length > 0 && categories != null) {
categories.innerHTML = '';
for(var idx in categoryResult) {
ãif(categories !=null && categoryResult[idx] != null && !(categoryResult[idx].outerHTML === void 0)){
categories.innerHTML += categoryResult[idx].outerHTML;
if(idx < result.length -1) {
categories.innerHTML += '
';
}
ã}
}
}
}