PageSourceSearch

https://www.jugendarbeit-staerken.de/wp-content/plugins/wp-simple-…/loginbot.js?ver=18.1.2&mtime=1686998463

js jugendarbeit-staerken.de collected 2026-10-08 20:38:32 UTC 3,231 bytes, 111 lines download raw bytes

1var iCWP_WPSF_LoginGuard_Gasp = new function () {
2
3	this.initialise = function () {
4		jQuery( document ).ready( function () {
5			if ( typeof icwp_wpsf_vars_lpantibot !== 'undefined' ) {
6
7				jQuery( icwp_wpsf_vars_lpantibot.form_selectors ).each(
8					function ( _ ) {
9						if ( this !== null ) {
10							if ( icwp_wpsf_vars_lpantibot.flags.captcha ) {
11								insertPlaceHolder_Recap( this );
12							}
13							if ( icwp_wpsf_vars_lpantibot.flags.gasp ) {
14								insertPlaceHolder_Gasp( this );
15							}
16						}
17					}
18				);
19
20				jQuery( 'form' ).each(
21					function ( _ ) {
22						if ( this !== null ) {
23							cleanDuplicates( this );
24						}
25					}
26				);
27
28				jQuery( 'p.shield_gasp_placeholder' ).each(
29					function ( _ ) {
30						if ( this !== null ) {
31							processPlaceHolder_Gasp( this );
32						}
33					}
34				);
35			}
36		} );
37	};
38
39	var insertPlaceHolder_Recap = function ( form ) {
40		var recap_div = document.createElement( 'div' );
41		recap_div.classList.add( 'icwpg-recaptcha' );
42		jQuery( recap_div ).insertBefore( jQuery( ':submit', form ) );
43	};
44
45	var cleanDuplicates = function ( form ) {
46		let $placeHolders = jQuery( 'p.shield_gasp_placeholder', form );
47		if ( $placeHolders.length > 1 ) {
48			$placeHolders.each(
49				function ( nkey ) {
50					if ( nkey > 0 && this !== null ) {
51						jQuery( this ).remove();
52					}
53				}
54			);
55		}
56	};
57
58	var insertPlaceHolder_Gasp = function ( form ) {
59		if ( jQuery( 'p.shield_gasp_placeholder', form ).length === 0 ) {
60			let the_p = document.createElement( "p" );
61			the_p.classList.add( 'shield_gasp_placeholder' );
62			the_p.innerHTML = icwp_wpsf_vars_lpantibot.strings.loading + '…';
63			jQuery( the_p ).insertBefore( jQuery( ':submit', form ) );
64		}
65	};
66
67	var processPlaceHolder_Gasp = function ( shiep ) {
68		var shieThe_lab = document.createElement( "label" );
69		var shieThe_txt = document.createTextNode( ' ' + icwp_wpsf_vars_lpantibot.strings.label );
70		var shieThe_cb = document.createElement( "input" );
71
72		shiep.style.display = "inherit";
73
74		let $oPH = jQuery( shiep );
75		if ( [ 'p', 'P' ].includes( $oPH.parent()[ 0 ].nodeName ) ) {
76			/** prevent nested paragraphs */
77			jQuery( shiep ).insertBefore( $oPH.parent() )
78		}
79
80		let parentForm = $oPH.closest( 'form' );
81		if ( parentForm.length > 0 ) {
82			parentForm[ 0 ].addEventListener( "mouseover", function () {
83				if ( !shieThe_cb.checked ) {
84					// shieThe_cb.checked = true;
85				}
86			} );
87			parentForm[ 0 ].onsubmit = function () {
88				if ( !shieThe_cb.checked ) {
89					alert( icwp_wpsf_vars_lpantibot.strings.alert );
90					shiep.style.display = "inherit";
91				}
92				return shieThe_cb.checked;
93			};
94
95			var shishoney = document.createElement( "input" );
96			shishoney.type = "hidden";
97			shishoney.name = "icwp_wpsf_login_email";
98			parentForm[ 0 ].appendChild( shishoney );
99		}
100
101		shiep.innerHTML = '';
102
103		shieThe_cb.type = "checkbox";
104		shieThe_cb.name = icwp_wpsf_vars_lpantibot.cbname;
105		shieThe_cb.id = '_' + shieThe_cb.name;
106		shiep.appendChild( shieThe_lab );
107		shieThe_lab.appendChild( shieThe_cb );
108		shieThe_lab.appendChild( shieThe_txt );
109	};
110}();
111iCWP_WPSF_LoginGuard_Gasp.initialise();

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.