Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
}); |