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

m (hide scroll top button at beginning if needed)
(added hidden blocks)
Line 179: Line 179:
 
 
 
//recolor contentboxes
 
//recolor contentboxes
$('.contentbox').each(function(i, obj) {
+
/*$('.contentbox').each(function(i, obj) {
 
if ((i % 2) == 1) {
 
if ((i % 2) == 1) {
 
$(obj).css("background", "#f0f0f0");
 
$(obj).css("background", "#f0f0f0");
Line 186: Line 186:
 
}
 
}
 
$content = $(obj).children(".content");
 
$content = $(obj).children(".content");
});
+
});*/
 
//recolor labnote contentboxes
 
//recolor labnote contentboxes
 
/*$('.labnotebox').each(function(i, obj) {
 
/*$('.labnotebox').each(function(i, obj) {
Line 582: Line 582:
 
$("#page-arrow-top").css("bottom", "20px");
 
$("#page-arrow-top").css("bottom", "20px");
 
}
 
}
 +
});
 +
 +
$(document).ready(function() {
 +
    $(".hidden-expand").mousedown(function() {
 +
$clickItem = $(this);
 +
$clickItem.parent().next(".hidden-block").slideToggle(500, function() {});
 +
    });
 
});
 
});
  

Revision as of 21:02, 23 October 2017