HANSONGTSENG (Talk | contribs) |
HANSONGTSENG (Talk | contribs) |
||
Line 486: | Line 486: | ||
for (var i = 0; i <= contents.length - 1; i++) { | for (var i = 0; i <= contents.length - 1; i++) { | ||
console.log("one"); | console.log("one"); | ||
− | dots.push('<div class="sidebar-item"><div class="sidebar-content sidebar-stuff"><a href=#'+(i+1)+">"+contents[i].innerHTML+'</a></div | + | dots.push('<div class="sidebar-item"><span class="sidebar-stuff sidebar-switch dot"></span><div class="sidebar-content sidebar-stuff"><a href=#'+(i+1)+">"+contents[i].innerHTML+'</a></div></div>'); |
} | } | ||
console.log('two'); | console.log('two'); |
Revision as of 06:37, 9 July 2018