MediaWiki:Vector.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
var newItem = $('<li class="personal-version" title="Version October 2024"><a href="/index.php?title=MediaWiki:Blog" style="text-decoration: none; color: inherit;">Version: Beta 5.1</a></li>'); | var newItem = $('<li class="personal-version" title="Version October 2024"><a href="/index.php?title=MediaWiki:Blog" style="text-decoration: none; color: inherit;">Version: Beta 5.1</a></li>'); | ||
$('#p-personal > div > ul'). | $('#p-personal > div > ul').prepend(newItem); // Используем prepend, чтобы добавить элемент в начало | ||
}); | }); |
Revision as of 00:57, 20 October 2024
$(document).ready(function() {
var newItem = $('<li class="personal-version" title="Version October 2024"><a href="/index.php?title=MediaWiki:Blog" style="text-decoration: none; color: inherit;">Version: Beta 5.1</a></li>');
$('#p-personal > div > ul').prepend(newItem); // Используем prepend, чтобы добавить элемент в начало
});