game/js/registrationTraining/modalSteps/commonFrame.js

22 lines
617 B
JavaScript
Raw Normal View History

2022-12-19 20:22:19 +00:00
import { changeStylesForRelines, setModalContent } from '../features/index.js';
/**
* @param {string} currentStep
*/
export const commonFrame = (currentStep) => {
changeStylesForRelines(false);
const $header = document.getElementById('mainHeader');
const $frame = document.getElementById('sectionTd');
$header.classList.add('highlightedTrainingElement');
$frame.classList.add('highlightedTrainingElement', 'highlightedTrainingElementPosition');
setModalContent({
keyTitle: 'newCombats.trainingModal.step1.title',
keyContent: 'newCombats.trainingModal.step1.text',
currentStep,
});
};