[grok] Mobile touch controls for navigation (#96) #402

Closed
grok wants to merge 101 commits from grok/issue-96 into main
2 changed files with 7 additions and 0 deletions
Showing only changes of commit 29ae0296d4 - Show all commits

3
app.js
View File

@@ -2789,9 +2789,11 @@ document.getElementById('podcast-toggle').addEventListener('click', () => {
utterance.rate = 0.9;
utterance.pitch = 0.9;
btn.textContent = '⏹';
btn.classList.add('active');
speechSynthesis.speak(utterance);
utterance.onend = () => {
btn.textContent = '🎧';
btn.classList.remove('active');
};
})
.catch(err => {
@@ -2802,6 +2804,7 @@ document.getElementById('podcast-toggle').addEventListener('click', () => {
} else {
speechSynthesis.cancel();
btn.textContent = '🎧';
btn.classList.remove('active');
}
});

View File

@@ -70,6 +70,10 @@ canvas {
cursor: pointer;
}
#podcast-toggle.active {
background-color: #0066cc;
}
#podcast-toggle:hover {
background-color: var(--color-primary);
}