PageSourceSearch

https://citizensclimatelobby.org/wp-content/cache/min/1/wp-content…/js/lib/jquery.classie.js?ver=1784819369

js citizensclimatelobby.org collected 2026-10-01 09:05:33 UTC 1,208 bytes, 13 lines download raw bytes

1/*!
2 * classie - class helper functions
3 * from bonzo https://github.com/ded/bonzo
4 * 
5 * classie.has( elem, 'my-class' ) -> true/false
6 * classie.add( elem, 'my-new-class' )
7 * classie.remove( elem, 'my-unwanted-class' )
8 * classie.toggle( elem, 'my-class' )
9 */
10(function(window){'use strict';function classReg(className){return new RegExp("(^|\\s+)"+className+"(\\s+|$)")}
11var hasClass,addClass,removeClass;if('classList' in document.documentElement){hasClass=function(elem,c){return elem.classList.contains(c)};addClass=function(elem,c){elem.classList.add(c)};removeClass=function(elem,c){elem.classList.remove(c)}}else{hasClass=function(elem,c){return classReg(c).test(elem.className)};addClass=function(elem,c){if(!hasClass(elem,c)){elem.className=elem.className+' '+c}};removeClass=function(elem,c){elem.className=elem.className.replace(classReg(c),' ')}}
12function toggleClass(elem,c){var fn=hasClass(elem,c)?removeClass:addClass;fn(elem,c)}
13var classie={hasClass:hasClass,addClass:addClass,removeClass:removeClass,toggleClass:toggleClass,has:hasClass,add:addClass,remove:removeClass,toggle:toggleClass};if(typeof define==='function'&&define.amd){define(classie)}else{window.classie=classie}})(window)

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.