Change song to my version of Velkommen.

This commit is contained in:
天クマ 2026-02-07 20:51:09 -03:00
commit 14a554639d
17 changed files with 16 additions and 12 deletions

View file

@ -4,7 +4,7 @@
<a id="headerSubtitle"><i>{{ subtitle or "Fanasy is not a crime, find your castle in the sky." }}</i></a> <a id="headerSubtitle"><i>{{ subtitle or "Fanasy is not a crime, find your castle in the sky." }}</i></a>
</div> </div>
<div id="linksHelper"> <div id="linksHelper">
<div id="soundDiv" data-title="Stan LePard - Velkommen" data-source="welcome.mp3"></div> <div id="soundDiv" data-title="tenkuma - Velkommen" data-source="Velkommen.mp3"></div>
<ul id="headerLinks"> <ul id="headerLinks">
<a href="/{{ langKey }}/">{{ i18n[langKey].home }}</a> <a href="/{{ langKey }}/">{{ i18n[langKey].home }}</a>
<a href="/{{ langKey }}/blog/">blog</a> <a href="/{{ langKey }}/blog/">blog</a>

View file

@ -26,7 +26,7 @@
<a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a> <a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a>
</div> </div>
<div id="linksHelper"> <div id="linksHelper">
<div id="soundDiv" data-title="Stan LePard - Velkommen" data-source="welcome.mp3"></div> <div id="soundDiv" data-title="tenkuma - Velkommen" data-source="Velkommen.mp3"></div>
<ul id="headerLinks"> <ul id="headerLinks">
<a href="/en/">home</a> <a href="/en/">home</a>
<a href="/en/blog/">blog</a> <a href="/en/blog/">blog</a>

View file

@ -26,7 +26,7 @@
<a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a> <a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a>
</div> </div>
<div id="linksHelper"> <div id="linksHelper">
<div id="soundDiv" data-title="Stan LePard - Velkommen" data-source="welcome.mp3"></div> <div id="soundDiv" data-title="tenkuma - Velkommen" data-source="Velkommen.mp3"></div>
<ul id="headerLinks"> <ul id="headerLinks">
<a href="/en/">home</a> <a href="/en/">home</a>
<a href="/en/blog/">blog</a> <a href="/en/blog/">blog</a>

View file

@ -26,7 +26,7 @@
<a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a> <a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a>
</div> </div>
<div id="linksHelper"> <div id="linksHelper">
<div id="soundDiv" data-title="Stan LePard - Velkommen" data-source="welcome.mp3"></div> <div id="soundDiv" data-title="tenkuma - Velkommen" data-source="Velkommen.mp3"></div>
<ul id="headerLinks"> <ul id="headerLinks">
<a href="/en/">home</a> <a href="/en/">home</a>
<a href="/en/blog/">blog</a> <a href="/en/blog/">blog</a>

View file

@ -26,7 +26,7 @@
<a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a> <a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a>
</div> </div>
<div id="linksHelper"> <div id="linksHelper">
<div id="soundDiv" data-title="Stan LePard - Velkommen" data-source="welcome.mp3"></div> <div id="soundDiv" data-title="tenkuma - Velkommen" data-source="Velkommen.mp3"></div>
<ul id="headerLinks"> <ul id="headerLinks">
<a href="/en/">home</a> <a href="/en/">home</a>
<a href="/en/blog/">blog</a> <a href="/en/blog/">blog</a>

View file

@ -26,7 +26,7 @@
<a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a> <a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a>
</div> </div>
<div id="linksHelper"> <div id="linksHelper">
<div id="soundDiv" data-title="Stan LePard - Velkommen" data-source="welcome.mp3"></div> <div id="soundDiv" data-title="tenkuma - Velkommen" data-source="Velkommen.mp3"></div>
<ul id="headerLinks"> <ul id="headerLinks">
<a href="/en/">home</a> <a href="/en/">home</a>
<a href="/en/blog/">blog</a> <a href="/en/blog/">blog</a>

View file

@ -26,7 +26,7 @@
<a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a> <a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a>
</div> </div>
<div id="linksHelper"> <div id="linksHelper">
<div id="soundDiv" data-title="Stan LePard - Velkommen" data-source="welcome.mp3"></div> <div id="soundDiv" data-title="tenkuma - Velkommen" data-source="Velkommen.mp3"></div>
<ul id="headerLinks"> <ul id="headerLinks">
<a href="/pt/">início</a> <a href="/pt/">início</a>
<a href="/pt/blog/">blog</a> <a href="/pt/blog/">blog</a>

View file

@ -26,7 +26,7 @@
<a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a> <a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a>
</div> </div>
<div id="linksHelper"> <div id="linksHelper">
<div id="soundDiv" data-title="Stan LePard - Velkommen" data-source="welcome.mp3"></div> <div id="soundDiv" data-title="tenkuma - Velkommen" data-source="Velkommen.mp3"></div>
<ul id="headerLinks"> <ul id="headerLinks">
<a href="/pt/">início</a> <a href="/pt/">início</a>
<a href="/pt/blog/">blog</a> <a href="/pt/blog/">blog</a>

View file

@ -26,7 +26,7 @@
<a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a> <a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a>
</div> </div>
<div id="linksHelper"> <div id="linksHelper">
<div id="soundDiv" data-title="Stan LePard - Velkommen" data-source="welcome.mp3"></div> <div id="soundDiv" data-title="tenkuma - Velkommen" data-source="Velkommen.mp3"></div>
<ul id="headerLinks"> <ul id="headerLinks">
<a href="/pt/">início</a> <a href="/pt/">início</a>
<a href="/pt/blog/">blog</a> <a href="/pt/blog/">blog</a>

View file

@ -26,7 +26,7 @@
<a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a> <a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a>
</div> </div>
<div id="linksHelper"> <div id="linksHelper">
<div id="soundDiv" data-title="Stan LePard - Velkommen" data-source="welcome.mp3"></div> <div id="soundDiv" data-title="tenkuma - Velkommen" data-source="Velkommen.mp3"></div>
<ul id="headerLinks"> <ul id="headerLinks">
<a href="/pt/">início</a> <a href="/pt/">início</a>
<a href="/pt/blog/">blog</a> <a href="/pt/blog/">blog</a>

View file

@ -26,7 +26,7 @@
<a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a> <a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a>
</div> </div>
<div id="linksHelper"> <div id="linksHelper">
<div id="soundDiv" data-title="Stan LePard - Velkommen" data-source="welcome.mp3"></div> <div id="soundDiv" data-title="tenkuma - Velkommen" data-source="Velkommen.mp3"></div>
<ul id="headerLinks"> <ul id="headerLinks">
<a href="/pt/">início</a> <a href="/pt/">início</a>
<a href="/pt/blog/">blog</a> <a href="/pt/blog/">blog</a>

View file

@ -26,7 +26,7 @@
<a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a> <a id="headerSubtitle"><i>Fanasy is not a crime, find your castle in the sky.</i></a>
</div> </div>
<div id="linksHelper"> <div id="linksHelper">
<div id="soundDiv" data-title="Stan LePard - Velkommen" data-source="welcome.mp3"></div> <div id="soundDiv" data-title="tenkuma - Velkommen" data-source="Velkommen.mp3"></div>
<ul id="headerLinks"> <ul id="headerLinks">
<a href="/pt/">início</a> <a href="/pt/">início</a>
<a href="/pt/blog/">blog</a> <a href="/pt/blog/">blog</a>

BIN
docs/static/Velkommen.mp3 vendored Normal file

Binary file not shown.

View file

@ -8,6 +8,7 @@ const savedTime = localStorage.getItem("audioTime");
const wasPlaying = localStorage.getItem("audioPlaying") === 'true' const wasPlaying = localStorage.getItem("audioPlaying") === 'true'
if (savedTime) audio.currentTime = parseFloat(savedTime); if (savedTime) audio.currentTime = parseFloat(savedTime);
if (wasPlaying) { if (wasPlaying) {
play(); play();
} else { } else {
@ -15,6 +16,7 @@ if (wasPlaying) {
} }
function play() { function play() {
audio.volume = 0.8;
audio.play(); audio.play();
localStorage.setItem("audioPlaying", "true") localStorage.setItem("audioPlaying", "true")
toggleIMG.src = "/static/images/sound-on.png" toggleIMG.src = "/static/images/sound-on.png"

BIN
static/Velkommen.mp3 Normal file

Binary file not shown.

View file

@ -8,6 +8,7 @@ const savedTime = localStorage.getItem("audioTime");
const wasPlaying = localStorage.getItem("audioPlaying") === 'true' const wasPlaying = localStorage.getItem("audioPlaying") === 'true'
if (savedTime) audio.currentTime = parseFloat(savedTime); if (savedTime) audio.currentTime = parseFloat(savedTime);
if (wasPlaying) { if (wasPlaying) {
play(); play();
} else { } else {
@ -15,6 +16,7 @@ if (wasPlaying) {
} }
function play() { function play() {
audio.volume = 0.8;
audio.play(); audio.play();
localStorage.setItem("audioPlaying", "true") localStorage.setItem("audioPlaying", "true")
toggleIMG.src = "/static/images/sound-on.png" toggleIMG.src = "/static/images/sound-on.png"

Binary file not shown.