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

Function handelUpdate

piceditor/main.js:5–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5function handelUpdate() {
6 const suffix = this.dataset.sizing || '';
7 // sizing is data property set in indexedDB.html
8 document.documentElement.style.setProperty(`--${this.name}`,this.value+suffix);
9 // set property function syntax is setProperty('whixh variable is to changed , what should be its new value ')
10
11 console.log(this.value);
12
13}
14
15inputs.forEach(input => input.addEventListener('change', handelUpdate));
16inputs.forEach(input => input.addEventListener('mousemove', handelUpdate));

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected