diff options
author | Stefan Parviainen <saparvia@caterva.eu> | 2015-01-05 22:11:24 +0100 |
---|---|---|
committer | Stefan Parviainen <saparvia@caterva.eu> | 2015-01-05 22:11:24 +0100 |
commit | 5ce5de73051e0d68d277dc189b3bcc4593d7ab8d (patch) | |
tree | f707891da9bd1c7272f04e455f33043bbb29ef1d /library/jquery.divgrow/jquery.divgrow-1.3.1.min.js | |
parent | 1ac9a4976fe6a84e3f0d9e405d929e45a0c1183c (diff) | |
download | volse-hubzilla-5ce5de73051e0d68d277dc189b3bcc4593d7ab8d.tar.gz volse-hubzilla-5ce5de73051e0d68d277dc189b3bcc4593d7ab8d.tar.bz2 volse-hubzilla-5ce5de73051e0d68d277dc189b3bcc4593d7ab8d.zip |
Remove unneeded divgrow library
Diffstat (limited to 'library/jquery.divgrow/jquery.divgrow-1.3.1.min.js')
-rw-r--r-- | library/jquery.divgrow/jquery.divgrow-1.3.1.min.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/library/jquery.divgrow/jquery.divgrow-1.3.1.min.js b/library/jquery.divgrow/jquery.divgrow-1.3.1.min.js deleted file mode 100644 index fd08f7fa8..000000000 --- a/library/jquery.divgrow/jquery.divgrow-1.3.1.min.js +++ /dev/null @@ -1 +0,0 @@ -(function ($) { var divgrowid = 0; $.fn.divgrow = function (options) { var options = $.extend({}, { initialHeight: 100, moreText: "+ Show More", lessText: "- Show Less", speed: 1000, showBrackets: true }, options); return this.each(function () { divgrowid++; obj = $(this); var fullHeight = obj.height() + 10; obj.css('height', options.initialHeight).css('overflow', 'hidden'); if (options.showBrackets) { obj.after('<p class="divgrow-brackets">[…]</p><a href="#" class="divgrow-showmore' + " divgrow-obj-" + divgrowid + '"' + '></a>') } else { obj.after('<a href="#" class="divgrow-showmore' + " divgrow-obj-" + divgrowid + '"' + '></a>') } $("a.divgrow-showmore").html(options.moreText); $("." + "divgrow-obj-" + divgrowid).toggle(function () { $(this).prevAll("div:first").animate({ height: fullHeight + "px" }, options.speed, function () { if (options.showBrackets) { $(this).nextAll("p.divgrow-brackets:first").fadeOut() } $(this).nextAll("a.divgrow-showmore:first").html(options.lessText) }) }, function () { $(this).prevAll("div:first").stop(true, false).animate({ height: options.initialHeight }, options.speed, function () { if (options.showBrackets) { $(this).nextAll("p.divgrow-brackets:first").stop(true, false).fadeIn() } $(this).nextAll("a.divgrow-showmore:first").stop(true, false).html(options.moreText) }) }) }) } })(jQuery);
\ No newline at end of file |