1// Javascript to generate iframe, check user key is valid 2 3var f = check_valid_oanda_link(); 4var iframe_source = document.location.protocol + "https://www.oanda.com/embedded/converter/show/YnJ0aG9tcHMvL2RlZmF1bHQ=/" + f + "/en/"; 5var iframe_style = "width: 300px; height: 250px; border:0px solid #ffffff; display:block;"; 6 7var ifrm = document.createElement('iframe'); 8ifrm.setAttribute('src', iframe_source); 9ifrm.setAttribute('style', iframe_style); 10ifrm.setAttribute('scrolling', 'no'); 11ifrm.setAttribute('width', '300'); 12ifrm.setAttribute('height', '250'); 13ifrm.setAttribute('frameBorder', '0'); 14 15var cc_link = document.getElementById('oanda_cc_link'); 16var ecc_div = document.getElementById('oanda_ecc'); 17 18if (cc_link){ 19 20 ecc_div.insertBefore(ifrm, ecc_div.firstChild); 21 22} 23else { 24 25 document.getElementById('oanda_ecc').appendChild(ifrm); 26 27} 28 29 30function check_valid_oanda_link(){ 31 32 var link2 = document.getElementById('oanda_cc_link'); 33 34 if ((typeof link2 === "undefined") || (link2 == null) || (/https?\:\/\/www\.oanda\.com(\/lang\/[A-Za-z]{2})?\/currency\/converter|https?:\/\/fxtrade\.oanda\.com/.exec(link2.href) == null)) { 35 36 return 1; 37 38 } 39 else { 40 41 return 0; 42 43 } 44 45}
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.