From eed682c71993f52dc86c37e590892ea21c5a0adc Mon Sep 17 00:00:00 2001 From: Adrian Victor Date: Sun, 8 Feb 2026 19:36:54 -0300 Subject: [PATCH] Default volume to 100% --- docs/posts/telnet-pt/index.html | 2 +- .../verificacao-de-desenvolvedor-no-android/index.html | 2 +- docs/pt/blog/index.html | 2 +- docs/pt/index.html | 2 +- docs/school/api-rodrigoribeiro/index.html | 2 +- docs/school/guia-ifc-novatos/index.html | 2 +- docs/static/scripts/main.js | 6 +++++- static/scripts/main.js | 6 +++++- 8 files changed, 16 insertions(+), 8 deletions(-) diff --git a/docs/posts/telnet-pt/index.html b/docs/posts/telnet-pt/index.html index 1a9b6ab..6a0d2b9 100644 --- a/docs/posts/telnet-pt/index.html +++ b/docs/posts/telnet-pt/index.html @@ -28,7 +28,7 @@ const headeri18n = { by: "por", - options: "Opções", + options: "Options", hideBackground: "Esconder imagem de fundo", back: "voltar" } diff --git a/docs/posts/verificacao-de-desenvolvedor-no-android/index.html b/docs/posts/verificacao-de-desenvolvedor-no-android/index.html index b7f732b..459d711 100644 --- a/docs/posts/verificacao-de-desenvolvedor-no-android/index.html +++ b/docs/posts/verificacao-de-desenvolvedor-no-android/index.html @@ -28,7 +28,7 @@ const headeri18n = { by: "por", - options: "Opções", + options: "Options", hideBackground: "Esconder imagem de fundo", back: "voltar" } diff --git a/docs/pt/blog/index.html b/docs/pt/blog/index.html index d3d052c..6b589fb 100644 --- a/docs/pt/blog/index.html +++ b/docs/pt/blog/index.html @@ -28,7 +28,7 @@ const headeri18n = { by: "por", - options: "Opções", + options: "Options", hideBackground: "Esconder imagem de fundo", back: "voltar" } diff --git a/docs/pt/index.html b/docs/pt/index.html index b0cacbe..9305a9a 100644 --- a/docs/pt/index.html +++ b/docs/pt/index.html @@ -28,7 +28,7 @@ const headeri18n = { by: "por", - options: "Opções", + options: "Options", hideBackground: "Esconder imagem de fundo", back: "voltar" } diff --git a/docs/school/api-rodrigoribeiro/index.html b/docs/school/api-rodrigoribeiro/index.html index 67d8f22..6bf74a1 100644 --- a/docs/school/api-rodrigoribeiro/index.html +++ b/docs/school/api-rodrigoribeiro/index.html @@ -28,7 +28,7 @@ const headeri18n = { by: "por", - options: "Opções", + options: "Options", hideBackground: "Esconder imagem de fundo", back: "voltar" } diff --git a/docs/school/guia-ifc-novatos/index.html b/docs/school/guia-ifc-novatos/index.html index c968ec8..8a9b38e 100644 --- a/docs/school/guia-ifc-novatos/index.html +++ b/docs/school/guia-ifc-novatos/index.html @@ -28,7 +28,7 @@ const headeri18n = { by: "por", - options: "Opções", + options: "Options", hideBackground: "Esconder imagem de fundo", back: "voltar" } diff --git a/docs/static/scripts/main.js b/docs/static/scripts/main.js index c04876d..c73a3dc 100644 --- a/docs/static/scripts/main.js +++ b/docs/static/scripts/main.js @@ -197,7 +197,11 @@ audioSelect.addEventListener('change', () => { // Set initial playback state and volume based on saved preferences if (savedTime) audio.currentTime = parseFloat(savedTime); -if (savedVolume) document.getElementById("volume").value = savedVolume * 100; +if (savedVolume) { + document.getElementById("volume").value = savedVolume * 100; +} else { + document.getElementById("volume").value = 100; +} if (wasPlaying) { play(); diff --git a/static/scripts/main.js b/static/scripts/main.js index c04876d..c73a3dc 100644 --- a/static/scripts/main.js +++ b/static/scripts/main.js @@ -197,7 +197,11 @@ audioSelect.addEventListener('change', () => { // Set initial playback state and volume based on saved preferences if (savedTime) audio.currentTime = parseFloat(savedTime); -if (savedVolume) document.getElementById("volume").value = savedVolume * 100; +if (savedVolume) { + document.getElementById("volume").value = savedVolume * 100; +} else { + document.getElementById("volume").value = 100; +} if (wasPlaying) { play();