MediaWiki:Common.js: Difference between revisions
Appearance
Created page with "→Any JavaScript here will be loaded for all users on every page load.: document.getElementById('linkNorth').addEventListener('click', function() { window.location.hash = 'North'; });" |
No edit summary |
||
Line 3: | Line 3: | ||
document.getElementById('linkNorth').addEventListener('click', function() { | document.getElementById('linkNorth').addEventListener('click', function() { | ||
window.location.hash = 'North'; | window.location.hash = 'North'; | ||
}); | |||
document.getElementById('linkWest').addEventListener('click', function() { | |||
window.location.hash = 'West'; | |||
}); | |||
document.getElementById('linkEast').addEventListener('click', function() { | |||
window.location.hash = 'East'; | |||
}); | |||
document.getElementById('linkSouth').addEventListener('click', function() { | |||
window.location.hash = 'South'; | |||
}); | }); |
Revision as of 08:23, 17 March 2025
/* Any JavaScript here will be loaded for all users on every page load. */ document.getElementById('linkNorth').addEventListener('click', function() { window.location.hash = 'North'; }); document.getElementById('linkWest').addEventListener('click', function() { window.location.hash = 'West'; }); document.getElementById('linkEast').addEventListener('click', function() { window.location.hash = 'East'; }); document.getElementById('linkSouth').addEventListener('click', function() { window.location.hash = 'South'; });