PageSourceSearch

https://www.finance-magazin.de/wp-content/cache/min/1/wp-content/p…/js/px-multiples-public.js?ver=1790843733

js finance-magazin.de collected 2026-10-02 06:41:31 UTC 4,775 bytes, 16 lines download raw bytes

1(function($){'use strict';updateInputValues();$('.pxmultiple-container .input input[type="text"]').focus(function(){$(this).val(setDotSeparators($(this).val()));$(this).keyup(function(e){$(this).val(setDotSeparators($(this).val()))})});$('.pxmultiple-container .input input[type="text"]').focusout(function(){var inputField=$(this);$('.pxmultiple-container .input input[data-view="'+inputField.attr('id')+'"]').val(inputField.val().replace(/[^0-9]/g,''))});function updateInputValues(){$('.pxmultiple-container .input input[type="text"]').each(function(){$(this).val(setDotSeparators($(this).val()));var inputField=$(this);$('.pxmultiple-container .input input[data-view="'+inputField.attr('id')+'"]').val(inputField.val().replace(/[^0-9]/g,''))})}
2const $revenueInput=$('.pxmultiple-container .input input[type="text"]#revenueView');if($revenueInput.length>0){updateInfoBoxVisibility($revenueInput);$revenueInput.keyup(function(){updateInfoBoxVisibility($(this))})}
3function updateInfoBoxVisibility($revenueInput){const revenueInt=parseInt($revenueInput.val().replace(/[^0-9]/g,''),10)||0;const $infoBox=$('.pxmultiples-calculator-info-box');const $infoFields=$('.pxmultiples-calculator-info-box-value');$infoFields.hide();$infoBox.hide();if(revenueInt===0){return}
4$infoFields.each(function(){const min=parseInt($(this).data('revenue-min'),10)||0;const max=$(this).data('revenue-max')!==undefined?parseInt($(this).data('revenue-max'),10):null;if(max!==null){if(revenueInt>=min&&revenueInt<=max){$(this).show();$infoBox.show()}}else{if(revenueInt>=min){$(this).show();$infoBox.show()}}})}
5function setDotSeparators(value){value=value.replace(/[^0-9]/g,'');var valueLength=value.length;var separatorOffset=3;var newValue='';for(var i=valueLength;i>0;i){if(i>3){newValue="."+value.substr((i-separatorOffset),separatorOffset)+newValue}else{newValue=value.substr(0,i)+newValue}
6i=(i-separatorOffset)}
7return newValue}})(jQuery);const stepInfo=document.getElementById('stepInfo');const stepProgress=document.getElementById('stepProgress');const navLeftButtons=document.querySelectorAll('.pxmultiples-calculator-form-navLeft');const navRightButtons=document.querySelectorAll('.pxmultiples-calculator-form-navRight');const multiplesCalcForm=document.getElementById('pxmultiples-calculator-form');const formSteps=document.querySelectorAll('.pxmultiples-calculator-step');let currentStep=0;function updateStepVisibility(scrollToTop=!1){if(formSteps){formSteps.forEach((step)=>{step.style.display='none'});if(formSteps[currentStep]){formSteps[currentStep].style.display='block'}
8if(stepInfo){stepInfo.textContent=`Schritt ${currentStep + 1} von ${formSteps.length}`}
9if(stepProgress){stepProgress.dataset.currentStep=`${currentStep + 1}`;const percentage=((currentStep+1)/formSteps.length)*100;stepProgress.style.setProperty("--progress-width",percentage+"%")}
10navLeftButtons.forEach(navLeft=>{navLeft.style.display=(currentStep===0)?'none':'block'});navRightButtons.forEach(navRight=>{navRight.style.display=(currentStep===formSteps.length-1)?'none':'block'});if(scrollToTop&&stepInfo){const headerOffset=document.querySelector('.td-header-template-wrap')?.offsetHeight||100;const elementPosition=stepInfo.getBoundingClientRect().top;const offsetPosition=elementPosition+window.scrollY-headerOffset-35;window.scrollTo({top:offsetPosition,behavior:"smooth"})}}}
11function validateStep(stepElement){const fields=stepElement.querySelectorAll('input:not([type="hidden"]):not([disabled]), select:not([disabled]), textarea:not([disabled])');for(const field of fields){if(!field.checkValidity()){field.reportValidity();try{field.focus()}catch(_){}
12return!1}}
13return!0}
14document.addEventListener('DOMContentLoaded',()=>{updateStepVisibility();navLeftButtons.forEach(navLeft=>{navLeft.addEventListener('click',()=>{if(currentStep>0){currentStep--;updateStepVisibility(!0)}})});navRightButtons.forEach(navRight=>{navRight.addEventListener('click',(e)=>{const stepElement=formSteps[currentStep];if(stepElement&&!validateStep(stepElement)){e.preventDefault();return}
15if(currentStep<formSteps.length-1){currentStep++;updateStepVisibility(!0)}})});if(multiplesCalcForm){multiplesCalcForm.addEventListener('submit',(e)=>{(function($){const cookieName=multiplesCalcForm.dataset?.cookieName;if(cookieName){const formDataJq=$(multiplesCalcForm).serializeJSON();const payload=formDataJq.multiplesCalculation||{};let cookieValue=JSON.stringify(payload);if(cookieValue){cookieValue=encodeURIComponent(cookieValue)}
16if(cookieValue.length<2000){document.cookie=cookieName+'='+cookieValue+'; path=/; max-age='+(180*24*60*60)+'; samesite=lax'}}})(jQuery)})}});jQuery('.px-expand-btn').click(function(e){jQuery(this).siblings('.max-height-box-content').toggleClass('expand');jQuery('.px-expand-btn').toggle()})

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.