31 lines
1011 B
JavaScript
31 lines
1011 B
JavaScript
|
import { getTextForModal, setModalContent, removeStylesOfHighlightedElements } from '../features/index.js';
|
||
|
|
||
|
/**
|
||
|
* @param {string} currentStep
|
||
|
*/
|
||
|
|
||
|
export const another = (currentStep) => {
|
||
|
removeStylesOfHighlightedElements();
|
||
|
|
||
|
const $stats = document.getElementById('anotherOfPerson');
|
||
|
|
||
|
const $modalContainer = document.getElementById('trainingModalContainer');
|
||
|
const $modalNextButton = document.getElementById('nextTrainingModal');
|
||
|
const $modalCloseButton = document.createElement('button');
|
||
|
|
||
|
$modalCloseButton.id = 'closeTrainingModal';
|
||
|
$modalCloseButton.classList.add('trainingModalButton');
|
||
|
$modalCloseButton.textContent = getTextForModal('newCombats.trainingModal.closeButton');
|
||
|
|
||
|
$modalContainer.removeChild($modalNextButton);
|
||
|
$modalContainer.append($modalCloseButton);
|
||
|
|
||
|
// $stats.classList.add('highlightedTrainingElement');
|
||
|
|
||
|
setModalContent({
|
||
|
keyTitle: 'newCombats.trainingModal.step6.title',
|
||
|
keyContent: 'newCombats.trainingModal.step6.text',
|
||
|
currentStep,
|
||
|
});
|
||
|
};
|