aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/public/themes/material/js/jquery.tinydot.min.js
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-08-28 16:15:27 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-08-28 16:15:27 +0200
commitcdd3010b478c9ca818dd6d22d03c81ef4a5ab208 (patch)
treeffc9957fc228625501214bbb2e9f4bebe7936982 /src/Wallabag/CoreBundle/Resources/public/themes/material/js/jquery.tinydot.min.js
parent13d44ca766b1020327f0b9b005dc2e95deb156a1 (diff)
parent985f5f9d05f7ff7e443442b1775923b379c141d6 (diff)
downloadwallabag-cdd3010b478c9ca818dd6d22d03c81ef4a5ab208.tar.gz
wallabag-cdd3010b478c9ca818dd6d22d03c81ef4a5ab208.tar.zst
wallabag-cdd3010b478c9ca818dd6d22d03c81ef4a5ab208.zip
Merge remote-tracking branch 'origin/master' into 2.1
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/public/themes/material/js/jquery.tinydot.min.js')
-rw-r--r--src/Wallabag/CoreBundle/Resources/public/themes/material/js/jquery.tinydot.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/public/themes/material/js/jquery.tinydot.min.js b/src/Wallabag/CoreBundle/Resources/public/themes/material/js/jquery.tinydot.min.js
new file mode 100644
index 00000000..74754629
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Resources/public/themes/material/js/jquery.tinydot.min.js
@@ -0,0 +1 @@
!function(a,b){function c(b){var c=b.children();if(0==c.length){var d=a(b).html();return b.html(""),b.append("<span />"),b.children("span").html(d)}return c[0]}function d(b){a(b.child).html(b.orgContent),e(b)}function e(b){for(var c=a(b).height();a(b.child).outerHeight()>c;)a(b.child).html(function(a,b){return b.replace(/\W*\s(\S)*$/,"...")})}a.fn.tinydot||(a.fn.tinydot=function(b){var f=this;f.child=c(f),f.orgContent=a(f.child).html(),e(f),f.watch=function(){return a(window).on("resize",function(){h&&clearInterval(h),h=setTimeout(function(){d(f)},100)}),f};var g=a.extend(!0,{},a.fn.tinydot.defaults,b),h=null;g.watch&&f.watch()},a.fn.tinydot.defaults={watch:!1})}(jQuery),jQuery(document).ready(function(a){a(".dot-ellipsis").each(function(){var b=a(this).hasClass("dot-resize-update"),c=new Object;b&&(c.watch="window"),a(this).tinydot(c)})});