fuzzyworld

hawk / files / public / js / controls.js

controls.js

Commits that changed this file, newest first · file

2023-10-19bd4c370Use the largest available album images, not the smallest.Pavel Safronov
2023-10-19660845fAdded a list of pre-configured times, each of which is a link that sets the search time accordingly.Pavel Safronov
2023-10-192c1835aAdded a drop-down for the target player. Added link styles to match the existing black/white theme, except the hover color is now "Spotify green".Pavel Safronov
2023-10-170c3c57bAdded links for song/album/artist, and report errors during playback. (The errors reporting is a temporary hack: if there isn't an active device, trying to play the track will always fail. What's needed is logic to find a device to use, and if that fails, present device options to the user and make them pick one.)Pavel Safronov
2023-10-171e82c57Consolidated templating code, removed some old code, made "no song currently playing" into a template as well. (Templates are nice! So much easier than writing HTML in JS.)Pavel Safronov
2023-10-17c161059Reworked styles a bit by moving most of the song styles into song.css Found songs now have the same look as the currently-playing song. Found tracks now include a bit of album info in them, so the same info is available for currently playing songs and for searched songs.Pavel Safronov
2023-10-17a95a53dIntroduce controls.js - this file has the methods that can be called from the page, for example the callbacks from various UI elements, like search or play/pause the current song.Pavel Safronov