MCPcopy Create free account
hub / github.com/RocketMap/RocketMap / pad

Function pad

static/js/map.js:296–298  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

294}
295
296function pad (number) {
297 return number <= 99 ? ('0' + number).slice(-2) : number
298}
299
300function getTypeSpan (type) {
301 return `<span style='padding: 2px 5px; text-transform: uppercase; color: white; margin-right: 2px; border-radius: 4px; font-size: 0.8em; vertical-align: text-bottom; background-color: ${type['color']}'>${type['type']}</span>`

Callers 3

pokemonLabelFunction · 0.85
gymLabelFunction · 0.85
pokestopLabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected