Remove old code
This commit is contained in:
parent
ea2e148395
commit
e8cbe46659
@ -3,7 +3,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
//===
|
//===
|
||||||
// VARIABLES
|
// VARIABLES
|
||||||
//===
|
//===
|
||||||
const EVENTS = ['is-click', 'is-scroll-up', 'is-scroll-down', 'is-hover', 'is-view', 'is-visible', 'is-not-visible'];
|
const EVENTS = ['is-click', 'is-scroll-up', 'is-scroll-down', 'is-hover', 'is-visible', 'is-not-visible'];
|
||||||
const FUNCTION_TREE = {
|
const FUNCTION_TREE = {
|
||||||
'class': ['add', 'remove', 'toggle']
|
'class': ['add', 'remove', 'toggle']
|
||||||
};
|
};
|
||||||
@ -255,7 +255,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
switch(params.functionChild) {
|
switch(params.functionChild) {
|
||||||
case 'add':
|
case 'add':
|
||||||
element.classList.add(params.value);
|
element.classList.add(params.value);
|
||||||
console.log('date')
|
|
||||||
break;
|
break;
|
||||||
case 'remove':
|
case 'remove':
|
||||||
element.classList.remove(params.value);
|
element.classList.remove(params.value);
|
||||||
|
Loading…
Reference in New Issue
Block a user