1export function initPoool() { 2 let b = document.querySelector('body'); 3 4 if (b && b.dataset.authenticated == 'true') { 5 return; 6 } 7 8 !function(w, d, s, u, p, t, o) { 9 w[p] = w[p] || function() { 10 (w[p]._q = w[p]._q || []).push(arguments) 11 }, 12 t = d.createElement(s), o = d.getElementsByTagName(s)[0], 13 t.defer = 1, t.src = u, o.parentNode.insertBefore(t, o) 14 }(window, document, "script", "https://assets.poool.fr/poool.min.js", "poool"); 15 16 poool('init', "HSAZR-GB7QA-6O7HJ-0G5AO"); 17 poool('config', 'mode', 'excerpt'); 18 poool('config', 'percent', 85); 19 poool("config", "cookies_enabled", true); 20 poool("send", "page-view", "premium"); 21 22 poool('style', { 23 button_color: '#000', 24 button_hover_color: '#000', 25 }); 26 27 poool('event', 'onFormSubmit', function(event) { 28 console.log('Formulaire ' + event.Email + ' envoyé !'); 29 var invalid = ['email']; 30 31 if (event.fields.password !== event.fields.passwordRepeat) { 32 invalid.push('password'); 33 invalid.push('passwordRepeat'); 34 } 35 36 return invalid; 37 }); 38 39 poool('event', 'onRegister', async function(event) { 40 let response; 41 try { 42 response = await fetch('/wp-content/plugins/maxitest/controller/newsletter.php', { 43 method: 'POST', 44 headers: { 45 'Content-Type': 'application/json', 46 }, 47 body: JSON.stringify({ 48 "listId": 289, 49 "email": event.email 50 }), 51 }); 52 } catch(error) { 53 return; 54 } 55 56 const data = await response.json(); 57 if (data.status == 'SUCCESS') { 58 console.log('successfully registered to Newsletter'); 59 } 60 }); 61 62 poool('config', 'ga_auto_tracking_enabled', true); 63}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.