_listener:h})):console.log("Failed to _attach event:"+c+" on "+a)},e=function(a,b,d){if("undefined"!==typeofa.detachEvent){varh=a.KIS_0_6_0;if(h&&h.listeners&&h.listeners[b])for(vare=h.listeners[b],f=e.length,i=0;i<f;i++)if(e[i].callback===d){a.detachEvent("on"+b,e[i]._listener);e.splice(i,1);0===e.length&&deleteh.listeners[b];break}}});f=function(a,b,d,h){varj,k;if(typeofa==="undefined"){console.log(arguments);console.log(b);returnfalse}if(b.match(/^([\w\-]+)$/))h===true?g(a,b,d):e(a,b,d);
"undefined"!==typeofdocument&&!("classList"indocument.createElement("a"))&&function(g){varg=(g.HTMLElement||g.Element).prototype,e=Object,f=String.prototype.trim||function(){returnthis.replace(/^\s+|\s+$/g,"")},b=Array.prototype.indexOf||function(a){for(varb=0,c=this.length;b<c;b++)if(binthis&&this[b]===a)returnb;return-1},a=function(a,b){this.name=a;this.code=DOMException[a];this.message=b},c=function(c,d){if(""===d)thrownewa("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(d))thrownewa("INVALID_CHARACTER_ERR",
"String contains an invalid character");returnb.call(c,d)},d=function(a){for(varb=f.call(a.className),b=b?b.split(/\s+/):[],c=0,d=b.length;c<d;c++)this.push(b[c]);this._updateClassName=function(){a.className=this.toString()}},h=d.prototype=[],j=function(){returnnewd(this)};a.prototype=Error.prototype;h.item=function(a){returnthis[a]||null};h.contains=function(a){return-1!==c(this,a+"")};h.add=function(a){a+="";-1===c(this,a)&&(this.push(a),this._updateClassName())};h.remove=function(a){a=c(this,
(function(){functiong(b,a,c){vard,e;"undefined"!==typeofb.hasAttribute?(b.hasAttribute(a)&&(d=b.getAttribute(a)),e=!0):"undefined"!==typeofb[a]?(d=b[a],e=!1):"class"===a&&"undefined"!==typeofb.className&&(a="className",d=b.className,e=!1);if("undefined"===typeofd&&("undefined"===typeofc||null===c))returnconsole.log(c),console.log(b),console.log("Element does not have the selected attribute"),null;if("undefined"===typeofc)returnd;"undefined"!==typeofc&&null!==c?!0===e?b.setAttribute(a,c):
c,null;console.log("Property "+a+" nor an equivalent seems to exist")}$_.ext("dom",{addClass:function(b){$_.each(function(a){a.classList.add(b)})},removeClass:function(b){$_.each(function(a){a.classList.remove(b)})},hide:function(){this.css("display","none")},show:function(b){"undefined"===typeofb&&(b="block");this.css("display",b)},attr:function(b,a){varc=this.el;if(1<c.length&&"undefined"===typeofa)console.log(c),console.log("Must be a singular element");elseif(1<c.length&&"undefined"!==typeofa)$_.each(function(c){returng(c,