forked from r3j0/JustDoIt
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
125 lines (110 loc) · 5.73 KB
/
index.html
File metadata and controls
125 lines (110 loc) · 5.73 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calendar and To Do List</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous">
<link rel="stylesheet" href="css/main_style.css">
<link rel="stylesheet" href="css/calendar_style.css">
<link rel="stylesheet" href="css/todolist_style.css">
</head>
<body>
<div style="display: flex;">
<div id="container-calendar">
<!-- top left -->
<h2 id="month-year" style="display:inline;">2023 / November</h2>
<!-- top right -->
<div class="monthButton nextMonth" onclick="nextMonth()"></div>
<div class="monthButton prevMonth" onclick="prevMonth()"></div>
<div id="date-update">
<label for="year">Year:</label>
<input type="number" id="year" min="1900" max="2100" value="2023">
<label for="month">Month:</label>
<input type="number" id="month" min="1" max="12" value="11">
<button onclick="updateCalendar()">Update</button>
</div>
<!-- table -->
<table>
<thead>
<tr>
<th class="tc_red">Sun</th>
<th>Mon</th>
<th>Tue</th>
<th>Wed</th>
<th>Thu</th>
<th>Fri</th>
<th class="tc_blue">Sat</th>
</tr>
</thead>
<tbody id="calendar-body">
<!-- 달력과 year month update 사이에 내용이 들어갑니다. -->
</tbody>
</table>
<!-- calendar.js 에 캘린더 기능을 옮겨서 수정 진행했습니다. by 박정근 (2023.11.17) -->
<script type="text/javascript" src="js/calendar.js"></script>
</div>
<div id="container-todolist">
<!-- To Do List -->
<div class="app">
<h4 class="mb-3">TO DO List</h4>
<div id="addNew" data-bs-toggle="modal" data-bs-target="#form">
<span>Add New Task</span>
<i class="fas fa-plus"></i>
</div>
<!-- Modal -->
<form class="modal fade" id="form" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Add New Task</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p>Task Title</p>
<input type="text" class="form-control" name="" id="textInput">
<br>
<p>Due Date</p>
<input type="date" class="form-control" name="" id="dateInput">
<br>
<p>Priority</p>
<select class="form-select" id="priorityInput">
<option value="low">Low</option>
<option value="medium">Medium</option>
<option value="high">High</option>
</select>
<br>
<p>Execution Time</p>
<div class="d-flex">
<input type="number" class="form-control" name="" id="executionTimeHoursInput" min="0" placeholder="Hours">
<input type="number" class="form-control" name="" id="executionTimeMinutesInput" min="0" max="59" placeholder="Minutes">
</div>
<br>
<p>Location (optional)</p>
<input type="text" class="form-control" name="" id="locationInput">
<br>
<p>Description</p>
<textarea name="" class="form-control" id="textarea" cols="30" rows="5"></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="submit" id="add" class="btn btn-primary">Add</button>
</div>
</div>
</div>
</form>
<h5 class="text-center my-3">Tasks</h5>
<div id="tasks"></div>
<div>
<button type="button" id="batch" class="btn btn-secondary">Batch</button>
</div>
</div>
</div>
</div>
<script src="js/todolist.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
</body>
</html>