On Monday, April 20, 2015 at 7:15:32 AM UTC-7, Jan wrote:
>
> Hello,
> the button I did in .js is now partly working
try this:
<script label="Fullscreen">
function exitFullscreen() {
if (document.exitFullscreen) document.exitFullscreen();
else if(document.mozCancelFullScreen) document.mozCancelFullScreen();
else if(document.webkitExitFullscreen) document.webkitExitFullscreen();
}
function goFullscreen(element) {
if(element.requestFullscreen) element.requestFullscreen();
else if(element.mozRequestFullScreen) element.mozRequestFullScreen();
else if(element.webkitRequestFullscreen) element.webkitRequestFullscreen
();
else if(element.msRequestFullscreen) element.msRequestFullscreen();
}
var fullscreenEnabled = document.fullscreenEnabled ||
document.mozFullScreenEnabled
|| document.webkitFullscreenEnabled;
var fullscreenElement = document.fullscreenElement ||
document.mozFullScreenElement
|| document.webkitFullscreenElement;
if (fullscreenElement) exitFullscreen()
else if(fullscreenEnabled) goFullscreen(document.documentElement)
else SendKeys("{F11}"); // ancient brute force method
to toggle Fullscreen.
place.innerHTML=fullscreenElement?"Fullscreen":"exit Fullscreen";
</script>
-e
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/4a8d7738-649a-4e6c-b64c-ec0990bae9e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.