WIP
This commit is contained in:
@@ -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);
|
||||
// });
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
};
|
||||
@@ -1,6 +1,4 @@
|
||||
import events from './events';
|
||||
import './styles/index.scss';
|
||||
|
||||
|
||||
events();
|
||||
// console.log(events);
|
||||
events();
|
||||
Reference in New Issue
Block a user