We're used to using websites like youtube in full screen, but now Facebook offers this for its image gallery. What is Facebook doing to allow full screen image browsing, that seems to use normal hmtl coding?
That is the non-standard Fullscreen API.
In theory (from an article linked from the page I linked to above):
var elem = document.getElementById("myId");
if (elem.requestFullScreen) {
elem.requestFullScreen();
} else if (elem.mozRequestFullScreen) {
elem.mozRequestFullScreen();
} else if (elem.webkitRequestFullScreen) {
elem.webkitRequestFullScreen();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With