MediaWiki:Gadget-cdlUpdateMaker.js

var elem = document.getElementById("getfullscreen"); document.getElementById('fullscreenbutton').onclick=function{ if (elem.requestFullscreen) { elem.requestFullscreen; } else if (elem.webkitRequestFullscreen) { /* Safari */ elem.webkitRequestFullscreen; } else if (elem.msRequestFullscreen) { /* IE11 */ elem.msRequestFullscreen; } }