Sha256: 4a0d666d8b735134a74ac380fa2af79fdca56100289498b58423ccc7ad69a053

Contents?: true

Size: 1.54 KB

Versions: 132

Compression:

Stored size: 1.54 KB

Contents

/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js*/
if(typeof document!=="undefined"&&!("classList" in document.createElement("a"))){(function(j){var a="classList",f="prototype",m=(j.HTMLElement||j.Element)[f],b=Object,k=String[f].trim||function(){return this.replace(/^\s+|\s+$/g,"")},c=Array[f].indexOf||function(q){var p=0,o=this.length;for(;p<o;p++){if(p in this&&this[p]===q){return p}}return -1},n=function(o,p){this.name=o;this.code=DOMException[o];this.message=p},g=function(p,o){if(o===""){throw new n("SYNTAX_ERR","An invalid or illegal string was specified")}if(/\s/.test(o)){throw new n("INVALID_CHARACTER_ERR","String contains an invalid character")}return c.call(p,o)},d=function(s){var r=k.call(s.className),q=r?r.split(/\s+/):[],p=0,o=q.length;for(;p<o;p++){this.push(q[p])}this._updateClassName=function(){s.className=this.toString()}},e=d[f]=[],i=function(){return new d(this)};n[f]=Error[f];e.item=function(o){return this[o]||null};e.contains=function(o){o+="";return g(this,o)!==-1};e.add=function(o){o+="";if(g(this,o)===-1){this.push(o);this._updateClassName()}};e.remove=function(p){p+="";var o=g(this,p);if(o!==-1){this.splice(o,1);this._updateClassName()}};e.toggle=function(o){o+="";if(g(this,o)===-1){this.add(o)}else{this.remove(o)}};e.toString=function(){return this.join(" ")};if(b.defineProperty){var l={get:i,enumerable:true,configurable:true};try{b.defineProperty(m,a,l)}catch(h){if(h.number===-2146823252){l.enumerable=false;b.defineProperty(m,a,l)}}}else{if(b[f].__defineGetter__){m.__defineGetter__(a,i)}}}(self))};

Version data entries

132 entries across 128 versions & 19 rubygems

Version Path
slippery-0.4.2 assets/reveal.old/lib/js/classList.js
slippery-0.4.2 assets/reveal.js/lib/js/classList.js
reveal.rb-0.5.3 lib/reveal/templates/revealjs/lib/js/classList.js
reveal.rb-0.5.2 lib/reveal/templates/revealjs/lib/js/classList.js
reveal.rb-0.5.1 lib/reveal/templates/revealjs/lib/js/classList.js
reveal-ck-3.9.2 files/reveal.js/lib/js/classList.js
reveal-ck-3.9.1 files/reveal.js/lib/js/classList.js
reveal-ck-3.9.0 files/reveal.js/lib/js/classList.js
reveal-ck-3.8.1 files/reveal.js/lib/js/classList.js
reveal.rb-0.5.0 lib/reveal/templates/revealjs/lib/js/classList.js
jekyll-theme-slides-0.1.3 assets/reveal.js/lib/js/classList.js
jekyll-theme-slides-0.1.2 assets/reveal.js/lib/js/classList.js
jekyll-theme-newtype-0.1.4 assets/revealjs/lib/js/classList.js
jekyll-theme-newtype-0.1.3 assets/revealjs/lib/js/classList.js
jekyll-theme-newtype-0.1.2 assets/revealjs/lib/js/classList.js
jekyll-theme-newtype-0.1.1 assets/revealjs/lib/js/classList.js
jekyll-theme-newtype-0.1.0 assets/revealjs/lib/js/classList.js
reveal-ck-3.8.0 files/reveal.js/lib/js/classList.js
starterlog-theme-1.2.0 assets/modules/reveal.js/lib/js/classList.js
reveal-ck-3.7.0 files/reveal.js/lib/js/classList.js