-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
142 lines (123 loc) · 6.09 KB
/
index.html
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html>
<head>
<title>My Profile</title>
<link rel = "stylesheet", href = "style.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css">
<style>
.container {
width: 100px;
}
label {
font-size: 30px;
}
</style>
</head>
<body>
<div id="wrapper">
<nav class="navbar navbar-light bg-light rounded-2">
<div class="container">
<span class="navbar-brand mb-0 h1">My Profile</span>
</div>
</nav>
<p>
Hello, My name is Cho Ye-eun. I am a skku student. I love to develop <strong>open-source projects</strong>.
I am interested in <span class="horsedaughter">horse daughter</span>; they are <em>awesome</em>!
My Email address is altkzkalzhxh@g.skku.edu
</p>
<img src="Photo.jpg" alt="this is an image of my horse daughter" width="300" />
<div id="links">
<h2>Useful Links</h2>
<ul>
<li><a href="https://www.google.com">Google</a></li>
<li><a href="https://github.com/Yeeun-Cho">My Github</a></li>
<li><a href="http://eportal.skku.edu/">Portal</a></li>
</ul>
</div>
<div id="schedule">
<h2>My Schedule</h2>
<table>
<tr>
<th class="week">Monday</th>
<th class="week">Tuesday</th>
<th class="week">Wednesday</th>
<th class="week">Thursday</th>
<th class="week">Friday</th>
<th class="week">Saturday</th>
<th class="week">Sunday</th>
</tr>
<tr>
<td class="stressthings">Busy</td>
<td class="rest">Available</td>
<td class="rest">Available</td>
<td class="stressthings">Busy</td>
<td class="rest">Available</td>
<td class="stressthings">Busy</td>
<td class="stressthings">Busy</td>
</tr>
</table>
</div>
<div id="todos">
<h2>Todos</h2>
<ol>
<li>Finish Assignments</li>
<li id="important">Nurture my horse daughter</li>
</ol>
</div>
<h2 id="TwM">Task with me</h2>
<div class="d-flex align-items-center mb-3 mt-2">
<input type="text" class="form-control" id="DoW-input" placeholder="Enter the day of week here">
<button type="button" id="add1" class="btn btn-primary ms-1 text-nowrap"><i class="bi bi-plus"></i>Add</button>
<input type="text" class="form-control" id="task-input" placeholder="Enter a task here">
<button type="button" id="add2" class="btn btn-primary ms-1 text-nowrap"><i class="bi bi-plus"></i>Add</button>
</div>
<div class="d-flex">
<div class="flex-grow-1 bg-light rounded-2 p-2 me-1 w-50">
<h3>Day of Week</h3>
<div id="DoW-list">
<div class="DoW bg-light p-1 rounded-2 ps-2">Sample day of week</div>
</div>
</div>
<div class="flex-grow-1 bg-light rounded-2 p-2 w-50">
<h3>Task</h3>
<div id="task-list">
<div class="DoW bg-light p-1 rounded-2 ps-2">Sample task</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf"
crossorigin="anonymous"></script>
<script>
let button1 = document.querySelector("#add1");
let button2 = document.querySelector("#add2");
button1.addEventListener("click", () => {
let input = document.querySelector("#DoW-input");
let DoW = input.value;
if (!DoW.length) return;
let newDoW = document.createElement("div");
newDoW.classList.add("DoW", "bg-light", "p-1", "rounded-2", "ps-2");
newDoW.textContent = DoW;
let DoWList = document.querySelector("#DoW-list");
DoWList.appendChild(newDoW);
input.value = "";
})
button2.addEventListener("click", () => {
let input = document.querySelector("#task-input");
let task = input.value;
if (!task.length) return;
let newtask = document.createElement("div");
newtask.classList.add("task", "bg-light", "p-1", "rounded-2", "ps-2");
newtask.textContent = task;
let taskList = document.querySelector("#task-list");
taskList.appendChild(newtask);
input.value = "";
})
</script>
</div>
</body>
</html>