MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
}); | }); | ||
console.log(" | console.log("Byroo you doin good! <3"); | ||
Revision as of 15:45, 3 November 2022
/* Any JavaScript here will be loaded for all users on every page load. */
document.addEventListener("DOMContentLoaded", function(event) {
var lines = document.querySelector('.TableShops').querySelectorAll('tr');
for(var i = 0; i < lines.length; i++) {
lines[i].addEventListener('click', function() {
if (this.querySelector('a') !== null) {
window.location = this.querySelector('a').href;
}
});
}
});
console.log("Byroo you doin good! <3");