Most logic needs to change, I'm changing some stuff with the .css but I can't understand how stuff like the header works.
- Header appears where it shouldn't (on the Menu and Stats page).
- Same thing with footer, I'm currently removing it from everywhere except the menu, and I needed to change way more than I wanted to.
- Many functions use "==" instead of "===" which may cause bugs in the future.
main.css is not used
- In
utils.js we have navigateTo(url) not used
The worst thing is that there's no clear distinction from back-end and front-end, I kinda feel like we should clean the code before continuing, maybe put some rules.
For example, at the end of most of the .ejs there is this:
<div style="display:none">
<h2 id="header" hx-swap-oob="true">
<%= id %>
</h2>
</div>
Why is it at the end if it's a header? And what does it do, exactly? Why is there "style" on the .ejs?
I'd put many .css, stuff like header.css, footer.css, text.css, etc. Instead of having them all inside main.css
Something cleaner would be:
<div class="header">
<h2>
Book <%= book_id %> - Chapter <%= chapter_id %>
</h2>
</div>
So that if we want to change stuff it's easier, like switch from that to:
<div class="header">
<h2>
Book <%= book_id %>
</h2>
<h3>
Chapter <%= chapter_id %>
</h3>
</div>
(Honestly idk if we the stuff inside <%= %> is possible or completely wrong, let me know)
Most logic needs to change, I'm changing some stuff with the .css but I can't understand how stuff like the header works.
main.cssis not usedutils.jswe havenavigateTo(url)not usedThe worst thing is that there's no clear distinction from back-end and front-end, I kinda feel like we should clean the code before continuing, maybe put some rules.
For example, at the end of most of the .ejs there is this:
Why is it at the end if it's a header? And what does it do, exactly? Why is there "style" on the .ejs?
I'd put many .css, stuff like
header.css,footer.css,text.css, etc. Instead of having them all insidemain.cssSomething cleaner would be:
So that if we want to change stuff it's easier, like switch from that to:
(Honestly idk if we the stuff inside
<%= %>is possible or completely wrong, let me know)