pixel_z - the JS game
created by zorza 2013
beta version
| "use strict"; | |
| (function () { | |
| angular.module("backOffice") | |
| .filter('bytes', function () { | |
| return function (bytes, precision) { | |
| if (bytes === 0 || isNaN(parseFloat(bytes)) || !isFinite(bytes)) return '-'; | |
| if (typeof precision === 'undefined') precision = 1; | |
| var units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'], | |
| number = Math.floor(Math.log(bytes) / Math.log(1024)), |
pixel_z - the JS game
created by zorza 2013
beta version