Difference between revisions of "Team:Cambridge-JIC/TestHome"
Line 56: | Line 56: | ||
$("section").each(function(){ | $("section").each(function(){ | ||
if($(this).attr("id") != "footer-sec") { | if($(this).attr("id") != "footer-sec") { | ||
− | $("#sidebar").append("<div onclick=\"scrollsection( | + | $("#sidebar").append("<div onclick=\"scrollsection("+ix+")\" class=\"sidebar-item\""+(ix==0?" style=\"background: #555\"":"")+"></div>") |
} | } | ||
ix++ | ix++ |
Revision as of 02:14, 4 August 2015