mirror of
https://github.com/simon987/simon987.net.git
synced 2025-04-10 14:06:41 +00:00
param size
This commit is contained in:
parent
2c318fa4df
commit
a759dc22c7
@ -8,8 +8,11 @@ import Grid from '../Grid';
|
||||
|
||||
window.onload = () => {
|
||||
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const size = urlParams.get('size');
|
||||
|
||||
let grid = new Grid(
|
||||
window.innerWidth < 1000 ? 20 : 30,
|
||||
size ? size : window.innerWidth < 1000 ? 20 : 30,
|
||||
window.innerWidth < 1000 ? 80 : 40,
|
||||
);
|
||||
grid.setup();
|
||||
|
Loading…
x
Reference in New Issue
Block a user