↑');
if ($("#langageFR").length > 0) {
$(".oubliMDP td.tableColonne1 ").each(function() {
texteLibelle = $(this).html();
$(this).html(texteLibelle.replace('Email* :','E-mail* :'));
});
}
if ($("#langageEN").length > 0) {
$(".oubliMDP td.tableColonne1 ").each(function() {
texteLibelle = $(this).html();
$(this).html(texteLibelle.replace('Email* :','E-mail*:'));
});
}
if ($("#langageEN").length > 0) {
$(".oubliMDP td.tableColonne1 ").each(function() {
texteLibelle = $(this).html();
$(this).html(texteLibelle.replace('New password* :','New password*:'));
});
}
if ($("#langageEN").length > 0) {
$(".oubliMDP td.tableColonne1 ").each(function() {
texteLibelle = $(this).html();
$(this).html(texteLibelle.replace('Password confirmation* :','Password confirmation*:'));
});
}
$("#langageFR .etat10").attr( "title", "Complet" );
$("#langageEN .etat10").attr( "title", "Sold Out" );
$("#langageFR .etat10 span").html("Complet");
$("#langageEN .etat10 span").html("Sold-out");
$("#langageFR .compObjet .descEtat10").html("Complet");
$("#langageEN .compObjet .descEtat10").html("Sold-out");
var currentLanguage = document.querySelector('meta[http-equiv="Content-Language"]').content;
$("body").addClass("i18n-" + currentLanguage);
window.tarteaucitronForceLanguage = currentLanguage;
tarteaucitron.init({
"privacyUrl": "", /* Privacy policy url */
"hashtag": "#tarteaucitron", /* Open the panel with this hashtag */
"cookieName": "tarteaucitron", /* Cookie name */
"orientation": "bottom", /* Banner position (top - bottom) */
"showAlertSmall": false, /* Show the small banner on bottom right */
"cookieslist": false, /* Show the cookie list */
"closePopup": false, /* Show a close X on the banner */
"showIcon": false, /* Show cookie icon to manage cookies */
"iconPosition": "BottomRight", /* BottomRight, BottomLeft, TopRight and TopLeft */
"adblocker": false, /* Show a Warning if an adblocker is detected */
"DenyAllCta" : true, /* Show the deny all button */
"AcceptAllCta" : true, /* Show the accept all button when highPrivacy on */
"highPrivacy": true, /* HIGHLY RECOMMANDED Disable auto consent */
"handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */
"removeCredit": true, /* Remove credit link */
"moreInfoLink": false, /* Show more info link */
"useExternalCss": false, /* If false, the tarteaucitron.css file will be loaded */
"useExternalJs": false, /* If false, the tarteaucitron.js file will be loaded */
//"cookieDomain": ".my-multisite-domaine.fr", /* Shared cookie for multisite */
"readmoreLink": "", /* Change the default readmore link */
"mandatory": true, /* Show a message about mandatory cookies */
});
// Google Analytics
//(tarteaucitron.job = tarteaucitron.job || []).push("gajs");
// MATOMO
tarteaucitron.user.matomotmUrl = "https://stats.chateauversailles.fr/js/container_Il0VvImt.js";
(tarteaucitron.job = tarteaucitron.job || []).push("matomotm");
if ($("#langageFR").length > 0) {
$("#MenuVersailles .HeaderVersailles").after('
');
}
if ($("#langageEN").length > 0) {
$("#MenuVersailles .HeaderVersailles").after('
Please make sure that the activity you have chosen is suitable for the class level that will be attending on the day of the visit. Otherwise, the guide reserves the right, on the day, not to deliver the booked tour, without this giving rise to any compensation.
');
// d�placement du titre de la billetterie
$(".compHeader .descriptionHeader" ).insertAfter( $( "#cadreContent .ligneContent2" ) );
// deplacement du bouton commander pour le panier ferm� type om
$( "#compPanier1 .headerComposants .footerComposants .contentComposants .dataContentComposants .totalValiderPanier .validerPanier" ).clone().appendTo( "#compPanier1 .topContentComposants" );
// On applique le menu mobile sur tous les devices (toutes largeurs)
// Si la taille de la fen�tre est inf�rieur � 768px lors de l'ouverture de la page alors on applique un changement sur les composants recherche et panier
if (window.matchMedia("(max-width: 768px)").matches) {
// MENU BURGEUR
$(".compHeader .dataContentComposants a").wrapAll("
");
$(".compHeader .dataContentComposants a").wrap("");
$(".compHeader .dataContentComposants .etapeHeader").after('');
$( "#boutonMenuMobile" ).click(function() {
$("#mobile_menu").toggleClass("open");
});
// Recherche
$(".compRecherche .dataContentComposants").before('');
$(".compRecherche .dataContentComposants").before('');
$(".compRecherche .dataContentComposants").addClass("close");
// gestion du bouton de recherche
$( "#boutonRecherche" ).click(function() {
$(".compRecherche .dataContentComposants").toggleClass("open");
$("#closeRecherche").addClass("top");
$("#mobile_menu").removeClass("open");
});
// gestion du bouton pour fermer la recherche
$( "#closeRecherche" ).click(function() {
$(".compRecherche .dataContentComposants").toggleClass("open");
$("#closeRecherche").removeClass("top");
});
// Selecteur de langue mobile
$(".compChoixLangue").after('
');
$(".compChoixLangue").before('');
$(".selectLangue").click(function() {
$(".compChoixLangue").toggleClass("show");
// $("#closeLangue").addClass("show").delay(500);
$("#closeLangue").removeClass("show").delay(500).queue(function(next){
$(this).addClass("show");
next();
});
});
$("#closeLangue").click(function() {
$(".compChoixLangue").removeClass("show");
$("#closeLangue").removeClass("show");
});
}
// on ajoute les fonctions mobile au redimensionnement
function redimensionnement(s) {
// on ecoute la taille de la fenetre et on agit en fonction
window.matchMedia("(max-width: 768px)").addListener(function (e) {
if(e.matches){
// menu mobile
// $(".compHeader .dataContentComposants a").wrapAll("
");
// $(".compHeader .dataContentComposants a").wrap("");
//alert("test");
// $(".compHeader .dataContentComposants .etapeHeader").after('');
// Recherche
$(".compRecherche .dataContentComposants").before('');
$(".compRecherche .dataContentComposants").before('');
// $( "#boutonMenuMobile" ).click(function() {
// $("#mobile_menu").toggleClass("open");
// });
$(".compRecherche .dataContentComposants").addClass("close");
// gestion du bouton de recherche
$( "#boutonRecherche" ).click(function() {
$(".compRecherche .dataContentComposants").toggleClass("open");
$("#closeRecherche").addClass("top");
$("#mobile_menu").removeClass("open");
});
// gestion du bouton pour fermer la recherche
$( "#closeRecherche" ).click(function() {
$(".compRecherche .dataContentComposants").toggleClass("open");
$("#closeRecherche").removeClass("top");
});
// Selecteur de langue mobile
$(".compChoixLangue").after('
');
$(".compChoixLangue").before('');
$(".selectLangue").click(function() {
$(".compChoixLangue").toggleClass("show");
$("#closeLangue").removeClass("show").delay(500).queue(function(next){
$(this).addClass("show");
next();
});
});
$("#closeLangue").click(function() {
$(".compChoixLangue").removeClass("show");
$("#closeLangue").removeClass("show");
});
}else{
// retrait du menu mobile
// $(".compHeader .dataContentComposants div ul li a").unwrap();
// $(".compHeader .dataContentComposants div ul a").unwrap();
// $(".compHeader .dataContentComposants a").unwrap();
// $("#boutonMenuMobile").remove();
// $("#boutonRecherche").remove();
$(".selectLangue").remove();
}
});
}
redimensionnement();
// Passage de la version mobile � la version desktop
function redimensionnementFix(s) {
// on ecoute la taille de la fenetre et on agit en fonction
window.matchMedia("(min-width: 768px)").addListener(function (e) {
if(e.matches){
$(".compRecherche .dataContentComposants").removeClass("close");
$(".compRecherche .dataContentComposants").removeClass("open");
$("#boutonRecherche").remove();
$("#closeRecherche").removeClass("top");
}
});
}
redimensionnementFix();
// On rend la navigation fixe au scroll
$(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 212) {
$("#cadreContent .ligneContent2").toggleClass("StickyNav", true);
$("#cadreContent .ligneContent3").toggleClass("StickyNav_lign3", true);
$("#cadreContent .descriptionHeader").toggleClass("StickyNav_desc", true);
}
else {
$("#cadreContent .ligneContent2").toggleClass("StickyNav", false);
$("#cadreContent .ligneContent3").toggleClass("StickyNav_lign3", false);
$("#cadreContent .descriptionHeader").toggleClass("StickyNav_desc", false);
}
});
});
var blocFbc = $('#compSocialConnect1').clone();
$('#compSocialConnect1').remove();
$('#compDejaClient1').before(blocFbc);
var btnFbc = $('#compSocialConnect1 .dataContentComposants a').clone();
$('#compSocialConnect1 .dataContentComposants').html(btnFbc);
$('#compSocialConnectContent1 .topContentComposants').append('