|
|
@ -76,12 +76,12 @@ const UI = { |
|
|
|
|
|
|
|
|
|
|
|
roundsItems.forEach(item => { |
|
|
|
roundsItems.forEach(item => { |
|
|
|
const type = item.getAttribute(UI.DATA.ROUND); |
|
|
|
const type = item.getAttribute(UI.DATA.ROUND); |
|
|
|
|
|
|
|
|
|
|
|
const hide = item.querySelector(`.${UI.CLASSNAMES.ROUND.HIDE}`); |
|
|
|
const hide = item.querySelector(`.${UI.CLASSNAMES.ROUND.HIDE}`); |
|
|
|
hide.innerHTML = (hide.innerHTML === UI.I18N.HIDE ? UI.I18N.SHOW : UI.I18N.HIDE); |
|
|
|
hide.innerHTML = UI.I18N.SHOW; |
|
|
|
|
|
|
|
|
|
|
|
if (roundsToShow.indexOf(type) > -1) { |
|
|
|
if (roundsToShow.indexOf(type) > -1) { |
|
|
|
item.className += ' active'; |
|
|
|
item.className += ' active'; |
|
|
|
|
|
|
|
hide.innerHTML = UI.I18N.HIDE; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|