1$(document).ready(function() { 2 3 $('[data-form]').on('click', function(e) { 4 e.preventDefault(); 5 let formId = $(this).data('form'); 6 let adminEmail = $(this).data('email'); 7 let date = $(this).data('date'); 8 let location = $(this).data('location'); 9 let aircraft = $(this).data('aircraft'); 10 let source_details = $(this).data('source_details'); 11 let iframeUrl = formLegend[formId]; 12 let currentUrl = encodeURIComponent(window.location.href); 13 14 // Get UTM parameters from parent URL 15 const params = new URL(document.location.toString()).searchParams; 16 let utmParams = {}; 17 18 // Start building the URL 19 let computedUrl = `${iframeUrl}?url_of_page=${currentUrl}`; 20 21 // Append the admin email if it exists 22 if (adminEmail) { 23 computedUrl += `&admin_email=${adminEmail}`; 24 } 25 26 if (date) { 27 computedUrl += `&date=${date}`; 28 } 29 if (location) { 30 computedUrl += `&location=${location}`; 31 } 32 if (aircraft) { 33 computedUrl += `&aircraft=${aircraft}`; 34 } 35 if (source_details) { 36 computedUrl += `&source_details=${source_details}`; 37 } 38 39 // Append any utm parameters 40 for (const [key, val] of params) { 41 if (key.startsWith('utm_') || key.startsWith('utm-')) { 42 // Store
43 utmParams[key] = val; 44 // Append 45 computedUrl += `&${key}=${val}`; 46 } 47 } 48 49 $('.appendForm').empty(); 50 $('.appendForm').html(`<iframe src="${computedUrl}" width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0">Loadingâ¦</iframe>`); 51 }); 52 53});
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.