|
1 | | - |
2 | | -<!DOCTYPE html> |
3 | | -<html lang="en"> |
4 | | -<head> |
5 | | - <meta charset="UTF-8"> |
6 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
7 | | - <title>Study Planner</title> |
8 | | - <link rel="stylesheet" href="style.css"> |
9 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> // Add viewport meta element |
10 | | - <title>Document</title> |
11 | | -</head> |
12 | | -<body> |
13 | | - <header> |
14 | | - <h1>Study Planner</h1> |
15 | | - </header> |
16 | | - <main> |
17 | | - <section id="schedule"> |
18 | | - <h2>Your Schedule</h2> |
19 | | - <!-- Schedule content goes here --> |
20 | | - </section> |
21 | | - <section id="tasks"> |
22 | | - <h2>Your Tasks</h2> |
23 | | - <!-- Task list and management interface goes here --> |
24 | | - <div id="taskForm"> |
25 | | - <form> |
26 | | - <!-- Form content for adding tasks --> |
27 | | - </form> |
28 | | - </div> |
29 | | - <div id="taskList"> |
30 | | - <!-- Dynamic task list will be rendered here --> |
31 | | - </div> |
32 | | - </section> |
33 | | - </main> |
34 | | - <footer> |
35 | | - <p>© 2023 Study Planner</p> |
36 | | - </footer> |
37 | | - <script src="main.js"></script> |
38 | | - |
39 | | -</body> |
40 | | -</html> |
41 | | -<<<<<<< Updated upstream |
42 | | -<html lang="en"> |
43 | | -<head> |
44 | | - <meta charset="UTF-8"> |
45 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Added viewport meta element --> |
46 | | - <title>Document</title> |
47 | | -</head> |
48 | | -<body> |
49 | | - |
50 | | -</body> |
51 | | -</html> |
52 | | -<html lang="en"> |
53 | | -<head> |
54 | | - <meta charset="UTF-8"> |
55 | | - <title>Document</title> |
56 | | - |
57 | | - </head> |
58 | | - <body> |
59 | | - |
60 | | - </body> |
61 | | - </html> |
62 | | -<body> |
63 | | - |
64 | | -</body> |
65 | | - |
66 | | -<!DOCTYPE html> |
67 | | -<html lang="en"> |
68 | | -<head> |
69 | | - <meta charset="UTF-8"> |
70 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> // Add viewport meta element |
71 | | - <title>Document</title> |
72 | | -</head> |
73 | | -<body> |
74 | | - |
75 | | -</body> |
76 | | -</html> |
77 | | -<html lang="en"> |
78 | | -<head> |
79 | | - <meta charset="UTF-8"> |
80 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Added viewport meta element --> |
81 | | - <title>Document</title> |
82 | | -</head> |
83 | | -<body> |
84 | | - |
85 | | -</body> |
86 | | -</html> |
87 | | -<html lang="en"> |
88 | | -<head> |
89 | | - <meta charset="UTF-8"> |
90 | | - <title>Document</title> |
91 | | - |
92 | | -</head> |
93 | | -<body> |
94 | | - |
95 | | -</html> |
96 | | -======= |
97 | | - |
98 | | -<script> |
99 | | - // Example fetch request to an API endpoint |
100 | | - fetch('/api/tasks') |
101 | | - .then(response => response.json()) |
102 | | - .then(data => { |
103 | | - // Handle data (tasks) here |
104 | | - console.log(data); |
105 | | - }) |
106 | | - .catch(error => { |
107 | | - console.error('Error fetching tasks:', error); |
108 | | - }); |
109 | | -</script> |
110 | | - |
111 | | -<script> |
112 | | - // Function to fetch and display tasks |
113 | | - function fetchAndDisplayTasks() { |
114 | | - fetch('/api/tasks') |
115 | | - .then(response => response.json()) |
116 | | - .then(tasks => { |
117 | | - const tasksList = document.getElementById('tasksList'); |
118 | | - tasksList.innerHTML = ''; // Clear existing tasks |
119 | | - tasks.forEach(task => { |
120 | | - const taskItem = document.createElement('li'); |
121 | | - taskItem.textContent = task.title; |
122 | | - tasksList.appendChild(taskItem); |
123 | | - }); |
124 | | - }) |
125 | | - .catch(error => { |
126 | | - console.error('Error fetching tasks:', error); |
127 | | - }); |
128 | | - } |
129 | | - |
130 | | - // Call the function on page load |
131 | | - document.addEventListener('DOMContentLoaded', fetchAndDisplayTasks); |
132 | | -</script> |
133 | | ->>>>>>> Stashed changes |
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>Study Planner</title> |
| 7 | + <link rel="stylesheet" href="style.css"> |
| 8 | +</head> |
| 9 | +<body> |
| 10 | + <header> |
| 11 | + <h1>Study Planner</h1> |
| 12 | + </header> |
| 13 | + <main> |
| 14 | + <section id="schedule"> |
| 15 | + <h2>Your Schedule</h2> |
| 16 | + </section> |
| 17 | + <section id="tasks"> |
| 18 | + <h2>Your Tasks</h2> |
| 19 | + <div id="taskForm"> |
| 20 | + <form id="taskFormElement"> |
| 21 | + <input type="text" id="taskTitle" placeholder="Title" required /> |
| 22 | + <input type="text" id="taskDescription" placeholder="Description" required /> |
| 23 | + <input type="date" id="taskDueDate" required /> |
| 24 | + <button type="submit">Add Task</button> |
| 25 | + </form> |
| 26 | + </div> |
| 27 | + <div id="taskList"></div> |
| 28 | + </section> |
| 29 | + </main> |
| 30 | + <footer> |
| 31 | + <p>© 2023 Study Planner</p> |
| 32 | + </footer> |
| 33 | + <script src="main.js"></script> |
| 34 | +</body> |
| 35 | +</html> |
0 commit comments