diff --git a/index.html b/index.html index 975e3b5..7f939ff 100644 --- a/index.html +++ b/index.html @@ -45,17 +45,6 @@ -
- работает(ет) в ___________________________ + работала(ет) в ___________________________ с «___» ________ 20__ г.
- работает(ет) в ___________________________ -
- в должности ___________________________ -
- подразделение: ___________________________ + работала(ет) в ___________________________
табельный номер: ______ diff --git a/script.js b/script.js index 6e7b042..bb5749e 100644 --- a/script.js +++ b/script.js @@ -29,8 +29,6 @@ function updateCertificate() { companyBin: document.getElementById('companyBin').value, companyAddress: document.getElementById('companyAddress').value, fio: document.getElementById('fio').value || '___________________________', - position: document.getElementById('position').value || '___________________________', - department: document.getElementById('department').value, employeeId: document.getElementById('employeeId').value, employmentStatus: document.getElementById('employmentStatus').value, hireDate: document.getElementById('hireDate').value, @@ -90,7 +88,6 @@ function updateCertificate() { // Статус сотрудника document.getElementById('certFio').textContent = data.fio; - document.getElementById('certPosition').textContent = data.position; const hireDateBlock = document.getElementById('certHireDateBlock'); const hireDateEmpty = document.getElementById('certHireDateEmpty'); @@ -105,9 +102,8 @@ function updateCertificate() { // Если уволена - показываем дату увольнения if (data.employmentStatus === 'terminated' && data.terminationDate) { - const termBlock = document.getElementById('certTerminationBlock'); + let termBlock = document.getElementById('certTerminationBlock'); if (!termBlock) { - // Создаём блок даты увольнения динамически const termParagraph = document.createElement('p'); termParagraph.id = 'certTerminationBlock'; termParagraph.innerHTML = 'по состоянию на дату увольнения: ' + terminationDateFormatted + ''; @@ -121,15 +117,6 @@ function updateCertificate() { if (termBlock) termBlock.style.display = 'none'; } - // Подразделение и табельный номер - const deptBlock = document.getElementById('certDepartmentBlock'); - if (data.department) { - deptBlock.style.display = 'block'; - document.getElementById('certDepartment').textContent = data.department; - } else { - deptBlock.style.display = 'none'; - } - const empIdBlock = document.getElementById('certEmployeeIdBlock'); if (data.employeeId) { empIdBlock.style.display = 'block';