Difference between revisions of "Template:Team:Bielefeld-CeBiTec/JS"

(added code for new page switch butons)
m
Line 177: Line 177:
 
//recolor contentboxes
 
//recolor contentboxes
 
$('.contentbox').each(function(i, obj) {
 
$('.contentbox').each(function(i, obj) {
/*if ((i % 3) == 1) {
 
$(obj).css("background", "#eeeeee");
 
} else if ((i % 3) == 2) {
 
$(obj).css("background", "#ffffff");
 
} else if ((i % 3) == 0) {
 
$len = $url.length;
 
if ($len % 4 == 0) {
 
$(obj).css("background-image", "url(freezer_bright_small.jpg)");
 
} else if ($len % 4 == 1) {
 
$(obj).css("background-image", "url(freezer2_bright_small.jpg)");
 
} else if ($len % 4 == 2) {
 
$(obj).css("background-image", "url(plates_bright_small.jpg)");
 
} else if ($len % 4 == 3) {
 
$(obj).css("background-image", "url(platestacks_bright_small.jpg)");
 
}
 
}*/
 
 
if ((i % 2) == 1) {
 
if ((i % 2) == 1) {
 
$(obj).css("background", "#f0f0f0");
 
$(obj).css("background", "#f0f0f0");
Line 200: Line 184:
 
$content = $(obj).children(".content");
 
$content = $(obj).children(".content");
 
});
 
});
 +
//recolor labnote contentboxes
 +
/*$('.labnotebox').each(function(i, obj) {
 +
if ((i % 2) == 1) {
 +
$(obj).css("background", "#f0f0f0");
 +
} else if ((i % 2) == 0) {
 +
$(obj).css("background", "#ffffff");
 +
}
 +
$content = $(obj).children(".labnote-content");
 +
});*/
 
 
 
hideNavbars();
 
hideNavbars();

Revision as of 13:15, 13 October 2017