Difference between revisions of "Team:Cambridge-JIC"

Line 61: Line 61:
  
 
var ix = 0;
 
var ix = 0;
$("section").each(function(){
+
$("section.dotslide").each(function(){
 
if($(this).attr("id") != "footer-sec") {
 
if($(this).attr("id") != "footer-sec") {
 
     $("#sidebar").append("<div onclick=\"scrollsection("+ix+")\" class=\"sidebar-item\""+(ix==0?" style=\"background: #555\"":"")+"></div>")
 
     $("#sidebar").append("<div onclick=\"scrollsection("+ix+")\" class=\"sidebar-item\""+(ix==0?" style=\"background: #555\"":"")+"></div>")

Revision as of 15:04, 16 September 2015