mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import {App} from 'ionic-angular';
|
|
|
|
|
|
@App({
|
|
templateUrl: 'main.html',
|
|
config: {
|
|
//scrollAssist: true
|
|
}
|
|
})
|
|
class E2EApp {
|
|
reload() {
|
|
window.location.reload();
|
|
}
|
|
}
|
|
|
|
document.addEventListener('click', function(ev) {
|
|
console.log(`CLICK, ${ev.target.localName}.${ev.target.className}, time: ${Date.now()}`);
|
|
});
|
|
|
|
document.addEventListener('touchstart', function(ev) {
|
|
console.log(`TOUCH START, ${ev.target.localName}.${ev.target.className}, time: ${Date.now()}`);
|
|
});
|
|
|
|
document.addEventListener('touchend', function(ev) {
|
|
console.log(`TOUCH END, ${ev.target.localName}.${ev.target.className}, time: ${Date.now()}`);
|
|
});
|
|
|
|
document.addEventListener('focusin', function(ev) {console.log(`CLICK, ${ev.target.localName}.${ev.target.className}, time: ${Date.now()}`);
|
|
console.log(`FOCUS IN, ${ev.target.localName}.${ev.target.className}, time: ${Date.now()}`);
|
|
});
|
|
|
|
document.addEventListener('focusout', function(ev) {console.log(`CLICK, ${ev.target.localName}.${ev.target.className}, time: ${Date.now()}`);
|
|
console.log(`FOCUS OUT, ${ev.target.localName}.${ev.target.className}, time: ${Date.now()}`);
|
|
});
|