{"size": 1695, "ext": "js", "max_stars_repo_path": "_scripts/tetris/resizer.js", "max_stars_repo_name": "pearsandstuff/pearsandstuff.github.io", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "_scripts/tetris/resizer.js", "max_issues_repo_name": "pearsandstuff/pearsandstuff.github.io", "max_issues_repo_issues_event_min_datetime": "2021-09-28T04:59:45.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T09:30:06.000Z", "max_forks_repo_path": "_scripts/tetris/resizer.js", "max_forks_repo_name": "pearsandstuff/pearsandstuff.github.io", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 44.6052631579, "max_line_length": 123, "alphanum_fraction": 0.615339233}
!function() {
	function resize() {
		let height = window.innerHeight;
		let width = window.innerWidth;

		if (height < width / 20 * 18) {
			grid.style.flexBasis = `${height * 10 / 18 / width * 100}%`;
			leftFill.style.flexBasis = rightFill.style.flexBasis = `${(1 - (height * 10 / 18 / width)) / .02}%`;
			rightContainer.style.width = `${(height * 10 / 18 / width * 100) / (1 - (height * 10 / 18 / width))}%`;
		} else if (height < width / 15 * 18) {
			grid.style.flexBasis = `${height * 10 / 18 / width * 100}%`;
			leftFill.style.flexBasis = `${(100 - (height * 10 / 18 / width * 150)) / 2}%`;
			rightFill.style.flexBasis = "";
			rightContainer.style.width = `${((height * 10 / 18 / width) / 2) / ((1 - (height * 10 / 18 / width) / 2) / 2) * 100}%`;
		} else if (height < width / 15 * 23) {
			grid.style.flexBasis = "";
			leftFill.style.flexBasis = rightFill.style.flexBasis = "";
			rightContainer.style.width = "100%";
		} else {
			grid.style.flexBasis = `${height * 10 / 23 / width * 100}%`;
			leftFill.style.flexBasis = rightFill.style.flexBasis = `${(1 - (height * 10 / 23 / width)) / .02}%`;
			uPreview.style.width = `${height / 23 * 4}px`;
		}

		if (window.game && game.started) {
			game.minoWidth = grid.getBoundingClientRect().width / 10;
		}
	}

	let grid = document.getElementById("grid_container");
	let leftFill = document.getElementById("left_fill");
	let rightFill = document.getElementById("right_fill");
	let rightContainer = document.getElementById("right_container");
	let uPreview = document.getElementById("u_preview_container");
 
	window.addEventListener("load", resize);
	window.addEventListener("resize", resize);
}();