1// jQuery(document).ready(function ($) { 2// function setCookie(name, value, days) { 3// var expires = "" 4// if (days) { 5// var date = new Date() 6// date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000) 7// expires = "; expires=" + date.toUTCString() 8// } 9// document.cookie = name + "=" + (value || "") + expires + "; path=/" 10// } 11// function getNumberFromHash() { 12// // Get the full URL 13// var url = window.location.href 14 15// // Check if &__sgtarget=-1 is present in the URL 16// if (url.indexOf("&__sgtarget=-1") !== -1) { 17// // Find the hash part of the URL 18// var hash = window.location.hash 19 20// // Check if the hash matches the pattern #sgbody-<number> 21// var match = hash.match(/^#sgbody-(\d+)$/) 22 23// if (match) { 24// // Return the number after the hyphen 25// return match[1] 26// } 27// } 28 29// // Return null if conditions are not met 30// return null 31// } 32// // Example usage 33// var number = getNumberFromHash() 34// if (number !== null) { 35// setCookie(number, document.location.href, 7) 36// console.log("Extracted number:", number) 37// } else { 38// console.log("Condition not met or no valid hash found.") 39// } 40// }) 41 42jQuery(document).ready(function ($) { 43 // Remove specific classes from newsletter form 44 function updateDivClasses() { 45 var div = document.getElementById("sgbody-7952946") 46 var alForm = document.querySelector("#sg_FormFor7952946 .sg-question-set") 47 48 if (div && window.matchMedia("(max-width: 1024px)").matches) { 49 div.classList.remove("sg-mobile", "sg-mobile-optimized", "sg-int-virtual-page") 50 alForm.style.height = "auto" 51 } 52 } 53 54 setTimeout(function () { 55 updateDivClasses() 56 }, 300) 57})
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.