isNumber(evt) { evt = evt ? evt : window.event; let charCode = evt.which ? evt.which : evt.keyCode; if ( charCode > 31 && (charCode < 48 || charCode > 57) && charCode !== 46 ) { evt.preventDefault(); } else { return true; } },
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter