PageSourceSearch

https://www.mjr.gmbh/wp-content/cache/wpfc-minified/2p5b9wwb/64042.js

js mjr.gmbh collected 2026-10-07 07:34:12 UTC 4,031 bytes, 24 lines download raw bytes

1(function(){'use strict';function cf7appsRestoreHoneypotTabindex(context){var root=context&&context.querySelectorAll?context:document;root.querySelectorAll('[data-cf7apps-honeypot] input[type="text"]').forEach(function(input){var tabindex=input.getAttribute('data-cf7apps-tabindex');if((null===tabindex||''===tabindex)&&typeof jQuery!=='undefined'){tabindex=jQuery(input).data('tabindex');}
2if(null===tabindex||''===tabindex){tabindex='-1';}
3input.setAttribute('tabindex',String(tabindex));});}
4function cf7appsBindPopupMakerCompatibility(){if(typeof jQuery==='undefined'){return;}
5jQuery(document).on('pumInit pumAfterOpen','.pum',function(){var popup=this;window.setTimeout(function(){cf7appsRestoreHoneypotTabindex(popup);},0);});}
6cf7appsBindPopupMakerCompatibility();function applyHoneypotRefill(form,honeypotData){if(!form||!honeypotData||typeof honeypotData!=='object'){return;}
7Object.keys(honeypotData).forEach(function(fieldName){const token=honeypotData[fieldName];if(!token||!token.random_hash||!token.field_name){return;}
8const wrapper=form.querySelector('[data-cf7apps-honeypot="'+fieldName+'"]')||form.querySelector('.wpcf7-form-control-wrap.'+fieldName+'-wrap');if(!wrapper){return;}
9const hashInput=form.querySelector('input[name="'+fieldName+'-random-hash"]');if(hashInput){hashInput.value=token.random_hash;}
10const timeTokenInput=form.querySelector('input[name="'+fieldName+'-time-token"]');if(timeTokenInput&&token.time_token){timeTokenInput.value=token.time_token;}else if(token.time_token){const newTimeInput=document.createElement('input');newTimeInput.type='hidden';newTimeInput.name=fieldName+'-time-token';newTimeInput.value=token.time_token;if(wrapper){wrapper.appendChild(newTimeInput);}else if(hashInput&&hashInput.parentNode){hashInput.parentNode.appendChild(newTimeInput);}}
11const honeypotInput=wrapper.querySelector('input.wpcf7-form-control[type="text"]');if(honeypotInput){honeypotInput.setAttribute('name',token.field_name);honeypotInput.value='';cf7appsRestoreHoneypotTabindex(form);}});}
12function syncHoneypotInputValues(form){if(!form){return;}
13form.querySelectorAll('[data-cf7apps-honeypot]').forEach(function(wrapper){const honeypotInput=wrapper.querySelector('input.wpcf7-form-control[type="text"]');if(!honeypotInput){return;}
14const attributeValue=honeypotInput.getAttribute('value');if(attributeValue&&!honeypotInput.value){honeypotInput.value=attributeValue;}});}
15function bindHoneypotRefillEvents(form){if(!form||form.dataset.cf7appsHoneypotBound){return;}
16if(!form.querySelector('[data-cf7apps-honeypot]')){return;}
17form.dataset.cf7appsHoneypotBound='1';form.addEventListener('submit',function(){syncHoneypotInputValues(form);},true);form.addEventListener('wpcf7reset',function(event){if(event.detail&&event.detail.apiResponse&&event.detail.apiResponse.honeypot){applyHoneypotRefill(form,event.detail.apiResponse.honeypot);}});form.addEventListener('wpcf7submit',function(event){if(event.detail&&event.detail.status==='spam'){return;}
18if(event.detail&&event.detail.apiResponse&&event.detail.apiResponse.honeypot){applyHoneypotRefill(form,event.detail.apiResponse.honeypot);}});}
19function initHoneypotRefill(){if(typeof wpcf7==='undefined'){return;}
20if(typeof wpcf7.submit==='function'&&!wpcf7.__cf7appsHoneypotSubmitWrapped){const originalSubmit=wpcf7.submit;wpcf7.submit=function(form,options){if(form instanceof HTMLFormElement){syncHoneypotInputValues(form);}
21return originalSubmit.call(this,form,options);};wpcf7.__cf7appsHoneypotSubmitWrapped=true;}
22const forms=document.querySelectorAll('.wpcf7 > form');forms.forEach(function(form){bindHoneypotRefillEvents(form);if(!form.querySelector('[data-cf7apps-honeypot]')){return;}
23const forceRefill=(typeof wpcf7!=='undefined'&&wpcf7.cached)||(typeof cf7appsHoneypotRefill!=='undefined'&&cf7appsHoneypotRefill.forceRefillOnInit);if(forceRefill&&typeof wpcf7.reset==='function'){wpcf7.reset(form);}});}
24if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',initHoneypotRefill);}else{initHoneypotRefill();}})();

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.