(n)
| 594 | const hslToHex = hsl => '#' + (Array.from(hslToRgb(...Array.from(hsl || []))).map((n) => toHex(n))).join('') |
| 595 | |
| 596 | var toHex = function (n) { |
| 597 | let h = Math.floor(n).toString(16) |
| 598 | if (h.length === 1) { h = '0' + h } |
| 599 | return h |
| 600 | } |
| 601 | |
| 602 | const pathToUrl = function (path) { |
| 603 | const base = location.protocol + '//' + location.hostname + (location.port && (':' + location.port)) |