Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

string


Smart Truncation

Truncate a line of text in based on size of container. Allows truncation before a file extension or in the middle of the string as well.

$.format -- Python-style string formatting

An attempt to replicate, to some degree, python's percent-style string formatting. Supports positional, named, and single arguments, as well as a pluggable converter system so you can write your own converters.

Any+Time™ Datepicker/Timepicker AJAX Calendar Widget with Optional TimeZone Support

The Any+Time™ JavaScript Library includes a highly-customizable, jQuery-compatible datepicker/ timepicker (calendar/ clock widget) and a powerful Date/String parse/format utility. Use it to create a date/time picker with advanced features and options not found in other calendar/clock widgets:

DATE/TIME OPTIONS:

* 12-hour or 24-hour clock
* custom date/time format (countless possibilities, including JSON and XML)
* date-only, time-only, or specific fields!
* date/time range limits
* era-selection (BCE/CE, BC/AD, etc.)
* start week on any day (Sunday, Monday, etc.)
* custom base for 2-digit years (1900, 2000, etc.)
* UTC offsets/time zones

STYLING OPTIONS:

* custom labels/languages
* custom CSS styles
* jQuery UI Theming
* jQuery UI Theme Switcher
* jQuery ThemeRoller
* pop-up or always-present picker
* visible or hidden field

PROGRAMMER-FRIENDLY:

* easy to implement with only one statement
* easy AJAX validation
* easy Date/String conversion, including JSON and XML
* create multiple pickers at once
* easy removal
* easy to extend

USABILITY FEATURES:

* em-based relative-size
* single-click value selection
* WAI-ARIA 1.0 keyboard accessibility
* double-click select-and-dismiss

Use AnyTime.Converter to parse a String into a Date, or convert a Date to a String. Many format options are supported—in fact, most of the fields specified by the MySQL DATE_FORMAT() function!

jQuery fasterTrim

A faster version of jQuery.trim() (in versions of jQuery previous to 1.4.3) for those who need to trim a lot of strings, completely overkill for most people. It will use the native String.trim (if available) and will account for NBSPs not getting matched with \s in the regex for Internet Explorer and older versions of Safari. It also provides a function for trimming Unicode whitespace characters that might not be matched by \s or a native trim.


// this now uses the faster trim function
$.trim( " string " );
$.trimLeft( " string " ); // === "string "
$.trimRight( " string " ); // === " string"

// this uses the Levithan trim function, better for larger strings
$.levithanTrim( " string " );

// trim all whitespace including unicode characters
$.unicodeTrim( " \u3000 unicode string \u3000 " );

// OR:

// returns jQuery object with HTML trimmed
$( element ).trimHtml();

// returns jQuery object with text trimmed

Parse

This small plugins provides a simple function that evaluates a string to a primitive value (if possible).

Supported primitives:

  • Numbers: Supported formats
    • Integers f.e: 1
    • Floats f.e: 1.5
    • Hexadecimal f.e: 0xFF
    • Exponential notation f.e: 1e5

    All these formats support negative values as well.

  • Booleans: Supports "true" and "false"
  • Strings: Unrecognized strings are returned without any modification.

jqCommons

Set of plugins and utilities for jQuery that simplifies routine web application development. It includes common dialogs, XML manipulation routines, common dialogs and so on.

jQuery Plugin stringToSlug

The stringToSlug converts any string to SLUG in all Languages.

The plugin removes special characters, converts the string to lowercase and defines a space character.

Transforming a string into a url-friendly permalink.
You can use the plugin to display a view in html elements or form inputs.

It is the only plugin that removes the stress of words, exchanging letters marked by unaccented letters.

You can define which character space (hiphen or underscore for example) use.

ImageThrow

The character flies out.

And, I'm not good at English.
JQuery is learnt and the sixth day.
Please teach when there is a bug in an easy word.

jQuery Append Format

Simple plugin to append a format to an URL. Like adding '.json', '.html', '.js' at the end of the passed url.

Fork me at: http://github.com/edgarjs/jquery_append_format

Repeat a string in a jQuery object

I discovered that I needed a way to repeat a string and then insert it into a jQuery/DOM object. So I created this little bit of code to do just that.

if you have a table and need to fill in all the rows or columns you can write something like this:

$("table > tr").repeat( times, "<td></td>" );