MCPcopy Create free account
hub / github.com/codrops/GridItemHoverEffect / constructor

Method constructor

js/card2.js:22–39  ·  view source on GitHub ↗
(DOM_el)

Source from the content-addressed store, hash-verified

20 };
21
22 constructor(DOM_el) {
23 this.DOM.el = DOM_el;
24 this.DOM.number = this.DOM.el.querySelector('.card__box-number');
25 this.DOM.tags = this.DOM.el.querySelector('.card__box-tags');
26 this.DOM.category = this.DOM.el.querySelector('.card__box-category');
27
28 if ( this.DOM.number ) {
29 this.DOM.number.dataset.splitting = '';
30 }
31 if ( this.DOM.category ) {
32 this.DOM.category.dataset.splitting = '';
33 }
34 Splitting();
35 if ( this.DOM.number )
36 this.DOM.numberChars = this.DOM.number.querySelectorAll('.char');
37 if ( this.DOM.category )
38 this.DOM.categoryChars = this.DOM.category.querySelectorAll('.char');
39 }
40
41}
42

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected