Chapter 1: Dynamically update a paragraph
- Using the
onchangeattribute - Storing the values from the input into a JS variable
- Updating the DOM with the value of the input field
- Displaying previous user-generated text using an array
- Clearing the input when the user has finished typing
- Adding a space character between each of the user inputs
- Making our code as dynamic as possible
- Setting multiple attributes at once
Chapter 2: Build a multiplication table
- How to make a multiplication table with a nested for loop
- Bonus: Domain-name generator
Chapter 3: Build a Style Dynamizer
- Understanding the basics
- Improving the dynamizer using events
Chapter 4: Build a modal in vanilla JS
- Adding styles
- Preparing the styles for toggling the modal visibility
- Attaching an event listener to a button
- Adding the
showclass to our modal’s markup - Removing the
showclass from our modal’s markup - Conclusion
Chapter 5: Build a full-page navigation menu
- Starting with the modal code from the previous chapter
- Planning the updates
- Update the HTML
- Update the CSS
- Remove the redundant HTML and CSS code
- Updating the JS with updated class names
- Conclusion
Chapter 6: Build a slider in vanilla JS
- How does our simplest possible slider work?
- Improving our slider
- Adding the slider buttons (left and right arrows)
Chapter 7: Build a blog post image maker
- Scratching our own itch
- Preview the app live
- Building the app from scratch
- Getting the values from the
optionelement using JavaScript
Chapter 8: Simple stopwatch
- Building the reset functionality
- Adding the stopwatch timer
- Adding the Pause functionality
- Fixing the time measurement issues
- The cop-out solution
- Building a stopwatch using the
Dateobject in JS - Incorporating the
Dateupdates in our interval - Add proper formatting to our stopwatch
Chapter 9: Simple timer
- The simplest possible timer in JavaScript
Chapter 10: Simplest possible lightbox
- Starting to build our lightbox
- Adding a single image
- Showing a larger version of the photo
- Adding the “close modal” functionality
- Fixing the broken styling
- Adding additional images to our lightbox example
- Assessing the problem to solve
- Re-thinking our implementation
- Putting the entire carousel into a modal
- Adding the second image to the preview and the modal
- Making our lightbox more realistic
- Getting rid of the hard-coded numbers in
nextSlide()andprevSlide()methods - Adding the close button functionality
Chapter 11: An accordion in JS
- Plan the structure of our simple accordion
- Adding styles
- Setting up the logic using JavaScript
- Conclusion
Chapter 12: A dropdown button in JS
- Adding the HTML and CSS
- Making the dropdown toggle display with JS
- Updating the styles
- Registering a click outside of the dropdown div
Chapter 13: A tabbed navigation in JS
- Why tabs?
- Tabs variations
- Examples of tabbed navigation in use
- Planning the HTML structure
- Planning the CSS styles
- Planning the JS logic
- Writing our HTML code
- Writing our CSS code
- The result of our current code
- Adding the tab panels
- Writing the JS code
- Setting up click event listeners on tab menu items
- Displaying the
activeclass on the clicked tab menu item - Show the appropriate tab panel on click
- Cleaning up the previous active panels
- The completed code
- Conclusion
Chapter 14: Sliding nav
- The most basic sliding nav
- Hiding the nav
- Improving our simplest sidebar nav
- Adding a transition using CSS
- Revising the steps to build a sidebar sliding nav
- Conclusion
Chapter 15: Tag input
- The structure of our tag input
- Writing our tag input’s structure and styles
- Adding some basic interactivity to our tag input component
- Making our tag input react to user-triggered keydown events
- Adding the user-generated value from the input as another span tag
- Cleaning up our tag input’s code and appending tags in logical order
- Deleting previously added tags from the tag input
Chapter 16: Multi-image slider
- How does our multi-image slider component work?
- Building the multi-image slider prototype
- Intermission
- Improving our multi-image slider component
- Adding constraints to our multi-image slider movement
- Completing our multi-image slider component
Chapter 17: Building a Zoom-in Image Preview Component
- 1. HTML
- 2. CSS
- 3. JavaScript
- Conclusion
- Chapter 18: Building a Custom Select Component
Chapter 19: Double-sliding menu
- Chapter 20: Building a Header that Changes on Scroll
