MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
if (typeof jQuery !== 'undefined') { | |||
$(document).ready(function() { | |||
$('#mw-panel a[href^="http"]').attr('target', '_blank'); | |||
}); | |||
} | |||
$(document).ready(function() { | |||
// Menambahkan target="_blank" untuk semua link eksternal di sidebar | |||
$('#mw-panel a[href^="http"]').attr('target', '_blank'); | |||
}); |
Revision as of 09:27, 9 October 2024
/* Any JavaScript here will be loaded for all users on every page load. */ if (typeof jQuery !== 'undefined') { $(document).ready(function() { $('#mw-panel a[href^="http"]').attr('target', '_blank'); }); } $(document).ready(function() { // Menambahkan target="_blank" untuk semua link eksternal di sidebar $('#mw-panel a[href^="http"]').attr('target', '_blank'); });