Line 137: | Line 137: | ||
obj = JSON.parse(datastring); | obj = JSON.parse(datastring); | ||
padInt5 = function ( i ){ | padInt5 = function ( i ){ | ||
− | i.toString().padStart(5, '0') | + | i.toString().padStart(5, '0'); |
}); | }); | ||
obj.id = padInt5(obj.id); | obj.id = padInt5(obj.id); | ||
− | console.log(obj) | + | console.log(obj); |
− | show_details(obj) | + | show_details(obj); |
} | } | ||
) | ) |
Revision as of 21:14, 28 October 2017