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; | var newItem = $('<li class="personal-version" title="Version October 2024"><a href="/index.php?title=MediaWiki:Blog" style="text-decoration: none; background: linear-gradient(to bottom, #DDD7CC, #702114);">Version: Beta 5.1</a><hr style="display:inline-block; height: 20px; width: 1px; background-color: black; border: none; margin-left: 10px; vertical-align: middle;"></li>'); | ||
$('#p-personal > div > ul').prepend(newItem); // Добавляем элемент первым в списке навигации | $('#p-personal > div > ul').prepend(newItem); // Добавляем элемент первым в списке навигации | ||
}); | }); |
Revision as of 01:11, 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; background: linear-gradient(to bottom, #DDD7CC, #702114);">Version: Beta 5.1</a><hr style="display:inline-block; height: 20px; width: 1px; background-color: black; border: none; margin-left: 10px; vertical-align: middle;"></li>');
$('#p-personal > div > ul').prepend(newItem); // Добавляем элемент первым в списке навигации
});