diff --git a/README.md b/README.md index e93a84a..efe462b 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,6 @@ On iOS a few things behave differently, none of them fatal: you lose a strip of the screen to the toolbar, and iOS clears the saved settings of a site you haven't visited for a week. The installed app keeps its own storage and doesn't get pruned that way. -- **There's no vibration** — iOS gives web pages no haptics at all, so the - turn-change buzz is silent there. The sounds still play. - **The ringer switch doesn't mute the clock.** The page claims a playback audio session so you can hear the delay tick with the phone silenced, which in exchange pauses any music you had going. If you'd rather keep the music, diff --git a/public_html/index.html b/public_html/index.html index fcb1381..5e510b3 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -673,7 +673,6 @@ tone(659.25, 0.16, 0.20, 0.24, "triangle", false); tone(440, 0.32, 0.55, 0.26, "triangle", true); } - function buzz(ms){ try{ if(navigator.vibrate) navigator.vibrate(ms); }catch(e){} } /* ============ helpers ============ */ function elapsed(){ @@ -791,7 +790,6 @@ paintPlay(); render(); sndFlag(); - buzz([90, 70, 90]); saveGame(); } @@ -808,7 +806,7 @@ st.ticked = false; st.phase = RUN; paintPlay(); // the bar has to show what the clock is doing - sndSwap(); buzz(14); + sndSwap(); saveGame(); return; } @@ -822,7 +820,7 @@ st.active = 1 - side; st.turnAt = now; st.ticked = false; - sndSwap(); buzz(14); + sndSwap(); saveGame(); } @@ -942,7 +940,7 @@ btnReset.setAttribute("aria-label", "Reset clock"); } function armReset(){ - if(armT){ disarm(); resetAll(); buzz(20); return; } // second tap inside the window + if(armT){ disarm(); resetAll(); return; } // second tap inside the window btnReset.classList.remove("armed"); void btnReset.offsetWidth; // restart the drain animation btnReset.classList.add("armed"); diff --git a/public_html/sw.js b/public_html/sw.js index fda7104..822eeff 100644 --- a/public_html/sw.js +++ b/public_html/sw.js @@ -1,5 +1,5 @@ /* Cache-first: once installed the clock never touches the network again. */ -const CACHE = "bgclock-v14"; +const CACHE = "bgclock-v15"; const FILES = [ "./", "./index.html",