MultiplayerMinesweeper/client/scripts/display/html.js
Alexander Bass ee9aa12d19 cleanup
2023-04-03 15:34:28 -04:00

21 lines
599 B
JavaScript

export var canvas = document.getElementById('canvas');
export var ctx = canvas.getContext('2d');
export var wrapper = document.getElementById('game');
// scaleEverythingGood()
//
// window.addEventListener('resize', scaleEverythingGood);
//
// function scaleEverythingGood() {
// const width = window.innerWidth-2;
// const height = window.innerHeight-2;
// let canvasWidth
// if (canvas.width > canvas.height) {
// canvasWidth = Math.max(width, height)
// } else {
// canvasWidth = width
// }
// canvasWidth = canvasWidth/4
// canvas.style.width = `${canvasWidth}px`;
// }