Dantes (обсуждение | вклад) Нет описания правки |
Dantes (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
(function() { | document.addEventListener("DOMContentLoaded", function() { | ||
const roleContainers = document.querySelectorAll('.role-container'); | |||
const roleDividers = document.querySelectorAll('.role-divider'); | |||
roleContainers.forEach((container, index) => { | |||
const nextContainer = roleContainers[index + 1]; | |||
if (nextContainer) { | |||
const divider = document.createElement('div'); | |||
divider.classList.add('role-divider'); | |||
if ( | divider.classList.add('role-divider-gradient'); | ||
container.after(divider); | |||
} | } | ||
}); | |||
} | }); | ||
} | |||
Версия от 20:29, 20 апреля 2025
document.addEventListener("DOMContentLoaded", function() {
const roleContainers = document.querySelectorAll('.role-container');
const roleDividers = document.querySelectorAll('.role-divider');
roleContainers.forEach((container, index) => {
const nextContainer = roleContainers[index + 1];
if (nextContainer) {
const divider = document.createElement('div');
divider.classList.add('role-divider');
divider.classList.add('role-divider-gradient');
container.after(divider);
}
});
});