Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
g200kg committed Jul 23, 2020
1 parent 2382f62 commit cdb24d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions docs/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,14 @@ Each type is specified by the `type` attribute. In the case of a `radio` button,
<webaudio-switch id="sw3" type="radio" group="radio1"></webaudio-switch>
<webaudio-switch id="sw4" type="radio" group="radio1" value="1"></webaudio-switch>
<webaudio-switch id="sw5" type="radio" group="radio1"></webaudio-switch> radio<br/>

<script>
elms=document.getElementsByTagName("webaudio-switch");
for(var i=0;i<elms.length;++i){
elms[i].addEventListener("change",(event)=>{
for(var i = 0; i < elms.length; ++i){
elms[i].addEventListener("change", (event)=>{
console.log("change", event.target.id, event.target.value)
});
elms[i].addEventListener("click",(event)=>{
elms[i].addEventListener("click", (event)=>{
console.log("click", event.target.id, event.target.value)
});
}
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ Advanced Usage and Application Notes :

# Overview

**webaudio-controls** is a Javascript library for displaying the GUI parts required to Web Music applications.
**webaudio-controls** is a Javascript library to display the GUI components used in Web Music Applications.
webaudio-controls consists of knobs, sliders, switches, parameter displays and keyboards.
By loading webaudio-controls.js to your page, custom tags for component display will be added using WebComponents.
By loading `webaudio-controls.js` to your page, custom tags for component display will be added using WebComponents.
You can configure the GUI screen just by writing custom tags in HTML.

**webaudio-controls** is consist of following components.
Expand Down

0 comments on commit cdb24d9

Please sign in to comment.