more modern js, more keyboard-controls #5

Merged
zotan merged 30 commits from ctucx/webmusic:master into master 2021-03-21 18:04:15 +01:00

30 Commits

Author SHA1 Message Date
Leah ab04b91bff
webmusic.js: prevent default action for keydown events 2021-03-13 02:16:35 +01:00
Leah 7d750777ec
webmusic.js: check for playable content 2021-03-08 14:06:06 +01:00
Leah bb01d955af
webmusic.js: hide selector when track selected 2021-03-08 13:35:35 +01:00
Isabelle 6a8708bcf8 webmusic.js: ignore keyboard controls if ctrl or alt is pressed 2021-03-07 17:53:51 +01:00
Isabelle acac39a90c webmusic.js: seeking in track with number keys 2021-03-07 17:53:46 +01:00
Leah d9bed3ac47 webmusic.js: use single quotes everywhere 2021-03-07 17:12:07 +01:00
Leah db8b55cadc webmusic.js: use arrow functions everywhere 2021-03-07 17:12:01 +01:00
Leah b59a5633f0 webmusic.js: use const for audioplayer and variable element in function playSong 2021-03-07 17:11:53 +01:00
Leah faeb30325f webmusic.js: use strict mode 2021-03-07 16:58:09 +01:00
Leah 0d789a5e11 webmusic.js: add classes needed for previous 2 commits 2021-03-07 16:48:09 +01:00
Leah e5ea274135 webmusic.js: use classes for buttons 2021-03-07 16:47:32 +01:00
Leah 6d0e9c999d webmusic.js: navigating through files/folders with arrowkeys/enter 2021-03-07 16:47:24 +01:00
Leah 155e7c1bbb webmusic.js: removed debug prints, better player handling 2021-03-07 16:10:53 +01:00
Leah 4b6e69d4c1 webmusic.js: bind to audioplayer-events just once 2021-03-07 15:48:23 +01:00
Leah cef0e6b625 webmusic.js: renamed gstate to playerState 2021-03-07 15:23:39 +01:00
Leah edd16ecb24 webmusic.js: renamed setState to setPlayerState and updateState to updatePlayerState 2021-03-07 15:17:29 +01:00
Leah b76f8c4af3 webmusic.css: replaced spaces with tabs 2021-03-07 15:08:00 +01:00
Leah 05ff2feabf needed changes on template and css to make previous commit work 2021-03-07 15:06:56 +01:00
Leah 94ed0d208d webmusic.js: refactor continuous- and repeat-button handling 2021-03-07 15:03:03 +01:00
Leah 1cf5c13e2b webmusic.js: general code improvements 2021-03-07 14:11:44 +01:00
Leah 6a9dd5b051 webmusic.js: rename variable 'sound' to 'audioPlayer' 2021-03-07 13:42:31 +01:00
Leah 599b1ef413 remove howler.core.js 2021-03-07 13:42:15 +01:00
Leah 7a20b78450 webmusic.js: replace howler with the native Audio() element 2021-03-07 13:39:05 +01:00
Leah 5b9d62eac2 webmusic.js: set onclick-event on state element just once 2021-03-07 01:25:48 +01:00
Leah 4db20d159a webmusic.js: skip folders 2021-03-07 01:14:16 +01:00
Leah 39f8df6ae9 needed changes on template to make previous commit work 2021-03-06 23:40:32 +01:00
Leah 9f90eed214 webmusic.js: navigate through files more smartly 2021-03-06 23:40:22 +01:00
Leah 822996211f webmusic.js: code improovements 2021-03-06 23:40:15 +01:00
Leah 81b67db9a1 webmusic.js: replace spaces with tabs 2021-03-06 23:40:00 +01:00
Leah e19f06a9d0 webmusic.js: replace ifs with switch 2021-03-06 23:39:55 +01:00