MCPcopy Create free account
hub / github.com/codemistic/Web-Development / handleInput

Function handleInput

index.js:6–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4 const inputs=document.querySelectorAll('.controls input')
5
6 function handleInput(){
7 const suffix=this.dataset.sizing || '';
8 document.documentElement.style.setProperty(`--${this.name}`, this.value + suffix);
9 }
10
11
12 inputs.forEach(input=> input.addEventListener('change', handleInput));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected