MCPcopy Create free account
hub / github.com/CoderOpen/waimai / f

Function f

public/front/static/js/plugins.js:11–11  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

9 * classie.toggle( elem, 'my-class' )
10 */
11!function(j){function f(a){return new RegExp("(^|\\s+)"+a+"(\\s+|$)")}function h(i,a){var c=b(i,a)?d:k;c(i,a)}var b,k,d;"classList" in document.documentElement?(b=function(c,a){return c.classList.contains(a)},k=function(c,a){c.classList.add(a)},d=function(c,a){c.classList.remove(a)}):(b=function(c,a){return f(a).test(c.className)},k=function(c,a){b(c,a)||(c.className=c.className+" "+a)},d=function(c,a){c.className=c.className.replace(f(a)," ")});var g={hasClass:b,addClass:k,removeClass:d,toggleClass:h,has:b,add:k,remove:d,toggle:h};"function"==typeof define&&define.amd?define(g):j.classie=g}(window);
12/*
13* FitVids 1.1
14*

Callers 2

plugins.jsFile · 0.70
qFunction · 0.70

Calls 1

qFunction · 0.70

Tested by

no test coverage detected