mirror of
https://github.com/ethauvin/kobalt-doc.git
synced 2025-04-26 04:17:11 -07:00
setTitle()
This commit is contained in:
parent
28682f4e4b
commit
538f088527
1 changed files with 10 additions and 4 deletions
|
@ -2,6 +2,8 @@
|
||||||
// Nav bar
|
// Nav bar
|
||||||
//
|
//
|
||||||
|
|
||||||
|
var title = "Kobalt, by Cedric Beust"
|
||||||
|
|
||||||
var content = [
|
var content = [
|
||||||
{
|
{
|
||||||
url: "../home/index.html",
|
url: "../home/index.html",
|
||||||
|
@ -72,7 +74,6 @@ function generateToc() {
|
||||||
ind = indentAttribute.textContent;
|
ind = indentAttribute.textContent;
|
||||||
}
|
}
|
||||||
if (! ind) ind = 0;
|
if (! ind) ind = 0;
|
||||||
var currentCounter = 0;
|
|
||||||
if (ind > currentLevel) {
|
if (ind > currentLevel) {
|
||||||
if (ind == 0) {
|
if (ind == 0) {
|
||||||
toc += '<ul class="nav">\n';
|
toc += '<ul class="nav">\n';
|
||||||
|
@ -98,7 +99,12 @@ function generateToc() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setTitle() {
|
||||||
|
document.getElementsByTagName("title")[0].innerHTML = title;
|
||||||
|
}
|
||||||
|
|
||||||
function generateKobalt(index) {
|
function generateKobalt(index) {
|
||||||
|
setTitle();
|
||||||
generateToc();
|
generateToc();
|
||||||
generateNavBar(index);
|
generateNavBar(index);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue