Guys, I need some feedback on my Random Quote machine:
Note: You needn’t make me happy with nice comments!
Guys, I need some feedback on my Random Quote machine:
Note: You needn’t make me happy with nice comments!
The tweet button goes on top of the quote button on smaller screens. And the box doesn’t grow in height to accommodate longer text.
You could have passed the changeQuote
function to $(document).ready()
, instead of writing that function twice.
$(document).ready(changeQuote);
You can use template literals for cleaner HTML strings.
quoteText.innerHTML = `<i>${currQuote}</i><br><br>-<small>${currAuthor}</small>`;
I think it’s better to clear quoteText
(or place a loading icon) while waiting for new quotes, instead of assigning it the current quote.
Thank you soo much for your feedback…!!
I’ll work on the improvements…!
display: inline-block
do the trick ?