Fix js issues on loading due to turbo config

This commit is contained in:
Alex 2026-06-09 13:13:23 -07:00
parent a48c25718f
commit 80e1f89c7e
4 changed files with 15 additions and 8 deletions

View file

@ -119,6 +119,9 @@ const photosUploadInit = () => {
};
}
document.addEventListener('turbo:load', (event) => {
init();
});

View file

@ -57,6 +57,9 @@ const scrollTo = () => {
});
}
document.addEventListener('turbo:load', (event) => {
mobileMenu();
jobInfoToggle();
scrollTo();
});

View file

@ -47,6 +47,7 @@ const album = () => {
}
document.addEventListener('turbo:load', (event) => {
mobileMenu();
album();
});

View file

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22></text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>AD</text></svg>">
{% block stylesheets %}
{% endblock %}