diff options
| -rw-r--r-- | env.js | 2 | ||||
| -rw-r--r-- | index.html | 5 | ||||
| -rw-r--r-- | js/vendor/StartAudioContext.js | 2 |
3 files changed, 4 insertions, 5 deletions
@@ -31,7 +31,7 @@ var environment = (function(){ } environment.request_audio_context = function(){ var element = $("<div>", {"id" : "MobileStart"}).appendTo("body") - var button = $("<div>").attr("id", "Button").text("Enter").appendTo(element) + var button = $("<div>").attr("id", "Button").html("Enter<br>(please unmute your phone)").appendTo(element) StartAudioContext.setContext(Tone.context) StartAudioContext.on(button) StartAudioContext.onStarted(function(){ @@ -10,7 +10,7 @@ html,body { font-size: 12px; font-weight: normal; background: black; color: whit circle { cursor: pointer } input[type=text] { width: 30px } #mobile_controls { display: none } -.mobile #mobile_controls { display: inline } +.mobile #mobile_controls { display: block; } #MobileStart { position: absolute; @@ -34,7 +34,8 @@ input[type=text] { width: 30px } width: 80px; height: 80px; text-align: center; - line-height: 80px; } + line-height: 80px; +} </style> </head> diff --git a/js/vendor/StartAudioContext.js b/js/vendor/StartAudioContext.js index 1823b04..0b2883f 100644 --- a/js/vendor/StartAudioContext.js +++ b/js/vendor/StartAudioContext.js @@ -78,7 +78,6 @@ StartAudioContext.onStarted = function(cb){ //if it's already started, invoke the callback if (StartAudioContext.isStarted()){ - console.log("is started") cb(); } else { StartAudioContext._onStarted.push(cb); @@ -148,7 +147,6 @@ * event has been triggered. */ function onTap(){ - //start the audio context with a silent oscillator if (StartAudioContext.context && !StartAudioContext.isStarted()){ var osc = StartAudioContext.context.createOscillator(); |
