PageSourceSearch

https://go.designdata.com/hubfs/hub_generated/module_assets/1/1927…/module_PriceCalculator.min.js

js designdata.com collected 2026-10-03 20:56:19 UTC 1,592 bytes, 2 lines download raw bytes

1var module_192725756841=void document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".staff-calculator").forEach(function(el){var key,uid=el.id.split("-")[1],urlStaff=(el.dataset.cost,key="number_of_staff__price_calculator_",new URLSearchParams(window.location.search).get(key)),initialStaff=isNaN(urlStaff)?+el.dataset.staff:+urlStaff,inputEl=document.getElementById("staffInput-"+uid),outputEl=document.getElementById("costOutput-"+uid),formEl=el.closest("form"),lowerMultiple=+el.dataset.lowermultiple,highMultiple=+el.dataset.highmultiple,lowBase=+el.dataset.lowbase,highbase=+el.dataset.highbase;function formatCurrency(amount){return new Intl.NumberFormat("en-CA",{style:"currency",currency:"CAD"}).format(amount)}function calculate(count){var lowTotal=count*lowerMultiple+lowBase,highTotal=count*highMultiple+highbase;if(outputEl.textContent=count>0?"Your Estimated Pricing Snapshot is "+formatCurrency(lowTotal)+" - "+formatCurrency(highTotal):"",formEl){var lowField=formEl.querySelector('input[name="calculated_low_estimate"]'),highField=formEl.querySelector('input[name="calculated_high_estimate"]');lowField&&highField&&count>0&&(lowField.value=lowTotal.toFixed(2),highField.value=highTotal.toFixed(2))}}inputEl.addEventListener("input",function(e){var v=parseInt(e.target.value,10);!isNaN(v)&&v>=0?calculate(v):outputEl.textContent=""}),inputEl.value=initialStaff,calculate(initialStaff)})});
2//# sourceURL=https://20780944.fs1.hubspotusercontent-na1.net/hubfs/20780944/hub_generated/module_assets/1/192725756841/1762198751727/module_PriceCalculator.js

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.