MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
document.addEventListener('DOMContentLoaded', () => {
    document.querySelectorAll('newcombutton').forEach(button => {
        const color = button.getAttribute('color');
        button.style.setProperty('--button-color', color);
        // Устанавливаем цвет для псевдоэлементов
        const style = document.createElement('style');
        style.textContent = `
            newcombutton::before,
            newcombutton::after {
                background: radial-gradient(circle, ${color} 20%, transparent 70%);
            }
        `;
        document.head.appendChild(style);
    });
});
document.addEventListener("DOMContentLoaded", function() {
document.addEventListener("DOMContentLoaded", function() {
     var zoomBtn = document.getElementById('zoom-btn');
     var zoomBtn = document.getElementById('zoom-btn');

Navigation menu

Help

Help Image

Here's pages that you can help us to get more information about them.

Stand with Ukraine

Ukrainian Flag