Styles can be added directly to .querySelectors
-.preventDefault() stops the default behavior of any given element
-You can use the .includes() method to check strings to see if they are included within a given paramater
Target refers to the particular element that was interacted with, while currentTarget specifically refers to the target attached to the event listener
Lecture
-pageY looks at the distance that the mouse has moved on the screen, in number of pixles
-.eventListeners can be added to each part of a mouse click using mousedown and mouseupuser-select: none prevents the user from interacting with an element in any way
-Got further instruction on building functions, and incorporating them in a logical way to build a webpage
Morning
Warmup/Homework Review
.preventDefault()
stops the default behavior of any given element -You can use the.includes()
method to check strings to see if they are included within a given paramaterLecture
-
pageY
looks at the distance that the mouse has moved on the screen, in number of pixles -.eventListeners
can be added to each part of a mouse click usingmousedown
andmouseup
user-select: none
prevents the user from interacting with an element in any way -Got further instruction on building functions, and incorporating them in a logical way to build a webpage