Full Screen implementation on web
in
Programming Questions
•
3 years ago
I got this to work on my computer but when I upload everything, it doesn't work.
Here is the page it should work on:
And just in case you want to see what that I uploaded all the right files, I duplicated the folder and deleted the index file here:
The code from the start of the app:
- import fullscreen.*;
- import japplemenubar.*;
- FullScreen fs;
- void setup()
- {
- size(800, 600);
- stroke(255);
- frameRate(40);
- // Create the fullscreen object
- fs = new FullScreen(this);
- // enter fullscreen mode
- fs.enter();
- }
Any thoughts? It's not critical.. I suppose it has something to do with the browser not wanting to lurch people into full screen unprepared. Any suggestions on implementation? Maybe I should just have the app regular and a full screen option. How would I do that?