mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +01:00
@snoyberg Not sure what the ideal height will be but this does what I had in mind for the collapsing.
12 lines
262 B
Plaintext
12 lines
262 B
Plaintext
$(function(){
|
|
$('.expanding').each(function(){
|
|
var $this = $(this);
|
|
if ($this.height() > 300) {
|
|
$this.addClass('collapsed');
|
|
$this.find('.bottom-gradient').click(function(){
|
|
$this.removeClass('collapsed');
|
|
});
|
|
}
|
|
});
|
|
});
|