Compare commits
No commits in common. "84293c2e797a976bcc4772efbd498f353d366e9b" and "77be44f66ce24dbce932db83a218b4db7ce8f0eb" have entirely different histories.
84293c2e79
...
77be44f66c
8 changed files with 3 additions and 43 deletions
|
|
@ -69,7 +69,6 @@ module.exports = {
|
||||||
by: "by",
|
by: "by",
|
||||||
back: "back",
|
back: "back",
|
||||||
hideBackground: "Hide background",
|
hideBackground: "Hide background",
|
||||||
disableSoundEffects: "Disable sound effects",
|
|
||||||
options: "Options",
|
options: "Options",
|
||||||
alsoAvailableAsVideo: "Also available as video",
|
alsoAvailableAsVideo: "Also available as video",
|
||||||
websiteDescription: "Personal website/blog of Adrian Victor.",
|
websiteDescription: "Personal website/blog of Adrian Victor.",
|
||||||
|
|
@ -125,7 +124,6 @@ module.exports = {
|
||||||
by: "por",
|
by: "por",
|
||||||
back: "voltar",
|
back: "voltar",
|
||||||
hideBackground: "Esconder imagem de fundo",
|
hideBackground: "Esconder imagem de fundo",
|
||||||
disableSoundEffects: "Desabilitar efeitos sonoros",
|
|
||||||
options: "Opções",
|
options: "Opções",
|
||||||
alsoAvailableAsVideo: "Também disponível em vídeo",
|
alsoAvailableAsVideo: "Também disponível em vídeo",
|
||||||
websiteDescription: "Website/blog pessoal de Adrian Victor.",
|
websiteDescription: "Website/blog pessoal de Adrian Victor.",
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@
|
||||||
<script type="module" src="{{ '/static/scripts/music.js' | url }}" defer></script>
|
<script type="module" src="{{ '/static/scripts/music.js' | url }}" defer></script>
|
||||||
<script type="module" src="{{ '/static/scripts/88x31.js' | url }}" defer></script>
|
<script type="module" src="{{ '/static/scripts/88x31.js' | url }}" defer></script>
|
||||||
<script type="module" src="{{ '/static/scripts/tips.js' | url }}" defer></script>
|
<script type="module" src="{{ '/static/scripts/tips.js' | url }}" defer></script>
|
||||||
<script type="module" src="{{ '/static/scripts/click.js' | url }}" defer></script>
|
|
||||||
|
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ '/static/apple-touch-icon.png' | url }}">
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ '/static/apple-touch-icon.png' | url }}">
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ '/static/favicon-32x32.png' | url }}">
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ '/static/favicon-32x32.png' | url }}">
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@
|
||||||
permissionIssue: "{{ i18n[langKey].permissionIssue | safe }}",
|
permissionIssue: "{{ i18n[langKey].permissionIssue | safe }}",
|
||||||
permissionIssueNotificationContent: "{{ i18n[langKey].permissionIssueNotificationContent | safe }}",
|
permissionIssueNotificationContent: "{{ i18n[langKey].permissionIssueNotificationContent | safe }}",
|
||||||
notificationDefaultHint: "{{ i18n[langKey].notificationDefaultHint | safe }}",
|
notificationDefaultHint: "{{ i18n[langKey].notificationDefaultHint | safe }}",
|
||||||
disableSoundEffects: "{{ i18n[langKey].disableSoundEffects | safe }}"
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -256,9 +256,9 @@ li.inlineList {
|
||||||
#defaultSquare {
|
#defaultSquare {
|
||||||
transition: 0.4s;
|
transition: 0.4s;
|
||||||
border: medium solid white;
|
border: medium solid white;
|
||||||
height: 3vw;
|
height: 7vh;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 6vw;
|
width: 10vh;
|
||||||
opacity: 0.4;
|
opacity: 0.4;
|
||||||
padding: 0.4em;
|
padding: 0.4em;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
@ -279,7 +279,7 @@ li.inlineList {
|
||||||
.headerSquare.selected,
|
.headerSquare.selected,
|
||||||
#defaultSquare.selected {
|
#defaultSquare.selected {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
height: 6vw;
|
height: 10vh;
|
||||||
box-shadow: 2px 7px 5px rgba(0, 0, 0, 0.4), 0px -4px 10px rgba(0, 0, 0, 0.4);
|
box-shadow: 2px 7px 5px rgba(0, 0, 0, 0.4), 0px -4px 10px rgba(0, 0, 0, 0.4);
|
||||||
background-color: rgba(0, 0, 0, 0.3);
|
background-color: rgba(0, 0, 0, 0.3);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
/*
|
|
||||||
This script plays a sound when user clicks on the page.
|
|
||||||
*/
|
|
||||||
|
|
||||||
const click = new Audio(`${rootPrefix}static/audio/click.ogg`);
|
|
||||||
const hover = new Audio(`${rootPrefix}static/audio/hover.ogg`);
|
|
||||||
click.preload = "auto";
|
|
||||||
hover.preload = "auto";
|
|
||||||
click.volume = 0.5;
|
|
||||||
hover.volume = 0.5;
|
|
||||||
|
|
||||||
|
|
||||||
document.body.addEventListener("click", () => {
|
|
||||||
if (localStorage.getItem("disablesfx") == 'true') return;
|
|
||||||
|
|
||||||
click.currentTime = 0;
|
|
||||||
click.play().catch(() => {});
|
|
||||||
});
|
|
||||||
|
|
||||||
document.querySelectorAll('a').forEach(link => {
|
|
||||||
link.addEventListener("mouseenter", () => {
|
|
||||||
if (localStorage.getItem("disablesfx") == 'true') return;
|
|
||||||
hover.currentTime = 0;
|
|
||||||
hover.play().catch(() => {});
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
@ -49,10 +49,6 @@ optionsAside.classList.add("metromenu");
|
||||||
<p>${headeri18n.hideBackground}</p>
|
<p>${headeri18n.hideBackground}</p>
|
||||||
<input id="background" type="checkbox"></input>
|
<input id="background" type="checkbox"></input>
|
||||||
</div>
|
</div>
|
||||||
<div class="checkbox">
|
|
||||||
<p>${headeri18n.disableSoundEffects}</p>
|
|
||||||
<input id="soundEffects" type="checkbox"></input>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
optionsAside.appendChild(content);
|
optionsAside.appendChild(content);
|
||||||
|
|
@ -80,12 +76,6 @@ function toggleBG() {
|
||||||
localStorage.setItem("bgHidden", bg.classList.contains("invisible"))
|
localStorage.setItem("bgHidden", bg.classList.contains("invisible"))
|
||||||
}
|
}
|
||||||
|
|
||||||
const disableSFX = document.querySelector("input#soundEffects");
|
|
||||||
if (localStorage.getItem("disablesfx") === "true") disableSFX.checked = true;
|
|
||||||
disableSFX.addEventListener("click", () => {
|
|
||||||
localStorage.setItem("disablesfx", disableSFX.checked)
|
|
||||||
})
|
|
||||||
|
|
||||||
const songsDrawer = document.querySelector("#songDrawer");
|
const songsDrawer = document.querySelector("#songDrawer");
|
||||||
const drawerSongs = [];
|
const drawerSongs = [];
|
||||||
const playlist = document.querySelector("#playlist");
|
const playlist = document.querySelector("#playlist");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue