diff --git a/static/index.html b/static/index.html index 81df3aa..e9f1cc8 100644 --- a/static/index.html +++ b/static/index.html @@ -11,6 +11,8 @@ + + @@ -162,14 +164,14 @@ l .-.. - j .--- + w .-- p .--. - + j .--- diff --git a/static/vail.js b/static/vail.js index 21f8091..fce7d99 100644 --- a/static/vail.js +++ b/static/vail.js @@ -206,6 +206,10 @@ class Buzzer { let acWhen = this.acTime(when) this.ac.resume() + if (this.ac.state != "running") { + toast("Browser won't let me play sound yet. Try pressing a button first.") + return + } gain.setTargetAtTime(this.txGain, acWhen, 0.001) } @@ -502,9 +506,6 @@ class Vail { this.beginTx() } else { this.endTx() - if (this.buzzer.ac.state != "running") { - this.error("Browser won't let me play sound yet. Try pressing a button first.") - } } } } diff --git a/static/vail.png b/static/vail.png new file mode 100644 index 0000000..b6ff4b9 Binary files /dev/null and b/static/vail.png differ diff --git a/static/vail.svg b/static/vail.svg new file mode 100644 index 0000000..76ad4ef --- /dev/null +++ b/static/vail.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file