{"size": 1167, "ext": "js", "max_stars_repo_path": "test/manual/js/FullScreen.js", "max_stars_repo_name": "dargonesti/egjs-view360", "max_stars_repo_stars_event_min_datetime": "2020-05-21T15:41:44.000Z", "max_stars_repo_stars_event_max_datetime": "2020-05-21T15:41:44.000Z", "max_issues_repo_path": "test/manual/js/FullScreen.js", "max_issues_repo_name": "cucdengjunli/egjs-view360", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/manual/js/FullScreen.js", "max_forks_repo_name": "cucdengjunli/egjs-view360", "max_forks_repo_forks_event_min_datetime": "2021-10-04T15:12:28.000Z", "max_forks_repo_forks_event_max_datetime": "2021-10-04T15:12:28.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 27.1395348837, "max_line_length": 75, "alphanum_fraction": 0.7369323051}
var FullScreen = (function() {
	var container = document.getElementById("panoviewer-showcase");
	var originalWrapper = container.parentElement;;
	var fullscreenWrapper = document.getElementById("fullscreen-container");
	var fullscreenToggleIcon = document.querySelector("#fullscreen-toggle i");

	function request() {
		if (container.classList.contains("fullscreen")) {
			return;
		}
		// apply full size
		container.classList.add("fullscreen");
		fullscreenWrapper.classList.add("activate");
		// change wrapper
		container.remove();
		fullscreenWrapper.appendChild(container);
		// toggle icon
		fullscreenToggleIcon.classList.remove("expand");
		fullscreenToggleIcon.classList.add("compress");
	}

	function exit() {
		if (!container.classList.contains("fullscreen")) {
			return;
		}

		// remove full size css
		container.classList.remove("fullscreen");
		fullscreenWrapper.classList.remove("activate");
		// change wrapper
		container.remove();
		originalWrapper.appendChild(container);
		//toggle icon
		fullscreenToggleIcon.classList.remove("compress");
		fullscreenToggleIcon.classList.add("expand");
	}

	return {
		request: request,
		exit: exit
	}
})();
