Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including jquery.dotdotdot with all npm packages installed. Try it out:

var jqueryDotdotdot = require("jquery.dotdotdot")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

jquery.dotdotdot v3.1.0

Dotdotdot is an advanced jQuery plugin for truncating multiple line content with an ellipsis.

jQuery.dotdotdot

Dotdotdot is a jQuery plugin for truncating multiple line content on a webpage. It uses an ellipsis to indicate that there is more text than currently visible. Optionally, the plugin can keep a "read more" anchor visible at the end of the content, after the ellipsis.

When using the jQuery.dotdotdot plugin, you don't need to worry about your HTML markup, the plugin knows its way around most elements. It's responsive, so when resizing the browser, the ellipsis will update on the fly.

Need help? Have a look at the documentation.

Licence

The jQuery.dotdotdot plugin is licensed under the CC-BY-NC-4.0 license.
You can purchase a license if you want to use it in a commercial project.

Dependencies

  • jQuery 1.7 or higher

Development

This project uses Gulp to minify the JS file. If you are unfamiliar with Gulp, check this tutorial on how to get started.
Run gulp watch in the command-line to put a watch on the files and run all scripts immediately after saving your changes.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free