MCPcopy Index your code
hub / github.com/NUKnightLab/TimelineJS3 / interpretBackground

Function interpretBackground

src/js/core/ConfigFactory.js:52–60  ·  view source on GitHub ↗
(bkgd)

Source from the content-addressed store, hash-verified

50
51
52function interpretBackground(bkgd) {
53 if (typeof(bkgd) != 'string') return ''
54 if (bkgd.match(/^(https?:)?\/\/?/)) { // support http, https, protocol relative, site relative
55 return { 'url': bkgd }
56 } else { // for now we'll trust it's a color
57 return { 'color': bkgd }
58 }
59
60}
61
62function extractEventFromCSVObject(orig_row) {
63

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected