DrSensor / nusa

incremental runtime that bring both simplicity and power into webdev (buildless, cross-language, data-driven)
MIT License
4 stars 0 forks source link

Demo for SFX sounds #46

Open DrSensor opened 1 year ago

DrSensor commented 1 year ago
<render-scope on:hover="sfx.cring">
  <link name=sfx href=zzfx-soundfonts.js>
  <link href=counter.js>

  <button :: on:click="sfx.blip increment" text:="count"/>
</render-scope>

Also make the landing page use SFX sounds too. This is to experiment on what it takes to make page with game like experience be accessible (see if it conflict with TTS software).