MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
No edit summary
(Blanked the page)
Tag: Blanking
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */


mw.loader.load( '/index.php?title=MediaWiki:Panorado.js&action=raw&ctype=text/javascript' );
NodeList.prototype.forEach = Array.prototype.forEach;
window.onload = function() {
document.querySelectorAll('.panorado').forEach(function(panorado) {
var viewer = new PanoradoJS(panorado);
viewer.image = { src: panorado.dataset.image, projection: 'spherical' };
});
};

Latest revision as of 13:33, 1 May 2021