1/** 2 * NumeralJS 3 */ 4 5'use strict'; 6 7(function () { 8 const dNum = document.querySelector('.dNum'), 9 fNum = document.querySelector('.fNum'), 10 fCurrency = document.querySelector('.fCurrency'), 11 fBytes = document.querySelector('.fBytes'), 12 fPercent = document.querySelector('.fPercent'), 13 fTime = document.querySelector('.fTime'), 14 fExponential = document.querySelector('.fExponential'); 15 16 if (dNum) { 17 dNum.innerHTML = numeral(974).value(); 18 } 19 if (fNum) { 20 fNum.innerHTML = numeral(1230974).format('0.0a'); 21 } 22 if (fCurrency) { 23 fCurrency.innerHTML = numeral(1000.234).format('$0,0.000'); 24 } 25 if (fBytes) { 26 fBytes.innerHTML = numeral(3467479682787).format('0.000ib'); 27 } 28 if (fPercent) { 29 fPercent.innerHTML = numeral(0.974878234).format('0.000%'); 30 } 31 if (fTime) { 32 fTime.innerHTML = numeral(63846).format('00:00:00'); 33 } 34 if (fExponential) { 35 fExponential.innerHTML = numeral(1123456789).format('0,0e+0'); 36 } 37})();
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.