|
|
@ -21,7 +21,7 @@ function addSidebarToggler() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
sections = $('aside[role=sidebar] > section')
|
|
|
|
sections = $('aside[role=sidebar] > section')
|
|
|
|
if(sections.length >= 3){ $('aside[role=sidebar]').addClass('thirds') }
|
|
|
|
if(sections.length > 1){
|
|
|
|
sections.each(function(section, index){
|
|
|
|
sections.each(function(section, index){
|
|
|
|
if ((sections.length >= 3) && index % 3 == 0) {
|
|
|
|
if ((sections.length >= 3) && index % 3 == 0) {
|
|
|
|
$(section).addClass("first");
|
|
|
|
$(section).addClass("first");
|
|
|
@ -29,6 +29,8 @@ function addSidebarToggler() {
|
|
|
|
count = ((index +1) % 2) ? "odd" : "even";
|
|
|
|
count = ((index +1) % 2) ? "odd" : "even";
|
|
|
|
$(section).addClass(count);
|
|
|
|
$(section).addClass(count);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(sections.length >= 3){ $('aside[role=sidebar]').addClass('thirds') }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function testFeatures() {
|
|
|
|
function testFeatures() {
|
|
|
|
var features = ['maskImage'];
|
|
|
|
var features = ['maskImage'];
|
|
|
|