Template:UCSF/Header

From 2010.igem.org

(Difference between revisions)
Line 95: Line 95:
z.appendChild(tmp);
z.appendChild(tmp);
                 z.appendChild(document.createElement('br'));
                 z.appendChild(document.createElement('br'));
-
if (toBeTOCced[i].nodeName == 'H3')
+
if (toBeTOCced[i].nodeName == 'H3'){
-
tmp.className += ' indent';
+
tmp.className += ' indent';  
-
if (toBeTOCced[i].nodeName == 'H4')
+
                        tmp.style.color="black";
 +
                }
 +
if (toBeTOCced[i].nodeName == 'H4'){
tmp.className += ' extraindent';
tmp.className += ' extraindent';
-
if (toBeTOCced[i].nodeName == 'H5')
+
                }
 +
if (toBeTOCced[i].nodeName == 'H5'){
tmp.className += ' extraextraindent';
tmp.className += ' extraextraindent';
 +
                }
var headerId = result;
var headerId = result;
tmp.href = '#' + headerId;
tmp.href = '#' + headerId;

Revision as of 08:11, 10 October 2010