This commit is contained in:
Michael Czechowski
2024-08-28 00:15:22 +02:00
parent 953f716eac
commit 10dcc8e7fd
8 changed files with 7038 additions and 13042 deletions

View File

@@ -4,33 +4,9 @@ export default () => {
sectionList.forEach(section => {
section.addEventListener('click', (e) => {
console.log('click', e.target);
e.srcElement
});
section.addEventListener('touchstart', (e) => {
console.log('touchstart', e.target);
});
});
}
// export class Events {
// private sectionList: NodeListOf<HTMLElement>;
// constructor () {
// this.sectionList = document.querySelectorAll('section');
// }
// public listen() {
// this.sectionList.forEach(section => {
// section.addEventListener('click', (e) => {
// console.log('click', e.target);
// });
// section.addEventListener('touchstart', (e) => {
// console.log('touchstart', e.target);
// });
// });
// }
// }
};

View File

@@ -1,6 +1,4 @@
import events from './events';
import './styles/index.scss';
events();
// console.log(events);
events();