"use strict"; /*global jQuery */ /*! * Lettering.JS 0.6.1 * * Copyright 2010, Dave Rupert http://daverupert.com * Released under the WTFPL license * http://sam.zoy.org/wtfpl/ * * Thanks to Paul Irish - http://paulirish.com - for the feedback. * * Date: Mon Sep 20 17:14:00 2010 -0600 */ (function ($) { function injector(t, splitter, klass, after) { var a = t.text().split(splitter), inject = ''; if (a.length) { $(a).each(function (i, item) { inject += '<span class="' + klass + (i + 1) + '">' + item + '</span>' + after; }); t.empty().append(inject); } } var methods = { init: function init() { return this.each(function () { injector($(this), '', 'char', ''); }); }, words: function words() { return this.each(function () { injector($(this), ' ', 'word', ' '); }); }, lines: function lines() { return this.each(function () { var r = "eefec303079ad17405c889e092e105b0"; // Because it's hard to split a <br/> tag consistently across browsers, // (*ahem* IE *ahem*), we replaces all <br/> instances with an md5 hash // (of the word "split"). If you're trying to use this plugin on that // md5 hash string, it will fail because you're being ridiculous. injector($(this).children("br").replaceWith(r).end(), r, 'line', ''); }); } }; $.fn.lettering = function (method) { // Method calling logic if (method && methods[method]) { return methods[method].apply(this, [].slice.call(arguments, 1)); } else if (method === 'letters' || !method) { return methods.init.apply(this, [].slice.call(arguments, 0)); // always pass an array } $.error('Method ' + method + ' does not exist on jQuery.lettering'); return this; }; })(jQuery);
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
animate-dynamic.js | File | 17.06 KB | 0644 |
|
dynamic-text.js | File | 32.9 KB | 0644 |
|
iframeResizer.contentWindow.js | File | 33.76 KB | 0644 |
|
iframeResizer.contentWindow.min.js | File | 13.3 KB | 0644 |
|
iframeResizer.js | File | 31.47 KB | 0644 |
|
iframeResizer.min.js | File | 12.15 KB | 0644 |
|
imagesloaded.pkgd.min.js | File | 5.46 KB | 0644 |
|
img-previewer.js | File | 19.21 KB | 0644 |
|
img-previewer.min.js | File | 8.7 KB | 0644 |
|
isotope.pkgd.js | File | 89.26 KB | 0644 |
|
jquery-numerator.js | File | 4.04 KB | 0644 |
|
jquery-numerator.min.js | File | 1.86 KB | 0644 |
|
jquery.animation.js | File | 4.83 KB | 0644 |
|
jquery.animation.min.js | File | 936 B | 0644 |
|
jquery.event.move.js | File | 14.19 KB | 0644 |
|
jquery.lettering.js | File | 1.8 KB | 0644 |
|
jquery.lettering.min.js | File | 705 B | 0644 |
|
jquery.textillate.js | File | 11.02 KB | 0644 |
|
jquery.textillate.min.js | File | 5.35 KB | 0644 |
|
jquery.twentytwenty.js | File | 5.29 KB | 0644 |
|
jquery.twentytwenty.min.js | File | 5.29 KB | 0644 |
|
lightbox.js | File | 19.56 KB | 0644 |
|
lightbox.min.js | File | 10.14 KB | 0644 |
|
masonry.pkgd.js | File | 61.83 KB | 0644 |
|
minimasonry.js | File | 7.32 KB | 0644 |
|
sp-animateeffects.js | File | 31.58 KB | 0644 |
|
sp-animateeffects.min.js | File | 10.47 KB | 0644 |
|
sp-scripts.js | File | 44.93 KB | 0644 |
|
sp-scripts.min.js | File | 23.33 KB | 0644 |
|
toolbar.js | File | 3.58 KB | 0644 |
|
tooltipster.bundle.min.js | File | 38.96 KB | 0644 |
|
tsparticles.js | File | 289.76 KB | 0644 |
|
tsparticles.min.js | File | 137.33 KB | 0644 |
|
tubular.js | File | 6.81 KB | 0644 |
|
xdLocalStorage.js | File | 4.33 KB | 0644 |
|