let max_height = window.screen.availHeight - (window.outerHeight - window.innerHeight);
let max_width = window.screen.availWidth - (window.outerWidth - window.innerWidth);
let fullsize = false;
if(window.innerWidth >= max_width && window.innerHeight >= max_height){
fullsize = true;
}