mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
aabc715086
Fixed canvas trimming history, added proper setting management for the pixel grid.
12 lines
376 B
JavaScript
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;
|
|
} |