-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove jQuery #425
Remove jQuery #425
Conversation
@@ -2864,4 +2863,5 @@ <h3>*****Longer title*****</h3> | |||
</footer> | |||
</div><!-- ends "grid" --> | |||
</body> | |||
<script src="js/js.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this should not remain inside the <head>
rather than at the <html>
level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh thanks, let me move it up! Or it will be invalid html.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested - seems to perform as anticipated on my end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I won't have the chance to test until the evening, but LGTM!
js/js.js
Outdated
} | ||
|
||
// add hash URL when recipe is opened | ||
let recipes = document.querySelectorAll('label[class="recipe"]') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(minor) recipes
(and some of the other let
variables) can be const
s, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes! thanks @kfrn -- clearly was just being lazy here
We were using the jQuery library for a few things, but I replaced these things with plain ol' Javascript.
I did some testing here, but it could definitely use more thorough testing to make sure I cleaned it up right! Pushing this now just so I can move on to other tasks today. ;) But will rush back to fix anything that didn't successfully make the transition.