diff options
[WGL/P] Added coordinates in the top left corner
1 files changed, 11 insertions, 0 deletions
| -rw-r--r-- | Year 2/Computer Graphics with WebGL/Project/menu.js | 11 |
diff --git a/Year 2/Computer Graphics with WebGL/Project/menu.js b/Year 2/Computer Graphics with WebGL/Project/menu.js index 9b61ef7..0b56d2b 100644 --- a/Year 2/Computer Graphics with WebGL/Project/menu.js +++ b/Year 2/Computer Graphics with WebGL/Project/menu.js @@ -30,6 +30,17 @@ function verChange() { verChange.call(onlyVerticalCB); onlyVerticalCB.addEventListener('change', verChange); +coordsElem = document.getElementById('coordinates'); +const coordsCB = document.getElementById('coordinates-cb'); +function coordscbChange() { + if (this.checked) + coordsElem.classList.remove('hide'); + else + coordsElem.classList.add('hide'); +} +coordscbChange.call(coordsCB); +coordsCB.addEventListener('change', coordscbChange); + /* Levels */ const levelSelect = document.getElementById('level-select'); |
