This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Output font-size (and line-height) in rem with px fallback | |
* | |
* After declaring a font-size of 100% on the html tag, you should use the | |
@font_size for all other font-size declarations. | |
* | |
* @code | |
* html { | |
* font: 100%/1.4 "Times New Roman", Times, Serif normal; | |
* } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This gist has moved: http://www.intheloftstudios.com/packages/jquery/jquery.viewport_class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Equal Heights Plugin | |
* Equalize the heights of all child elements to the tallest child | |
* | |
* @param object options | |
* - filter: An optional selector string to filter which children are considered. | |
* - not: An optional selector string to filter which children are NOT considered. | |
* - target: Additional selector of targets where height will be applied; these nodes | |
will not be used to calculate height, but will ONLY receive the calculated | |
height. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adds method arg to the Drupal object for grabbing url args | |
* | |
* @author Aaron Klump, In the Loft Studios, LLC | |
* @see http://www.intheloftstudios.com | |
* @see http://gist.github.com/3078482 | |
* | |
* For use in a theme or module add the following to your .info file | |
* @code | |
* scripts[] = [path to js dir]/drupal.arg.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Smooth scroll to anchors | |
* | |
* Looks first for a dom with id of the href fragment of the link; then it looks | |
for an dom element by name=fragment | |
* | |
* @param function callback | |
* onClick callback function receives two params jQuery objects: link, target | |
* @param object options | |
* - distance: int |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This has moved to http://www.intheloftstudios.com/packages/jquery/jquery.loft_labels |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Form Element Width Equalizer Plugin (Optimized for Drupal FAPI) | |
* | |
* Adjusts the widths of child elements to a set pixel dimension. | |
* | |
* Makes all text fields and text areas (or other as specified in | |
* options.elements) equal widths by subracting the css properties of: margin, | |
* border and padding from each element. | |
* | |
* If width is omitted then all elements will have their width matched to $(this) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This has been moved to http://www.intheloftstudios.com/packages/jquery/jquery.running_clock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adds a Check All Option to a group of Checkboxes in Drupal jQuery Plugin | |
* | |
* To make this work you need pass to this function, a div that is a decendent | |
of a form and an ancestor of multiple checkboxes. It is specifically tuned to | |
drupal, but can be used for any html by setting the options. Here's and | |
example, where .form-item-list is fapi element of type checkboxes. | |
* | |
* @code | |
* $('#my-form .form-item-list').drupalCheckAll(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create a searchable list by textfield jQuery Plugin | |
* | |
* @param object $input | |
* A jQuery object of a textfield to use as the search box | |
* @param options | |
* code: the ascii code of the key to use for lookup; when this is pressed | |
the list will be searched, defaults to 13 for the Return key. | |
* auto: min length needed before it will autosearch, for large lists | |
setting this too low results in poor performance. Set this to 0 to turn off |
OlderNewer