Jump to content

MediaWiki:Common.js: Difference between revisions

From Dogs Welcome (Isle of Man)
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';
});