Difference between revisions of "Team:Cambridge-JIC/TestHome"
Line 52: | Line 52: | ||
}).resize(); | }).resize(); | ||
+ | var ix = 0; | ||
$("section").each(function(){ | $("section").each(function(){ | ||
if($(this).attr("id") != "footer-sec") { | if($(this).attr("id") != "footer-sec") { | ||
− | $("#sidebar").append("<div class=\"sidebar-item\"></div>") | + | $("#sidebar").append("<div class=\"sidebar-item\""+(ix==0?" style=\"background: #555\"":"")+"></div>") |
} | } | ||
+ | ix++ | ||
}) | }) | ||
Line 69: | Line 71: | ||
i++; | i++; | ||
}) | }) | ||
− | } | + | }) |
$(window).on("scroll", function(){ | $(window).on("scroll", function(){ |
Revision as of 02:11, 4 August 2015