jQuery-плагин позволяющий скрыть часть длинного блока и показать по нажатию на ссылку. Показать и скрыть часть блока jQuery. Readmore.js.
Простое скрытие лишней информации в блоке на javascript.
Опции:
speed: 100
in millisecondscollapsedHeight: 200
in pixelsheightMargin: 16
in pixels, avoids collapsing blocks that are only slightly larger thancollapsedHeight
moreLink: '<a href="#">Read more</a>'
lessLink: '<a href="#">Close</a>'
embedCSS: true
insert required CSS dynamically, set this tofalse
if you include the necessary CSS in a stylesheetblockCSS: 'display: block; width: 100%;'
sets the styling of the blocks, ignored ifembedCSS
isfalse
startOpen: false
do 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.