1var ifrm; 2 3 4 window.addEventListener('message', e => { 5 const key = e.message ? 'message' : 'data'; 6 const data = e[key]; 7 8 9 if(e.origin == 'https://dealers.virtualyard.com.au') { 10 window.token = data.token; 11 12 dcSetup(); 13 } 14 15 16 },false); 17 18 19 function dcSetup() { 20 21 var dealerConnectForm = document.getElementById("msform"); 22 var elementToken = document.getElementById('token'); 23 24 if(dealerConnectForm) { 25 26 if (typeof(elementToken) != 'undefined' && elementToken != null) { 27 // Exists. 28 } else { 29 var input = document.createElement("input"); 30 input.setAttribute("type", "hidden"); 31 input.setAttribute("name", "token"); 32 input.setAttribute("id", "token"); 33 input.setAttribute("value", window.token); 34 document.getElementById("msform").appendChild(input); 35 } 36 37 } 38 39 40 41 42 43 } 44 function ifrmLoad() { 45 46 47 48 } 49 50 function prepareFrame() { 51 52 if(!document.body) { 53 setTimeout(function() { 54 prepareFrame(); 55 },100); 56 return; 57 } 58 59 if (localStorage.getItem("_auth") === null) { 60 window.token = 'fXxZ05NhNDd6TuQkjhEdXrXUdsvDwpGz6iqABjhblWgpV73M85Pm3FuiJAMZn83q2o1-jXYGxD9G52TxsMXn9RKun9iBTkNS_YUIehzOkbM9YHNb3Qc9obTLDzHCGAxFSlkGdWbuMBC94WWUUnGeRQ'; 61 62 localStorage.setItem("_auth", window.token); 63 64 65 } else { 66 window.token = localStorage.getItem("_auth"); 67 68 dcSetup(); 69 70 return; 71 72 } 73 74 75 76 dcSetup(); 77 78 79 ifrm = document.createElement("iframe"); 80 ifrm.setAttribute("src", "https://dealers.virtualyard.com.au/public/67c2d37669104/authh.html"); 81 ifrm.setAttribute("style", "display:none;"); 82 ifrm.setAttribute("onLoad", "ifrmLoad()"); 83 ifrm.setAttribute("sandbox", "allow-forms allow-modals allow-popups allow-scripts"); 84 85 ifrm.style.width = "0px"; 86 ifrm.style.height = "0px"; 87 document.body.appendChild(ifrm); 88 } 89 90 91 prepareFrame();
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.