1"use strict"; 2var DoUtility = (function () { 3 function DoUtility() { 4 } 5 DoUtility.SelfInstantiateOnLoad = function (classType) { 6 if (!classType) { 7 console.log("SelfInstantiateOnLoad() classType arg cannot be null"); 8 return; 9 } 10 if (document.readyState === "loading") { 11 window.addEventListener("DOMContentLoaded", function () { return new classType(); }); 12 } 13 else { 14 new classType(); 15 } 16 }; 17 DoUtility.DecodeHtml = function (encodedHtml) { 18 var textarea = document.createElement("textarea"); 19 textarea.innerHTML = encodedHtml; 20 return textarea.value; 21 }; 22 DoUtility.OpenWindowSticker = function (url) { 23 var screen_width = window.screen.availWidth; 24 var left_point = Math.trunc(screen_width / 2) - 500; 25 var brochureWindow = window.open(url, "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=yes,copyhistory=yes,width=1050,height=1500"); 26 brochureWindow.moveTo(left_point, 0); 27 }; 28 DoUtility.OpenFordWindowSticker = function (url) { 29 var t3websiteCookie = ""; 30 var guid = ""; 31 if (window.DealeronCookie) { 32 t3websiteCookie = 33 window.DealeronCookie.getItem("t3website") || ""; 34 } 35 if (t3websiteCookie != "") { 36 var elements = t3websiteCookie.match(/<cookieguid>([^<]*)<\/cookieguid>/); 37 if (elements.length > 1) { 38 var cookieguid = elements[1]; 39 if (cookieguid != null) { 40 guid = cookieguid; 41 } 42 } 43 } 44 if (guid == "") { 45 DoUtility.OpenWindowSticker(url); 46 } 47 else { 48 DoUtility.OpenWindowSticker(url + "&cguid=" + guid); 49 } 50 }; 51 Object.defineProperty(DoUtility, "isTouchDevice", { 52 get: function () { 53 return "ontouchstart" in window || navigator.maxTouchPoints > 0; 54 }, 55 enumerable: false, 56 configurable: true 57 }); 58 Object.defineProperty(DoUtility, "isMobile", { 59 get: function () { 60 return window.innerWidth <= 991; 61 }, 62 enumerable: false, 63 configurable: true 64 }); 65 return DoUtility; 66}());
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.