13 lines
346 B
JavaScript
13 lines
346 B
JavaScript
window.enableSelect = function (elementId) {
|
|
document.getElementById(elementId).disabled = false;
|
|
}
|
|
window.disableSelect = function (elementId) {
|
|
document.getElementById(elementId).disabled = true;
|
|
}
|
|
|
|
window.getWindowDimensions = function () {
|
|
return {
|
|
width: window.innerWidth,
|
|
height: window.innerHeight
|
|
};
|
|
}; |