-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
28 lines (20 loc) · 858 Bytes
/
Copy pathscript.js
File metadata and controls
28 lines (20 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Add JavaScript code for your web site here and call it from index.html.
/*** Dark Mode ***
Purpose:
- Use this starter code to add a dark mode feature to your website.
When To Modify:
- [ ] Project 5 (REQUIRED FEATURE)
- [ ] Any time after
***/
// Step 1: Select the theme button
// Step 2: Write the callback function
const toggleDarkMode = () => {
// Write your code here
// This section will run whenever the button is clicked
}
// Step 3: Register a 'click' event listener for the theme button,
// and tell it to use toggleDarkMode as its callback function
/*** Form Handling [PLACEHOLDER] [ADDED IN UNIT 6] ***/
/*** Form Validation [PLACEHOLDER] [ADDED IN UNIT 7] ***/
/*** Animations [PLACEHOLDER] [ADDED IN UNIT 8] ***/
/*** Success Modal [PLACEHOLDER] [ADDED IN UNIT 9] ***/