send telegram

This commit is contained in:
2026-04-18 18:49:32 +03:00
parent 89907284de
commit cbce559fb4
4 changed files with 5 additions and 2 deletions

View File

@@ -1,7 +1,6 @@
(() => {
const contactForm = document.getElementById('contactForm')
const contactSuccess = document.getElementById('contactSuccess')
const formConfig = window.test1ContactsForm || null
if (!contactForm || !contactSuccess) {
return
@@ -10,6 +9,8 @@
contactForm.addEventListener('submit', async event => {
event.preventDefault()
const formConfig = window.test1ContactsForm || null
if (!formConfig?.ajaxUrl || !formConfig?.action || !formConfig?.nonce) {
window.alert('Форма временно недоступна. Обновите страницу и попробуйте снова.')
return

View File

@@ -167,6 +167,7 @@ HTML;
$landing_html = preg_replace( '/<header class="site-header">.*?<\/header>/is', $shared_header_markup, $landing_html, 1 );
$landing_html = preg_replace( '/<footer class="footer">.*?<\/footer>/is', $shared_footer_markup, $landing_html, 1 );
$landing_html = preg_replace( '/<script[^>]+src=["\'](?:\.\/)?index3\.js["\'][^>]*><\/script>/i', '', $landing_html );
}
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>