/*! * jQuery Print Previw Plugin v1.0.1 * * Copyright 2011, Tim Connell * Licensed under the GPL Version 2 license * http://www.gnu.org/licenses/gpl-2.0.html * * Date: Wed Jan 25 00:00:00 2012 -000 */ (function($) { // Initialization $.fn.printPreview = function() { this.each(function() { $(this).bind('click', function(e) { e.preventDefault(); if (!$('#print-modal').length) { $.printPreview.loadPrintPreview( $(this) ); setTimeout(() => $('.print').focus(), 1000); } }); }); return this; }; // Private functions var mask, size, print_modal, print_controls; $.printPreview = { loadPrintPreview: function( el ) { // Declare DOM objects print_modal = $(''); print_controls = $('