PageSourceSearch

https://dropp.cc/wp-content/plugins/dropp-pay-per-use/assets/js/frontend.js?ver=v1785102099

js dropp.cc collected 2026-09-24 17:48:16 UTC 1,530 bytes, 66 lines download raw bytes

1let isDroppHtmlAdded = false;
2
3document.addEventListener( 'dropp.initialized', ( event ) => {
4	setTimeout( function () {
5		jQuery( '.droppcc-widget__restricted_content-account-info' ).each(
6			function ( index ) {
7				let widgetId = jQuery( this ).attr( 'data-dropp-paywall-id' );
8				let variableName =
9					droppcc_paywall_widget[ 'droppccPaywallInfo_' + widgetId ];
10
11				let userId =
12					'' !== droppcc_paywall_object.droppUser
13						? droppcc_paywall_object.droppUser
14						: null;
15
16				let paywallHtml = Dropp.getWpPaywallBlockHtml(
17					variableName,
18					userId, // user id from cookie
19					variableName.before,
20					'', // Bottom
21					'DroppWpPaywallCallback'
22				);
23
24				jQuery( paywallHtml ).insertAfter( this );
25			}
26		);
27	}, 0 );
28} );
29
30( function ( $ ) {
31	'use strict';
32
33	const $document = $( document );
34
35	$document.on(
36		'click',
37		'.dropp-paywall-expiry-message .dropp-close',
38		function ( e ) {
39			$( '.dropp-paywall-expiry-message' ).remove();
40		}
41	);
42} )( jQuery );
43
44function DroppWpPaywallCallback( myData ) {
45	Dropp.getAccountInfo()
46		.then( function ( res ) {
47			jQuery.ajax( {
48				type: 'post',
49				dataType: 'json',
50				url: droppcc_paywall_object.ajaxurl,
51				data: {
52					action: 'dropcc_paywall_set_cookie',
53					hederaAccount: res.hederaAccount,
54					_wpnonce: droppcc_paywall_object.nonce,
55				},
56				success: function ( response ) {
57					if ( response.data.success ) {
58						window.location.reload( true );
59					}
60				},
61			} );
62		} )
63		.catch( function ( error ) {
64			console.log( error );
65		} );
66}

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.