diff --git a/scripts/script.js b/scripts/script.js index 6b25ba9..feb1d16 100755 --- a/scripts/script.js +++ b/scripts/script.js @@ -64,6 +64,13 @@ function updateView() { linkScreen.disabled = fullscreen; linkProjection.disabled = !fullscreen; + if (fullscreen) { + linkScreen.setAttribute('disabled', 'disabled'); + linkProjection.removeAttribute('disabled'); + } else { + linkScreen.removeAttribute('disabled'); + linkProjection.setAttribute('disabled', 'disabled'); + } if(!hashList[url.hash]) turnSlide(0); }