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
| $.fn.flash = function (options) { | |
| options = $.extend({ | |
| animation: 200, | |
| off: 0, | |
| on: 1000 | |
| }, options || {}); | |
| var elems = $(this), | |
| f = function () { | |
| elems | |
| .animate({opacity: 0}, options.animation) |
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
| (function ($) { | |
| // From http://forloop.co.uk/blog/wrap-child-elements-in-groups-in-jquery | |
| // Modified to work much simpler | |
| $.fn.wrapGroups = function(options) { | |
| options = $.extend({ | |
| groupSize : false, | |
| groupCount: false, | |
| wrapper : '<div>' | |
| }, options || {}); | |
| var elems = $(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
| // Regexps courtesy of 1st class media | |
| // http://www.1stclassmedia.co.uk/developers/clean-ms-word-formatting.php | |
| function tidy_office_html($str) { | |
| $replacements = array( | |
| '/<!--.*?-->/s' => '', | |
| '/<o:p>\s*<\/o:p>/s' => '', | |
| '/<o:p>.*?<\/o:p>/s' => " ", | |
| '/\s*mso-[^:]+:[^;"]+;?/i' => '', | |
| '/\s*MARGIN: 0cm 0cm 0pt\s*;/i' => '', | |
| '/\s*MARGIN: 0cm 0cm 0pt\s*"/i' => '', |
NewerOlder