Skip to content

Commit

Permalink
feat: guide to explain voice commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Igorcbraz committed Nov 27, 2024
1 parent 140467a commit 6d167f8
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/js/guide.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class Guide {
doneLabel: 'Finalizar',
}
}

loadSteps() {
this.#config.steps = [
{
Expand Down Expand Up @@ -43,15 +43,30 @@ export class Guide {
intro: 'Altere o tema do aplicativo com um clique.',
tooltipClass: 'custom-tooltip',
highlightClass: 'custom-highlight'
},
{
element: document.querySelector('#startVoice'),
title: 'Comandos de voz',
intro: `
<p>Clique no botão para ativar os comandos de voz. Você pode usar os seguintes comandos:</p>
<ul>
<li><strong>calcular</strong>: Calcular a conta.</li>
<li><strong>apagar</strong>: Apagar o último dígito.</li>
<li><strong>limpar</strong>: Limpar a expressão.</li>
</ul>
<p>Além de ditar a conta que deseja calcular, como "4 mais 4".</p>
`,
tooltipClass: 'custom-tooltip',
highlightClass: 'custom-highlight'
}
]
}

loadConfig () {
loadConfig() {
this.#intro.setOptions(this.#config)
}

start () {
start() {
this.#intro.start()
}
}

0 comments on commit 6d167f8

Please sign in to comment.