1(function(){const widgetContainer=document.getElementById('exchangeRateWidget');if(!widgetContainer)return;const tableBody=widgetContainer.querySelector('tbody');const apiUrl='https://api.nbp.pl/api/exchangerates/tables/C/?format=json';fetch(apiUrl,{headers:{'Accept':'application/json'}}).then(response=>{if(!response.ok)throw new Error('BÅÄ d sieci: '+response.statusText);return response.json()}).then(data=>{const rates=data[0].rates;const date=data[0].effectiveDate;const selectedCurrencies=['USD','EUR','CHF','GBP'];selectedCurrencies.forEach(code=>{const r=rates.find(item=>item.code===code);if(r){const row=document.createElement('tr');row.innerHTML=` 2 <td>${r.code}</td> 3 <td>${r.bid.toFixed(4)}</td> 4 <td>${r.ask.toFixed(4)}</td> 5 <td>${new Date(date).toLocaleDateString('pl-PL')}</td> 6 `;tableBody.appendChild(row)}})}).catch(error=>{widgetContainer.innerHTML=`<p style="color:red;">BÅÄ d podczas pobierania danych: ${error.message}</p>`})})()
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.