Skip to content

Instantly share code, notes, and snippets.

View pastuh's full-sized avatar

pastuh

  • Lithuania
View GitHub Profile
@pastuh
pastuh / DOM.js
Last active February 10, 2019 19:40
Playful Palette - Color mixing
(function(){
//DOM Library V0.0.1
var fn = {};
$js.libraryAdd('hasClass', function(a, b){
var c = (a.getAttribute('class') || '').split(/\s+/g);
for(var d in c){
if(c[d] == b){
return true;
}