A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
39
async init() {40
window.app = this;41
state.account = await http`get::/api/account`();42
// document.addEventListener('keyup', this.onKey);42
document.addEventListener('scroll', this.onScroll);43
document.addEventListener('wheel', this.onScroll);44
},46
// onKey(event) {47
// const {code, ctrlKey, shiftKey, altKey} = event;48
// if(!ctrlKey && !shiftKey && !altKey) {49
// if(code === 'KeyS') state.tab = 'search';50
// if(code === 'KeyF') state.tab = 'favorites';51
// if(code === 'KeyA') state.tab = 'account';52
// }53
// },45
onScroll() {46
if(window.innerHeight + window.pageYOffset >= document.body.offsetHeight - 200) {47
this.$refs.search.doSearchMore();