Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Play the first radio of the list when click on the play button #1

Open
Polarhardboiled opened this issue Sep 14, 2018 · 2 comments
Open

Comments

@Polarhardboiled
Copy link

Hi,
Thanks for this amazing platform.
I would like to slightly modify the behavior when clicking on the play button.
Is it possible to play the first radio of the list when clicking on the play button instead of having the alert "select first a radio".
I found the line in main.js but my js skills are actually too poor to be able to amend properly the file.
Thanks for your support.

@libekonst
Copy link
Owner

Hey,
I'm glad you like it!
Thanks for your suggestion, I just pushed a commit that added that feature, among other improvements. Check it out 😃

On a friendly note; if you want to take a look at the code, see the src/ folder which contains all the source code. The code you'll find in main.js is just some munched JavaScript code that Webpack spit out so we can link it in our index.html file.
This technique is called Modular Programming, in which we split our code into multiple small files that are easy to handle and then use a module bundler, like Webpack, to bundle all our files into a single file (in our case, main.js) . Webpack will also make the file smaller, so it is easier for the browser to load, but this makes it unreadable for us so we read the files in the src/ instead.

@Polarhardboiled
Copy link
Author

Thanks a lot. It works perfectly. And now, I am trying to modify the style of audio controls.
And thanks also for your explanation of the Modular Programming.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants