mirror of
https://github.com/wahyd4/jQuery.print.git
synced 2026-08-09 04:46:31 +10:00
Added jsFiddle Demo
This commit is contained in:
@@ -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
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user