Fix js issues on loading due to turbo config
This commit is contained in:
parent
a48c25718f
commit
80e1f89c7e
4 changed files with 15 additions and 8 deletions
|
|
@ -119,6 +119,9 @@ const photosUploadInit = () => {
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
document.addEventListener('turbo:load', (event) => {
|
||||
init();
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -57,6 +57,9 @@ const scrollTo = () => {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
document.addEventListener('turbo:load', (event) => {
|
||||
mobileMenu();
|
||||
jobInfoToggle();
|
||||
scrollTo();
|
||||
});
|
||||
|
|
@ -47,6 +47,7 @@ const album = () => {
|
|||
|
||||
|
||||
}
|
||||
|
||||
document.addEventListener('turbo:load', (event) => {
|
||||
mobileMenu();
|
||||
album();
|
||||
});
|
||||
|
|
@ -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 %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue