I have 18 lines of JavaScript code I want to work in TiddlyWiki. All it 
does is makes an image in a button fullscreen. I originally asked about 
this in this thread 
<https://groups.google.com/forum/#!topic/tiddlywiki/t1zZKjrpqsk> but was 
directed here.

The code:
<!-- A button with an image inside. Call the function we define below with 
this element as the argument. -->
<button onclick="fullscreen(this);"><img src="test.png"></button>

function fullscreen(element) {

    // Really we want the immediate child of the element we passed.
    element = element.children[0];

    // Request fullscreen.
    if (element.requestFullscreen) {
    } else if (element.mozRequestFullScreen) { /* Firefox */
    } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera 
    } else if (element.msRequestFullscreen) { /* IE/Edge */

I don't code much, and not at all in JavaScript. I've looked at 
https://tiddlywiki.com/dev/ and found the following here 

For example files see the plugins in the TiddlyWiki5 repository i.e. those 
> located at plugins/tiddlywiki/.

I made a post in the docs group 
<https://groups.google.com/forum/#!forum/tiddlywikidocs> about improving 
that, though I think it's waiting for approval.

Any pointers on this? I don't know where to start, I don't even know if it 
requires a plugin or not.


You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 

Reply via email to