pixel-editor/_ext/scripts/utilities/getSetValue.js
unsettledgames aabc715086 Finished todo list for current contribution
Fixed canvas trimming history, added proper setting management for the pixel grid.
2020-09-29 19:10:50 +02:00

12 lines
376 B
JavaScript

function getValue(elementId) {
var element = (typeof elementId == 'string' ? document.getElementById(elementId) : elementId);
console.log("setting: " + elementId + ": " + element.value);
return element.value;
}
function setValue(elementId, value) {
var element = (typeof elementId == 'string' ? document.getElementById(elementId) : elementId);
element.value = value;
}