View _cmyk.scss
@function cmyk_black($color) { | |
@return 1 - max(red($color), green($color), blue($color)) / 255; | |
} | |
@function cmyk_cyan($color) { | |
$black: cmyk_black($color); | |
@return if($black < 1, 1 - red($color) / 255 / (1 - $black), 0); | |
} | |
@function cmyk_magenta($color) { | |
$black: cmyk_black($color); |
View ie-domtokenlist-toggle.js
(function(dtl) { | |
if (!dtl) return; | |
var elem = document.createElement("div"); | |
div.classList.toggle("test", false); | |
if (div.className === "test") | |
dtl.prototype.toggle = (function(toggle) { | |
return function(cls, force) { | |
if (typeof force === "boolean") | |
return this[force ? "add" : "remove"](cls); |
View conic-gradient.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View codepointat.js
String.prototype.codePointAt || (String.prototype.codePointAt = function(index) { | |
var code = this.charCodeAt(index); | |
if (code >= 0xd800 && code <= 0xdbff) { | |
var surr = this.charCodeAt(index + 1); | |
if (surr >= 0xdc00 && surr <= 0xdfff) | |
code = 0x10000 + ((code - 0xd800) << 10) + (surr - 0xdc00); | |
} | |
return code; | |
}); |