mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
22 lines
447 B
JavaScript
22 lines
447 B
JavaScript
var logEvent = function(data) {
|
|
var e = document.getElementById('event-log');
|
|
var l = document.createElement('div');
|
|
l.innerHTML = 'EVENT: ' + data.type;
|
|
console.log(data.event);
|
|
e.appendChild(l);
|
|
}
|
|
window.FM.on('tap', function(e) {
|
|
console.log('GOT TAP', e);
|
|
logEvent({
|
|
type: 'tap',
|
|
event: e
|
|
});
|
|
});
|
|
window.FM.on('click', function(e) {
|
|
console.log('GOT CLICK', e);
|
|
logEvent({
|
|
type: 'click',
|
|
event: e
|
|
});
|
|
});
|