diff --git a/content/ask.md b/content/ask.md index 5e3a64a..55d5242 100644 --- a/content/ask.md +++ b/content/ask.md @@ -53,6 +53,22 @@ disableComments = true input.setCustomValidity(''); }); }); + + // Русификация file input + const fileInput = document.getElementById('pdf_file'); + const fileText = document.getElementById('pdf_file_text'); + if (fileInput && fileText) { + fileInput.addEventListener('change', function() { + const fileName = this.files[0] ? this.files[0].name : ''; + if (fileName) { + fileText.textContent = fileName; + fileText.classList.add('file-selected'); + } else { + fileText.textContent = 'Выберите PDF файл'; + fileText.classList.remove('file-selected'); + } + }); + } }); @@ -67,6 +83,11 @@ disableComments = true +
+ + +
+
+
+ +
+ + Выберите PDF файл +
+
+ Максимальный размер файла: 10 МБ +
+
+
- +
- + + +
+ +
+
@@ -108,6 +129,17 @@ disableComments = true +
+ +
+ + Выберите PDF файл +
+
+ Максимальный размер файла: 10 МБ +
+
+