├── README └── jquery.jqprint-0.3.js /README: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jquery.jqprint-0.3.js: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // Eros Fratini - eros@recoding.it 3 | // jqprint 0.3 4 | // 5 | // - 19/06/2009 - some new implementations, added Opera support 6 | // - 11/05/2009 - first sketch 7 | // 8 | // Printing plug-in for jQuery, evolution of jPrintArea: http://plugins.jquery.com/project/jPrintArea 9 | // requires jQuery 1.3.x 10 | // 11 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 12 | //------------------------------------------------------------------------ 13 | 14 | (function($) { 15 | var opt; 16 | 17 | $.fn.jqprint = function (options) { 18 | opt = $.extend({}, $.fn.jqprint.defaults, options); 19 | 20 | var $element = (this instanceof jQuery) ? this : $(this); 21 | 22 | if (opt.operaSupport && $.browser.opera) 23 | { 24 | var tab = window.open("","jqPrint-preview"); 25 | tab.document.open(); 26 | 27 | var doc = tab.document; 28 | } 29 | else 30 | { 31 | var $iframe = $("