Open
Conversation
947183f to
95c3114
Compare
ruioliveira02
requested changes
Jul 23, 2022
Comment on lines
92
to
94
| <ul> | ||
| <a href={subentry.url}><%= subentry.title %></a> | ||
| </ul> |
Member
There was a problem hiding this comment.
You should not be using <ul> here. If anything, it should be a <li> tag and you put the <ul> on top of the for loop
<ul>
<%= for .... do %>
<li>
...
</li>
<% end %>
</ul>
Member
ruioliveira02
left a comment
There was a problem hiding this comment.
Make sure to format / lint your code so the checks pass
Comment on lines
17
to
60
| <script> | ||
| var isClicked = false | ||
| function pixeis(){ | ||
| var result = false | ||
| if(window.innerWidth < 700) | ||
| result = true | ||
| return result | ||
| } | ||
| function scene1() | ||
| { | ||
| document.getElementById("menu2").className = "text-center" | ||
| document.getElementById("content").className = "hidden" | ||
| document.getElementById("menu").className = "hidden" | ||
| } | ||
| function scene2() | ||
| { | ||
| document.getElementById("menu").className = "text-center" | ||
| document.getElementById("menu2").className = "hidden" | ||
| document.getElementById("content").className = "container" | ||
| } | ||
| function clickedbutton() { | ||
| isClicked = !isClicked | ||
| if(isClicked){ | ||
| if(pixeis()) | ||
| scene1(); | ||
| else | ||
| scene2(); | ||
| } | ||
| else{ | ||
| document.getElementById("menu").className = "hidden" | ||
| document.getElementById("menu2").className = "hidden" | ||
| document.getElementById("content").className = "container" | ||
| } | ||
| } | ||
| function resized() | ||
| { | ||
| if(isClicked) | ||
| if(pixeis()) | ||
| scene1() | ||
| else | ||
| scene2() | ||
| } | ||
| window.onresize = resized; | ||
| </script> |
Member
There was a problem hiding this comment.
I am not a fan of this. Maybe we can use Alpine.js and Tailwind's breakpoints to clean this up (@nelsonmestevao)
Member
There was a problem hiding this comment.
I think it would be really cool to use Alpine and tailwind breakpoints. Should I add alpine to this project?
Member
There was a problem hiding this comment.
Yes I think it would be a good addition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Made the navbar mobile friendly, fixed a typo error and changed the name "performancelive" to "karaoke_performance_id" in order to be more intuitive of what it represent.