MCPcopy Create free account
hub / github.com/compat-table/compat-table / gradient

Function gradient

master.js:421–426  ·  view source on GitHub ↗
(colour, percent)

Source from the content-addressed store, hash-verified

419 var flaggedFeaturesCount = flaggedPoints / totalPoints;
420
421 function gradient(colour, percent) {
422 return 'linear-gradient(to top, ' +
423 colour + ' 0%, ' + colour + ' ' +
424 (percent * 100|0) + '%, transparent ' + (percent * 100|0) +
425 '%,transparent 100%)';
426 }
427 var colour = getBrowserColour(id);
428 elem
429 .attr('data-num', i)

Callers 1

master.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected