PageSourceSearch

https://www.equitalyon.com/sites/default/files/js/js_PusMXKaDYUESQ…ip9EOa7OWTdOexMV_A5cfw9_rJS1ZXKwVLi_AZNV1B-

js equitalyon.com collected 2026-10-02 05:45:48 UTC 7,995 bytes, 64 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(($,Drupal)=>{let ajaxInProgress=false;let gptLoaded=false;window.singleRequestEnabled=window.singleRequestEnabled||false;Drupal.behaviors.dfpBehavior={attach:(context,settings)=>{const initDfpBlocks=(context)=>{const $dfpBlock=$('.dfptBlock',context);const scriptContent=`
3          <script src="https://securepubads.g.doubleclick.net/tag/js/gpt.js" async></script>
4          <script>
5          window.googletag = window.googletag || {cmd: []};
6          googletag.cmd.push(function () {
7            googletag.pubads().setCookieOptions(1);
8          });
9          if (typeof tarteaucitron !== 'undefined') {
10            tarteaucitron.services.dfp = {
11              "key": "dfp",
12              "type": "ads",
13              "name": "Dfp (Ad Manager)",
14              "needConsent": true,
15              "cookies": [' __gads'],
16              "js": function () {
17                "use strict";
18                googletag.cmd.push(function () {
19                  googletag.pubads().setCookieOptions(0);
20                });
21              },
22              "fallback": function () {
23                "use strict";
24              }
25            };
26            (tarteaucitron.job = tarteaucitron.job || []).push('dfp');
27          }
28          </script>`;if(!gptLoaded&&!document.querySelector('script[src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"]')){$('head').append(scriptContent);gptLoaded=true;}const $dfp_content=$('.field--name-field-webgl-dfp-tag-id',context).not('form .field--name-field-webgl-dfp-tag-id');if($dfp_content.length)$dfp_content.each((i,el)=>{const $dfp_content_js_block=$(el).next('.field--name-field-webgl-dfp-code-javascript');if(!$dfp_content_js_block.length)return;const dfpId=$(el).find('.field__item').html();const dfpJs=$dfp_content_js_block.find('.field__item').html();if(!dfpId||!dfpJs)return;window.googletag.cmd.push(()=>{const existingSlot=window.googletag.pubads().getSlots().find((slot)=>slot.getSlotElementId()===dfpId);const destroySlot=async()=>{if(existingSlot)await new Promise((resolve)=>{window.googletag.destroySlots([existingSlot]);resolve();});};destroySlot().then(()=>{const $dfp_Block=`<div class="dfptBlock text-center">
29                  <div id="${dfpId}" style="overflow: hidden;">
30                    <script type="text/javascript">
31                      if (!window.googletag) {
32                        window.googletag = {cmd: []};
33                      }
34                      window.googletag.cmd.push(function() {
35                        ${dfpJs}
36                        if (!window.singleRequestEnabled) {
37                          googletag.pubads().enableSingleRequest();
38                          window.singleRequestEnabled = true;
39                        }
40                        googletag.enableServices();
41                        googletag.display("${dfpId}");
42                      });
43                    </script>
44                  </div>
45                </div>`;$(el).replaceWith($dfp_Block);$dfp_content_js_block.remove();});});});$dfpBlock.each((i,el)=>{const $myBlock=$(el).find('.block-dfp');if(!$myBlock)return;const blockId=$myBlock.attr('id');const jsCode=$myBlock.attr('data-dfp-js');if(!blockId||!jsCode)return;window.googletag.cmd.push(()=>{const existingSlot=window.googletag.pubads().getSlots().find((slot)=>slot.getSlotElementId()===blockId);const destroySlot=async()=>{if(existingSlot)await new Promise((resolve)=>{window.googletag.destroySlots([existingSlot]);resolve();});};destroySlot().then(()=>{const display=`<script type="text/javascript">window.googletag = window.googletag || {cmd: []};
46                googletag.cmd.push(function() {
47                  ${jsCode}
48                  if (!window.singleRequestEnabled) {
49                    googletag.pubads().enableSingleRequest();
50                    window.singleRequestEnabled = true;
51                  }
52                  googletag.enableServices();
53                });
54                if (googletag !== undefined) {
55                  googletag.cmd.push(function () {
56                    googletag.display("${blockId}");
57                  });
58                }
59              </script>`;$myBlock.append(display);});});});};let ajaxTimeout;const ajaxStartHandler=()=>{ajaxInProgress=true;};const ajaxCompleteHandler=(event,xhr,settings)=>{if(settings.url.indexOf('/views/ajax')>-1){if(ajaxTimeout)clearTimeout(ajaxTimeout);ajaxTimeout=setTimeout(()=>{initDfpBlocks(context);ajaxInProgress=false;},500);}};$(document).ajaxStart(ajaxStartHandler);$(document).ajaxComplete(ajaxCompleteHandler);if(!ajaxInProgress)initDfpBlocks(context);}};
59const showBackgroundBlock=()=>{setTimeout(()=>{const bait=document.querySelectorAll('.block-dfp');Array.from(bait).forEach((dfpElement)=>{if(dfpElement.offsetHeight!==0){let sibling=dfpElement.previousElementSibling;while(sibling){if(sibling.classList.contains('dfptBackground')){sibling.style.display='block';break;}sibling=sibling.previousElementSibling;}}});},200);};const initializeGooglePublisherTag=()=>{if(!gptLoaded){const gptScript=document.createElement('script');gptScript.async=true;gptScript.src='https://www.googletagservices.com/tag/js/gpt.js';const firstScript=document.getElementsByTagName('script')[0];firstScript.parentNode.insertBefore(gptScript,firstScript);gptLoaded=true;}window.googletag=window.googletag||{};googletag.cmd=googletag.cmd||[];googletag.cmd.push(()=>{if(!window.singleRequestEnabled){googletag.pubads().enableSingleRequest();window.singleRequestEnabled=true;}googletag.enableServices();});};initializeGooglePublisherTag();function handleSlotRenderEnded(event){if(!event.isEmpty)showBackgroundBlock();}window.googletag.cmd.push(function(){googletag.pubads().addEventListener('slotRenderEnded',handleSlotRenderEnded);});})(jQuery,Drupal);;
60window.dataLayer=window.dataLayer||[];dataLayer.push({event:"pageview",page_path:window.location.pathname,page_title:document.title,language:document.documentElement.lang});;
61function getDocName(link){const linkData=link.split('/');if(linkData.length>0){const docName=linkData[linkData.length-1];if(!docName.endsWith('.pdf'))return false;return encodeURIComponent(docName);}}function updateDataLayer(docName){dataLayer.push({event:"download_pdf",doc_name:docName});}const linkEls=document.querySelectorAll("[href$='.pdf']:not([download])");if(linkEls!==null&&linkEls.length>0)linkEls.forEach((linkEl)=>{linkEl.onclick=()=>{const link=linkEl.href;const docName=getDocName(link);if(docName)updateDataLayer(docName);};});document.addEventListener("DOMContentLoaded",function(){document.body.addEventListener("click",function(event){if(event.target.closest("[download]")){const element=event.target.closest("[download]");const link=element.getAttribute('href');if(link){const docName=getDocName(link);if(docName)updateDataLayer(docName);}}});});;
62const mailBtns=document.querySelectorAll('[href^="mailto:"]');if(mailBtns.length)mailBtns.forEach((btn)=>{btn.onclick=()=>{dataLayer.push({event:"cta_mail"});};});;
63const callBtns=document.querySelectorAll('[data-bento-button-call-tracking]');const isMobile=window.innerWidth<768;if(callBtns.length)callBtns.forEach((btn)=>{const phoneNumber=btn.getAttribute('data-bento-button-call-tracking');if(!phoneNumber||!phoneNumber.startsWith('tel:'))return;const eventData={event:'call_tracking',tel_detail:phoneNumber.replace('tel:',''),category:'conversion'};btn.onclick=(e)=>{if(isMobile){dataLayer.push(eventData);window.location.href=phoneNumber;return;}if(btn.getAttribute('data-revealed')!=='true'){e.preventDefault();const textEl=btn.querySelector('span')||btn;textEl.textContent=phoneNumber.replace('tel:','');btn.setAttribute('data-revealed','true');dataLayer.push(eventData);return;}};});;
64const btns=document.querySelectorAll('[href*="exposant.gl-events.com"]');if(btns.length)btns.forEach((btn)=>{const link=btn.getAttribute('href');btn.onclick=()=>{dataLayer.push({event:"outbound_link",link:"formulaire exposants"});};});;

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.