Hi Eric,
Now it is working beautifully.
Jan

Am 21.04.2015 um 12:11 schrieb Eric Shulman:
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:
|
<scriptlabel="Fullscreen">


functionexitFullscreen(){
if(document.exitFullscreen)document.exitFullscreen();
elseif(document.mozCancelFullScreen) document.mozCancelFullScreen();
elseif(document.webkitExitFullscreen)document.webkitExitFullscreen();
}


functiongoFullscreen(element){
if(element.requestFullscreen) element.requestFullscreen();
elseif(element.mozRequestFullScreen) element.mozRequestFullScreen();
elseif(element.webkitRequestFullscreen)element.webkitRequestFullscreen();
elseif(element.msRequestFullscreen)element.msRequestFullscreen();
}


varfullscreenEnabled =document.fullscreenEnabled ||document.mozFullScreenEnabled ||document.webkitFullscreenEnabled; varfullscreenElement =document.fullscreenElement ||document.mozFullScreenElement ||document.webkitFullscreenElement;


if(fullscreenElement)exitFullscreen()
elseif(fullscreenEnabled)goFullscreen(document.documentElement)
elseSendKeys("{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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[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 <https://groups.google.com/d/msgid/tiddlywiki/4a8d7738-649a-4e6c-b64c-ec0990bae9e8%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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/5536EFC7.4000305%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to