Associação Nacional de Municípios Portugueses

logotipo da ANMP
  • Português
  • English
  • Español
  • Français
logotipo da ANMP
Iniciar sessão

mmi01

Atualizado a 28/10/2020

document.addEventListener('fullscreenchange', exitHandler); document.addEventListener('webkitfullscreenchange', exitHandler); document.addEventListener('mozfullscreenchange', exitHandler); document.addEventListener('MSFullscreenChange', exitHandler);

function exitHandler() { if (!document.fullscreenElement && !document.webkitIsFullScreen && !document.mozFullScreen && !document.msFullscreenElement) { myP.style.height = "10%"; E.style.marginLeft = "93.1%"; E.style.transform = "translateY(-99%)"; logo.innerHTML = "⤢"; logo.style.fontSize = "15px"; } else { myP.style.height = "5%"; E.style.marginLeft = "91.15%"; E.style.transform = "translateY(-78.5%)"; logo.innerHTML = "↙"; logo.style.fontSize = "35px"; } }

function toggleFullScreen() { if(!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement && !doc.msFullscreenElement) { requestFullScreen.call(docEl); } else { cancelFullScreen.call(doc); } }