MediaWiki:Common.js: Difference between revisions
MediaWiki interface page
More actions
Created page with "→Any JavaScript here will be loaded for all users on every page load.: // Load Leaflet CSS var lcss=document.createElement('link'); lcss.rel='stylesheet'; lcss.href='https://unpkg.com/leaflet@1.9.4/dist/leaflet.css'; document.head.appendChild(lcss); // Load Leaflet JS var s=document.createElement('script'); s.src='https://unpkg.com/leaflet@1.9.4/dist/leaflet.js'; s.onload=function(){ var el=document.getElementById('treeverse-map'); if(!el) return; // === CO..." |
No edit summary |
||
| Line 16: | Line 16: | ||
// === CONFIGURE THESE === | // === CONFIGURE THESE === | ||
var file=' | var file='TreeverseMap.jpeg'; // must match your uploaded filename | ||
var w=1000, h=856; // pixel size of your map image | var w=1000, h=856; // pixel size of your map image | ||
// ======================== | // ======================== | ||