ÐДобавление верисфикации Yandex
This commit is contained in:
parent
af43d08e90
commit
0b1db78d41
1 changed files with 27 additions and 24 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
import '@styles/global.css';
|
import '@styles/global.css';
|
||||||
|
|
||||||
import Header from "@components/layout/header/Header.astro";
|
import Header from "@components/layout/header/Header.astro";
|
||||||
import Footer from "@components/layout/footer/Footer.astro";
|
import Footer from "@components/layout/footer/Footer.astro";
|
||||||
import ConsultationModal from "@components/base/ConsultationModal.astro";
|
import ConsultationModal from "@components/base/ConsultationModal.astro";
|
||||||
|
|
@ -12,6 +13,8 @@ import ConsultationModal from "@components/base/ConsultationModal.astro";
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
|
<!-- Yandex верификация -->
|
||||||
|
<meta name="yandex-verification" content="be3edfd138348e43" />
|
||||||
<title>Автоюрист в Сургуте</title>
|
<title>Автоюрист в Сургуте</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
@ -19,31 +22,31 @@ import ConsultationModal from "@components/base/ConsultationModal.astro";
|
||||||
<slot />
|
<slot />
|
||||||
<Footer />
|
<Footer />
|
||||||
<ConsultationModal />
|
<ConsultationModal />
|
||||||
|
|
||||||
<script>
|
|
||||||
// Клиентский скрипт для открытия модального окна
|
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
|
||||||
const btn = document.getElementById('consultation-btn');
|
|
||||||
|
|
||||||
btn?.addEventListener('click', () => {
|
|
||||||
window.dispatchEvent(new CustomEvent('open-modal', {
|
|
||||||
detail: 'consultation-modal'
|
|
||||||
}));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
// Для Astro View Transitions
|
|
||||||
document.addEventListener('astro:page-load', () => {
|
|
||||||
const btn = document.getElementById('consultation-btn');
|
|
||||||
|
|
||||||
btn?.addEventListener('click', () => {
|
|
||||||
window.dispatchEvent(new CustomEvent('open-modal', {
|
|
||||||
detail: 'consultation-modal'
|
|
||||||
}));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// Клиентский скрипт для открытия модального окна
|
||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
const btn = document.getElementById('consultation-btn');
|
||||||
|
|
||||||
|
btn?.addEventListener('click', () => {
|
||||||
|
window.dispatchEvent(new CustomEvent('open-modal', {
|
||||||
|
detail: 'consultation-modal'
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// Для Astro View Transitions
|
||||||
|
document.addEventListener('astro:page-load', () => {
|
||||||
|
const btn = document.getElementById('consultation-btn');
|
||||||
|
|
||||||
|
btn?.addEventListener('click', () => {
|
||||||
|
window.dispatchEvent(new CustomEvent('open-modal', {
|
||||||
|
detail: 'consultation-modal'
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue