{"size": 577, "ext": "js", "max_stars_repo_path": "client/commands/fullscreen.js", "max_stars_repo_name": "asiddeley/CADBAH", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/commands/fullscreen.js", "max_issues_repo_name": "asiddeley/CADBAH", "max_issues_repo_issues_event_min_datetime": "2020-10-06T14:55:34.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-25T19:00:14.000Z", "max_forks_repo_path": "client/commands/fullscreen.js", "max_forks_repo_name": "asiddeley/CADBAH", "max_forks_repo_forks_event_min_datetime": "2020-04-09T20:43:18.000Z", "max_forks_repo_forks_event_max_datetime": "2020-04-09T20:43:18.000Z"}
{"max_stars_count": null, "max_issues_count": 6, "max_forks_count": 1, "avg_line_length": 23.08, "max_line_length": 77, "alphanum_fraction": 0.7279029463}
/***
CADBAH = Computer Aided Design Be Architectural Heroes
Copyright (c) 2019 Andrew Siddeley
MIT License
***/
// PRIVATE
var htm="Maximizes the browser content window<br>Hit escape key to exit<br>";

// MIXINS
$.extend(exports, require("../command"));

// PUBLIC
exports.allowed=["cadbah", "caddeley"];
exports.name="fullscreen";
exports.help=function(CAD){return htm;};
exports.action=function(CAD, first, rest){
	if (!document.fullscreenElement) {
		document.documentElement.requestFullscreen();
	} else {
		if (document.exitFullscreen){document.exitFullscreen();}
	}
};


