Added jsFiddle Demo

This commit is contained in:
Sathvik P
2012-07-17 20:23:26 +05:30
parent 7bedef46d7
commit f83dca1b61
2 changed files with 8 additions and 8 deletions
+2 -1
View File
@@ -20,5 +20,6 @@ Include it in your HTML after importing jQuery, like:
[CC-BY](http://creativecommons.org/licenses/by/3.0/).
## Live at
Comming Soon ...
[jsFiddle](http://jsfiddle.net/5V24U/2/)
Do let me know if you are using it and would like to be featured here
+6 -7
View File
@@ -59,8 +59,7 @@
}
if (options.stylesheet) {
// Add a custom stylesheet if given
styles = $.merge(styles, $('<link rel="stylesheet" href="'
+ stylesheet + '">'));
styles = $.merge(styles, $('<link rel="stylesheet" href="' + stylesheet + '">'));
}
var copy = $this.clone(); // Create a copy of the element to print
@@ -96,7 +95,7 @@
w.close();
}
return this;
}
};
$.fn.setupPrintLink = function() {
// Add a link to print a given set of elements
@@ -158,8 +157,7 @@
}
if (options.stylesheet) {
// Add a custom stylesheet if given
styles = $.merge(styles, $('<link rel="stylesheet" href="'
+ stylesheet + '">'));
styles = $.merge(styles, $('<link rel="stylesheet" href="' + stylesheet + '">'));
}
// var scripts = $("script"); //Un-Comment if you want scripts to be
@@ -213,5 +211,6 @@
});
});
return this;
}
})(jQuery);
};
})(jQuery);