Corrige le numéro de RC Pro dans les CGV et corrige une faute de frappe sur la page d'accueil de réservation. ```
42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
import './reserve.scss';
|
|
import * as Sentry from "@sentry/browser";
|
|
import * as Turbo from "@hotwired/turbo"
|
|
// --- INITIALISATION SENTRY ---
|
|
Sentry.init({
|
|
dsn: "https://803814be6540031b1c37bf92ba9c0f79@sentry.esy-web.dev/24",
|
|
tunnel: "/sentry-tunnel",
|
|
sendDefaultPii: true,
|
|
integrations: [
|
|
Sentry.browserTracingIntegration(),
|
|
Sentry.replayIntegration()
|
|
],
|
|
tracesSampleRate: 1.0,
|
|
tracePropagationTargets: ["localhost", "esy-web.dev", "revervation.ludikevent.fr"],
|
|
replaysSessionSampleRate: 0.1,
|
|
replaysOnErrorSampleRate: 1.0
|
|
});
|
|
|
|
// --- LOGIQUE DU MENU MOBILE ---
|
|
const initMobileMenu = () => {
|
|
const btn = document.getElementById('menu-button');
|
|
const menu = document.getElementById('mobile-menu');
|
|
|
|
|
|
if (btn && menu) {
|
|
btn.onclick = () => {
|
|
const isExpanded = btn.getAttribute('aria-expanded') === 'true';
|
|
btn.setAttribute('aria-expanded', !isExpanded);
|
|
menu.classList.toggle('hidden');
|
|
};
|
|
}
|
|
};
|
|
|
|
// --- INITIALISATION ---
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
initMobileMenu();
|
|
});
|
|
|
|
document.addEventListener('turbo:load', () => {
|
|
initMobileMenu();
|
|
});
|