Web Component: j-Sounds
j-Sounds
This component contains some predefined sounds like beep, fail, success, etc... Path contains a volume control in percentage, 0 disables playing.
- jComponent
v19|v20
Configuration:
url{String}URL address to sound library (default:https://cdn.componentator.com/sounds/)volume{Number}(default:50)
Good to know:
path can contain {Number}, which will control volume or {Boolean} which will enable or disable sounds.
Methods:
component.play(sound)supported sounds:alertmessagebadgesnotificationsbeepconfirmdonedrumfailsuccess
component.success()component.fail()component.alert(),component.error()component.warning()component.notify()component.badge()component.confirm()component.beep()component.drum()
Author
- Peter Širka petersirka@gmail.com
- License
Created
11. march 2020
Updated
31. january 2023
jComponent library
19 | 20
Version
v1
License
https://www.totaljs.com/license/
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com

