window.onresize = showOrHideRightDiv; windowdeactivated.onload = showOrHideRightDiv;
function getWindowWidth() {
if (window.innerWidth) {
return window.innerWidth;
} else if (document.body && document.body.offsetWidth) {
return document.body.offsetWidth;
} else {
return 0;
}
}
function showOrHideRightDiv() {
if(getWindowWidth() > 1100) {
document.getElementById('right').style.display = 'inline';
} else {
document.getElementById('right').style.display = 'none';
}
}