]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Resources/public/themes/material/js/jquery.tinydot.js
4 * Copyright (c) Alexander Danilov
8 * https://gitlab.com/modos189/tinydot
10 * Licensed under the MIT license.
11 * http://en.wikipedia.org/wiki/MIT_License
21 $.fn
.tinydot = function( o
) {
22 var p
=$(this).children('a');
23 var divh
=$(this).height();
24 while ($(p
).outerHeight()>divh
) {
25 $(p
).text(function (index
, text
) {
26 return text
.replace(/\W*\s(\S)*$/, '...');
32 jQuery(document
).ready(function($) {
33 //We only invoke jQuery.tinydot on elements that have dot-ellipsis class
34 $(".dot-ellipsis").each(function(){