jQuery(document).ready(function($){ console.log("LSQ0"); function handled_by_orejime(elem,url,name){ if($(elem).attr("src") != undefined && $(elem).attr("src").startsWith(url)){ $(elem).attr("type","opt-in"); $(elem).attr("data-src",$(elem).attr("src")); $(elem).removeAttr("src"); $(elem).attr("data-name",name); console.log($(elem)); } } //Google analytics : google-tag-manager-init $("script").each(function(){ if($(this).attr("src") != undefined && $(this).attr("src").startsWith("https://www.googletagmanager.com")){ $(this).attr("type","opt-in"); $(this).attr("data-type","application/javascript"); $(this).attr("data-src",$(this).attr("src")); $(this).removeAttr("src"); $(this).attr("data-name","google-tag-manager-init"); console.log($(this)); } }); //streaming $("iframe").each(function(){ //Youtube : youtube-video handled_by_orejime(this,"https://www.youtube.com","streaming"); //Facebook : facebook-video handled_by_orejime(this,"https://www.facebook.com","streaming"); }); //partage réseaux sociaux $(".social_lien").each(function(){ //Twitter : twitter-share handled_by_orejime(this,"https://twitter.com","share"); //LinkedIn : linkedin-share handled_by_orejime(this,"https://www.linkedin.com","share"); //Facebook : facebook-share handled_by_orejime(this,"https://www.facebook.com","share"); }); //Youtube : youtube /*$("div").each(function(){ if($(this).attr("src") != undefined && $(this).attr("src").startsWith("https://www.youtube.com")){ //$(this).attr("type","opt-in"); //$(this).attr("data-type","application/javascript"); $(this).attr("data-src",$(this).attr("src")); $(this).removeAttr("src"); $(this).attr("data-name","youtube"); console.log($(this)); } })*/ var GTM_UA = "UA-157899691-1"; var orejimeConfig = { // Optional. You can customize the ID of the
that Orejime will create when starting up. // The generated
will be inserted at the beginning of the . // If there is already a DOM element with this id, Orejime will use it instead of creating a new element. // defaults to "orejime". elementID: "orejime", // Optional. For accessibility's sake, the Orejime modal must know what is the element // containing your app or website. Orejime should *not* be in this element. // The idea is your DOM could look like this after Orejime is initialized: // //
...
//
your actual website
// // // It is highly recommended to set this option, even though it's not required. // defaults to undefined. //appElement: "footer", // Optional. You can customize the name of the cookie that Orejime uses for storing // user consent decisions. // defaults to "orejime". cookieName: "orejime", // Optional. You can set a custom expiration time for the Orejime cookie, in days. // defaults to 365. cookieExpiresAfterDays: 365, // Optional. You can provide a custom function to serialize the cookie contents. stringifyCookie: (contents) => JSON.stringify(contents), // Optional. You can provide a custom function to unserialize the cookie contents. parseCookie: (cookie) => JSON.parse(cookie), // You must provide a link to your privacy policy page privacyPolicy: "https://lauriesenacq.com/donnees-personnelles/", // Optional. Applications configured below will be ON by default if default=true. // defaults to true default: true, // Optional. If "mustConsent" is set to true, Orejime will directly display the consent // manager modal and not allow the user to close it before having actively // consented or declined the use of third-party apps. // defaults to false mustConsent: false, // Optional. If "mustNotice" is set to true, Orejime will display the consent // notice and not allow the user to close it before having actively // consented or declined the use of third-party apps. // Has no effect if mustConsent is set to true. // defaults to false mustNotice: false, // Optional. If "implicitConsent" is set to true, Orejime will automatically accept // cookies if the user continues his navigation on the website after the // first page. If you enable this, you must warn the user // of this behavior in the notice window. You can do that easily by overriding // translation strings (see below). // defaults to false implicitConsent: false, // Optional. You can define the UI language directly here. If undefined, Orejime will // use the value given in the global "lang" variable, or fallback to the value // in the lang attribute, or fallback to "en". lang: "fr", // Optional. You can pass an image url to show in the notice. // If the image is not exclusively decorative, you can pass an object // with the image src and alt attributes: `logo: {src: '...', alt: '...'}` // defaults to false logo: false, // Optional. Set Orejime in debug mode to have a few stuff // logged in the console, like warning about missing translations. // defaults to false debug: false, // You can overwrite existing translations and add translations for your // app descriptions and purposes. See `src/translations.yml` for a full // list of translations that can be overwritten translations: { en: { consentModal: { description: "This is an example of how to override an existing translation already used by Orejime", }, inlineTracker: { description: "Example of an inline tracking script", }, externalTracker: { description: "Example of an external tracking script", }, purposes: { analytics: "Analytics", security: "Security" } }, fr: { consentNotice: { description: "Ce site utilise des cookies afin d'obtenir des statistiques de fréquentation anonymes pour optimiser son ergonomie, sa navigation et ses contenus.", }, consentModal: { description: "Un cookie est un fichier texte déposé sur votre ordinateur lors de la visite d'un site. Il permet de conserver des données utilisateur afin de faciliter la navigation et de permettre certaines fonctionnalités. Pour certains d’entre eux, votre accord est nécessaire ; vous pouvez les activer ou les désactiver. Cependant pour bénéficier de l’ensemble des fonctionnalités du site (amélioration du site grâce aux statistiques de navigation, lecture de vidéos, etc.), il est conseillé de garder les cookies activés.", title : "Gestion des cookies" }, purposes: { technical : " Ils garantissent le bon fonctionnement du site et permettent son optimisation. Sans eux, il ne peut pas fonctionner correctement. Ils sont activés par défaut et ne peuvent pas être désactivés.", analytics : "Ils permettent également d’obtenir des statistiques de fréquentation anonymes du site afin d’optimiser son ergonomie, sa navigation et ses contenus. En désactivant ces cookies, nous ne pourrons pas analyser le trafic du site lauriesenacq.com. ", streaming : "Ces cookies permettent la lecture de vidéos sur le site lauriesenacq.com en provenance de sites d’hébergement de contenus tels que Youtube par exemple. En désactivant ces cookies, vous ne serez pas en mesure de regarder des contenus sous forme de vidéos dans les actualités ou les fiches pratiques du site lauriesenacq.com. ", social : "Ils permettent d’afficher dans le site des flux d’informations ou d’échanges provenant des réseaux sociaux. " } } }, // The list of third-party apps that Orejime will manage for you. // The apps will appear in the modal in the same order as defined here. apps: [ { // The name of the app, used internally by Orejime. // Each name should match a name of a