PageSourceSearch

https://www.travelex.co.uk/media/3096/taux.js

js travelex.co.uk collected 2026-09-24 17:09:34 UTC 867 bytes, 1 lines download raw bytes

1!function(t){var e,a;t.fn.todaybestexchangerates=function(){function r(t,e){var a=e,r=parseFloat(t);return a=isNaN(a=Math.abs(a))?2:a,(r<0?"-":"")+(Math.abs(+r||0).toFixed(a)+"")}return this.each(function(){var n=(e=t(this)).attr("data-foreign-currency"),s=e.attr("data-do-exchange-of"),o=e.find(".exchanged-amount"),u=e.find(".fx-rate");t.support.cors=!0;var c=new XMLHttpRequest;c.open("GET","https://api.travelex.net/salt/rates/current?key=Travelex&site=/gb&productCodes="+n),c.onreadystatechange=function(){if(4!=c.readyState||200!=c.status&&304!=c.status)404!=c.status&&500!=c.status||console.log("Internal error: "+jqXHR.responseText+jqXHR.errorThrown);else{var e=JSON.parse(c.responseText);t.each(e.rates,function(t,c){e.foreignCurrencyAsBase?u.text(r(1*c,4)):u.text(c),a="USD"==n?r(s*c,1):s*c,o.text(parseFloat(a).formatMoney(2))})}},c.send(null)})}}(jQuery);

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.