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