first commit
This commit is contained in:
parent
d946e6c3bf
commit
07f6c84e18
30 changed files with 2767 additions and 0 deletions
22
pixastic.jquery.js
Executable file
22
pixastic.jquery.js
Executable file
|
@ -0,0 +1,22 @@
|
|||
|
||||
if (typeof jQuery != "undefined" && jQuery && jQuery.fn) {
|
||||
jQuery.fn.pixastic = function(action, options) {
|
||||
var newElements = [];
|
||||
this.each(
|
||||
function () {
|
||||
if (this.tagName == "IMG" && !this.complete) {
|
||||
return;
|
||||
}
|
||||
var res = Pixastic.process(this, action, options);
|
||||
if (res) {
|
||||
newElements.push(res);
|
||||
}
|
||||
}
|
||||
);
|
||||
if (newElements.length > 0)
|
||||
return jQuery(newElements);
|
||||
else
|
||||
return this;
|
||||
};
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue