Донат-блок снова контекстный (не горит на загрузке) + ссылка Поддержать в футере

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
root
2026-07-03 14:20:58 +00:00
parent 17f5645a17
commit 664e8a3109

View File

@@ -636,6 +636,7 @@
/* ── Donate card ── */ /* ── Donate card ── */
#donate-card { #donate-card {
display: none;
background: linear-gradient(135deg, #fffbf0 0%, #fff8e6 100%); background: linear-gradient(135deg, #fffbf0 0%, #fff8e6 100%);
border: 1px solid #ffe0a0; border: 1px solid #ffe0a0;
border-radius: var(--radius); border-radius: var(--radius);
@@ -1173,7 +1174,7 @@
</section> </section>
<footer> <footer>
pdf2scan &mdash; <span data-i18n="footer_text">превращаем PDF в скан</span> &nbsp;|&nbsp; <a href="https://t.me/pdf2scan_bot" style="color:var(--blue); text-decoration:none;" data-i18n="footer_tg">Telegram-бот</a> &nbsp;|&nbsp; <a href="/developers" style="color:var(--blue); text-decoration:none;" data-i18n="footer_api">API для бизнеса</a> pdf2scan &mdash; <span data-i18n="footer_text">превращаем PDF в скан</span> &nbsp;|&nbsp; <a href="https://t.me/pdf2scan_bot" style="color:var(--blue); text-decoration:none;" data-i18n="footer_tg">Telegram-бот</a> &nbsp;|&nbsp; <a href="/developers" style="color:var(--blue); text-decoration:none;" data-i18n="footer_api">API для бизнеса</a> &nbsp;|&nbsp; <a href="#" onclick="showDonateCard(false);document.getElementById('donate-card').scrollIntoView({behavior:'smooth'});return false;" style="color:var(--blue); text-decoration:none;" data-i18n="footer_donate">🍩 Поддержать</a>
</footer> </footer>
<script> <script>
@@ -1270,6 +1271,7 @@
footer_text: 'превращаем PDF в скан', footer_text: 'превращаем PDF в скан',
footer_tg: 'Telegram-бот', footer_tg: 'Telegram-бот',
footer_api: 'API для бизнеса', footer_api: 'API для бизнеса',
footer_donate: '🍩 Поддержать',
err_no_file: 'Файл не выбран', err_no_file: 'Файл не выбран',
err_task_not_found:'Задача не найдена. Попробуйте отправить файл снова.', err_task_not_found:'Задача не найдена. Попробуйте отправить файл снова.',
err_network: 'Ошибка сети при загрузке файла', err_network: 'Ошибка сети при загрузке файла',
@@ -1394,6 +1396,7 @@
footer_text: 'convert PDF to scan', footer_text: 'convert PDF to scan',
footer_tg: 'Telegram bot', footer_tg: 'Telegram bot',
footer_api: 'API for business', footer_api: 'API for business',
footer_donate: '🍩 Support',
err_no_file: 'No file selected', err_no_file: 'No file selected',
err_task_not_found:'Task not found. Please try submitting the file again.', err_task_not_found:'Task not found. Please try submitting the file again.',
err_network: 'Network error while uploading', err_network: 'Network error while uploading',
@@ -1519,6 +1522,7 @@
footer_text: 'PDF in Scan umwandeln', footer_text: 'PDF in Scan umwandeln',
footer_tg: 'Telegram-Bot', footer_tg: 'Telegram-Bot',
footer_api: 'API für Unternehmen', footer_api: 'API für Unternehmen',
footer_donate: '🍩 Unterstützen',
err_no_file: 'Keine Datei ausgewählt', err_no_file: 'Keine Datei ausgewählt',
err_task_not_found:'Aufgabe nicht gefunden. Bitte versuchen Sie, die Datei erneut zu senden.', err_task_not_found:'Aufgabe nicht gefunden. Bitte versuchen Sie, die Datei erneut zu senden.',
err_network: 'Netzwerkfehler beim Hochladen', err_network: 'Netzwerkfehler beim Hochladen',
@@ -1644,6 +1648,7 @@
footer_text: 'convertir PDF en scan', footer_text: 'convertir PDF en scan',
footer_tg: 'Bot Telegram', footer_tg: 'Bot Telegram',
footer_api: 'API pour entreprises', footer_api: 'API pour entreprises',
footer_donate: '🍩 Soutenir',
err_no_file: 'Aucun fichier sélectionné', err_no_file: 'Aucun fichier sélectionné',
err_task_not_found:'Tâche introuvable. Veuillez soumettre le fichier à nouveau.', err_task_not_found:'Tâche introuvable. Veuillez soumettre le fichier à nouveau.',
err_network: 'Erreur réseau lors du téléchargement', err_network: 'Erreur réseau lors du téléchargement',
@@ -1769,6 +1774,7 @@
footer_text: 'converti PDF in scansione', footer_text: 'converti PDF in scansione',
footer_tg: 'Bot Telegram', footer_tg: 'Bot Telegram',
footer_api: 'API per aziende', footer_api: 'API per aziende',
footer_donate: '🍩 Sostieni',
err_no_file: 'Nessun file selezionato', err_no_file: 'Nessun file selezionato',
err_task_not_found:'Attività non trovata. Prova a inviare nuovamente il file.', err_task_not_found:'Attività non trovata. Prova a inviare nuovamente il file.',
err_network: 'Errore di rete durante il caricamento', err_network: 'Errore di rete durante il caricamento',
@@ -1894,6 +1900,7 @@
footer_text: 'convierte PDF en escaneo', footer_text: 'convierte PDF en escaneo',
footer_tg: 'Bot de Telegram', footer_tg: 'Bot de Telegram',
footer_api: 'API para empresas', footer_api: 'API para empresas',
footer_donate: '🍩 Apoyar',
err_no_file: 'Ningún archivo seleccionado', err_no_file: 'Ningún archivo seleccionado',
err_task_not_found:'Tarea no encontrada. Intenta enviar el archivo de nuevo.', err_task_not_found:'Tarea no encontrada. Intenta enviar el archivo de nuevo.',
err_network: 'Error de red al subir', err_network: 'Error de red al subir',
@@ -2019,6 +2026,7 @@
footer_text: 'converta PDF em digitalização', footer_text: 'converta PDF em digitalização',
footer_tg: 'Bot do Telegram', footer_tg: 'Bot do Telegram',
footer_api: 'API para empresas', footer_api: 'API para empresas',
footer_donate: '🍩 Apoiar',
err_no_file: 'Nenhum arquivo selecionado', err_no_file: 'Nenhum arquivo selecionado',
err_task_not_found:'Tarefa não encontrada. Tente enviar o arquivo novamente.', err_task_not_found:'Tarefa não encontrada. Tente enviar o arquivo novamente.',
err_network: 'Erro de rede ao fazer upload', err_network: 'Erro de rede ao fazer upload',
@@ -2152,8 +2160,7 @@
} }
function hideDonateCard() { function hideDonateCard() {
// Блок поддержки/оплаты теперь всегда виден — просто возвращаем обычный текст. document.getElementById('donate-card').style.display = 'none';
showDonateCard(false);
} }
// ── Оплата картой (ЮKassa) ──────────────────────────────────────────────── // ── Оплата картой (ЮKassa) ────────────────────────────────────────────────