8,545
edits
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'); |