I'm trying to make a simple volume controller with a slider and thought this would work but it doesn't! Can anyone help me understand this and show me what I'm doing wrong. Thanks
$w.onReady(function () { $w("#slider1").onChange( (event) => { let newValue = event.target.value; // "new value" $w("#audioPlayer1").volume = newValue; });
Thanks Ninja I see it was the });}); double I missed.
This CODE here is OK and everything works like a charm! (TESTED)
$w.onReady(function(){ $w("#slider1").onChange( (event) => { let newValue = event.target.value; // "new value" $w("#audioPlayer1").volume = newValue; }); });
https://www.media-junkie.com/blank-6 (Link will loose its functionality in few days!)