PageSourceSearch

https://cfu.org/wp-content/plugins/views-for-wpforms-single-entry/…/wpf-views-single-entry-print.js?ver=2.1.1

js cfu.org collected 2026-10-05 07:17:26 UTC 1,930 bytes, 46 lines download raw bytes

1( function ( $ ) {
2	$( function () {
3		$( document ).on( 'click', '.wpf-print-single-entry', function ( e ) {
4			e.preventDefault();
5
6			// Check if we're in a popup or on a regular page
7			var $popup = $( '#wpf-single-entry-popup.wpf-popup-active' );
8			var prtContent;
9
10			if ( $popup.length > 0 ) {
11				// We're in a popup - get content from popup container
12				prtContent = $popup.find( '.wpf-single-entry-popup-content' ).html();
13			} else {
14				// We're on a regular single entry page
15				prtContent = $( '.single-entry-view-cont' ).html();
16			}
17
18			if ( !prtContent ) {
19				console.error( 'WPForms Views: No content found to print' );
20				return;
21			}
22
23			var views_url = wpf_single_entry.wpf_views_plugin_url;
24			var single_entry_url = wpf_single_entry.wpf_single_entry_plugin_url;
25			var WinPrint = window.open( '', '', 'left=0,top=0,width=1200,height=900,toolbar=0,scrollbars=0,status=0' );
26			WinPrint.document.write( '<link rel="stylesheet" id="pure-css-css" href="' + views_url + '/assets/css/pure-min.css?ver=5.8.2" type="text/css" media="all">' );
27			WinPrint.document.write( '<link rel="stylesheet" id="wpforms-views-front-css"  href="' + views_url + '/assets/css/wpforms-views-display.css?ver=5.8.2" type="text/css" media="all">' );
28			WinPrint.document.write( '<link rel="stylesheet" id="wpforms-views-print-entry-css"  href="' + single_entry_url + '/assets/css/wpf-views-single-entry-print.css?ver=5.8.2" type="text/css" media="all">' );
29			WinPrint.document.write( '<div class="single-entry-view-cont">' + prtContent + '</div>' );
30
31			$( WinPrint.document ).find( '.wpf-print-single-entry' ).parents( '.field-html' ).hide();
32			$( WinPrint.document )
33				.find( '.wpf-view-row .wpf-view-col' )
34				.each( function () {
35					$( this ).removeClass( 'pure-u-1' );
36				} );
37
38			WinPrint.focus();
39			setTimeout( function () {
40
41				WinPrint.print();
42				//WinPrint.close();
43			}, 2000 );
44		} );
45	} );
46} )( jQuery );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.