jQuery-плагин позволяющий скрыть часть длинного блока и показать по нажатию на ссылку. Показать и скрыть часть блока jQuery. Readmore.js.
Простое скрытие лишней информации в блоке на javascript.
Опции:
speed: 100in millisecondscollapsedHeight: 200in pixelsheightMargin: 16in pixels, avoids collapsing blocks that are only slightly larger thancollapsedHeightmoreLink: '<a href="#">Read more</a>'lessLink: '<a href="#">Close</a>'embedCSS: trueinsert required CSS dynamically, set this tofalseif you include the necessary CSS in a stylesheetblockCSS: 'display: block; width: 100%;'sets the styling of the blocks, ignored ifembedCSSisfalsestartOpen: falsedo not immediately truncate, start in the fully opened positionbeforeToggle: function() {}called after a more or less link is clicked, but before the block is collapsed or expandedafterToggle: function() {}called after the block is collapsed or expandedblockProcessed: function() {}called once per block during initilization after Readmore.js has processed the block.