PageSourceSearch

https://blackmilkclothing.com/cdn/shop/t/500/assets/personalised-fields-BZgafy4i.js

js blackmilkclothing.com collected 2026-09-25 04:21:31 UTC 1,425 bytes, 1 lines download raw bytes

1const a={name:"[data-personaliser-name-counter]",number:"[data-personaliser-number-counter]"};function r(){class n extends HTMLElement{constructor(){super(),this.fields=[{name:"Personalised - Name"},{name:"Personalised - Number"}],this.fields.forEach(e=>{const t=this.querySelector(`[name="properties[${e.name}]"]`);t.addEventListener("keydown",this.validateInput.bind(this)),t.addEventListener("paste",this.validateInput.bind(this)),t.addEventListener("keyup",this.updateCount.bind(this))})}updateCount(e){e.target.name=="properties[Personalised - Name]"?document.querySelector(a.name).innerHTML=e.target.value.length:e.target.name=="properties[Personalised - Number]"&&(document.querySelector(a.number).innerHTML=e.target.value.length)}validateInput(e){if(e.type=="paste"){const t=(e.clipboardData||window.clipboardData).getData("text");e.target.name==="properties[Personalised - Name]"?t.match(/^[a-zA-Z]+$/)||e.preventDefault():e.target.name==="properties[Personalised - Number]"&&(t.match(/^[0-9]+$/)||e.preventDefault())}else{const t=["Backspace","ArrowLeft","ArrowRight","Delete","Tab"];e.target.name=="properties[Personalised - Name]"?!(e.key.length===1&&e.key.match(/[a-z]/i))&&!t.includes(e.key)&&e.preventDefault():e.target.name=="properties[Personalised - Number]"&&!(e.key.length===1&&e.key.match(/[0-9]/))&&!t.includes(e.key)&&e.preventDefault()}}}customElements.define("personalised-fields",n)}export{r as i};

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.