Skip to content

jQuery.dotdotdot, advanced cross-browser ellipsis for multiple line content.

License

Notifications You must be signed in to change notification settings

mrcoon/jQuery.dotdotdot

 
 

Repository files navigation

jQuery.dotdotdot

A jQuery plugin for advanced cross-browser ellipsis on multiple line content.
Demo's and documentation: http://dotdotdot.frebsite.nl

Note:
Because its performance can not be improved, this plugin is no longer actively maintained.
Feel free to use it and submit pull requests though.

How to use the plugin

Include all necessary .js-files inside the head-tag of the page.

<head>
    <script src="jquery.js" type="text/javascript"></script>
    <script src="jquery.dotdotdot.js" type="text/javascript"></script>
</head>

Create a DOM element and put some text and other HTML markup in this "wrapper".

<div id="wrapper">
    <p>Lorem Ipsum is simply dummy text.</p>
</div>

Fire the plugin onDocumentReady using the wrapper-selector.

$(document).ready(function() {
    $("#wrapper").dotdotdot({
        // configuration goes here
    });
});

More info

Please visit http://dotdotdot.frebsite.nl

Licence

The jQuery.dotdotdot plugin is licensed under the MIT license: http://en.wikipedia.org/wiki/MIT_License

About

jQuery.dotdotdot, advanced cross-browser ellipsis for multiple line content.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 55.9%
  • HTML 41.7%
  • Ruby 2.4%