game/js/registrationTraining/features/createModalElements.js

28 lines
790 B
JavaScript
Raw Permalink Normal View History

2022-12-19 20:22:19 +00:00
import { getTextForModal } from './getTextForModal.js';
export const createModalElements = () => {
const $modalMain = document.createElement('div');
$modalMain.id = 'trainingModalMain';
$modalMain.innerHTML = `
<div id="trainingModalBackground">
<div id="trainingModalContainerHihgtlightes">
<div id="trainingModalContainer">
<div id="trainingModalContentContainer">
<p id="trainingModalCurrentStep">1/6</p>
<h3 id="trainingModalTitle">Title</h3>
<div id="trainingModalTextContainer">
<p id="trainingModalText">Text</p>
</div>
</div>
2023-01-10 16:29:32 +00:00
<button id="nextTrainingModal" class="trainingModalButton">TEST/ТЕСТ</button>
2022-12-19 20:22:19 +00:00
</div>
</div>
</div>`;
document.body.append($modalMain);
};