New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

show-more

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

show-more

Add button to any div to show more content on click

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
30
-3.23%
Maintainers
1
Weekly downloads
 
Created
Source

ShowMore.js

Small Jquery plugin to add Show More button to any div.

What is this repository for?

  • Small Jquery plugin to add Show More button to any div.
  • 1.0

How do I get set up?

  • add jquery.show-more.js to your page
  • usage: $("#your-element").showmore();
  • Dependencies: jquery 1.6.4 or higher. CSS class named 'showmore-button' or include showmore-default.css

Properties

  • minheight (by default it is half of original div size)
  • buttontxtmore (default: 'show more')
  • buttontxtless (default: 'show less')
  • buttoncss (default is css class named "showmore-button", or you can add your custom CSS class name)
  • animationspeed (by default it is half of original div size converted in ms)

example of options:

$("#your-element").showmore({
  minheight: 150, // measured in px
  buttontxtmore: 'show me more content',
  buttontxtless: 'show me less content',
  buttoncss: 'my-button-css',
  animationspeed: 1500
});

Demo

https://jsfiddle.net/8eyevhmb/25/

Who do I talk to?

Keywords

show

FAQs

Package last updated on 13 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts