1(function( $ ) { 2 'use strict'; 3 4 /** 5 * public-facing javascript w/ jquery 6 */ 7 $(document).ready(function () { 8 // foreupsoftware.com iframe decoration START 9 // https://support.google.com/analytics/answer/10071811?hl=en#zippy=%2Cmanual-setup 10 let ga4_clientID; 11 let ga4_sessionID; 12 gtag('get', plugindata.ga4, 'client_id', (client_id) => { 13 ga4_clientID = client_id; 14 decorateIframes(); 15 }); 16 gtag('get', plugindata.ga4, 'session_id', (session_id) => { 17 ga4_sessionID = session_id; 18 decorateIframes(); 19 }); 20 function decorateIframes() { 21 if (plugindata.ga4 && ga4_clientID && ga4_sessionID) { 22 let urlAddOn = `clientId=${ga4_clientID}&sessionId=${ga4_sessionID}`; 23 $('iframe[src*="foreupsoftware.com"]').each(function() { 24 var originalSrc = $(this).attr('src'); 25 if (originalSrc.includes('?')) { 26 var modifiedSrc = originalSrc + '&' + urlAddOn; 27 } else { 28 var modifiedSrc = originalSrc + '?' + urlAddOn; 29 } 30 $(this).attr('src', modifiedSrc); 31 }); 32 } 33 } 34 // foreupsoftware.com iframe decoration END 35 }); 36})( jQuery );
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.