MahdiF / loud-links

:sound: A simple tiny Javascript library to add interaction sounds to your website.
https://mahdif.github.io/loud-links/
MIT License
725 stars 59 forks source link

Add variable to allowed to change where the sounds are located #8

Closed csalom closed 8 years ago

csalom commented 8 years ago

I was using the library in a django project and calling it in the base template. I found out that the src attributes of the audio/source elements where taking a piece of the url and they've never find out the sounds. Then, I thought that it could be a good idea to allow users to choose where to locate their sounds. So, I added a variable called "sounds_host", which has to be set before lauching the script by filling up its content with the url/path of the sounds.

MahdiF commented 8 years ago

Thanks @csalom . @shshaw did that already, check the latest files and the README file: https://github.com/MahdiF/loud-links#step-3

csalom commented 8 years ago

I didn't notice it before. I'm happy to hear about it. Thank you for your attention