-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
170 lines (162 loc) · 9.51 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="en">
<head>
<title>BAI Haonan's Webpage</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=Roboto:ital,wght@0,300;0,400;0,500;0,900;1,300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<script src="script.js"></script>
</head>
<body onload="autoLoad();" style="font-family: 'IBM Plex Mono', monospace; background-color:#FFFDDF;">
<article>
<header class="container" style="background-image: url('DSC_0377.JPG'); background-size: cover; background-position: center;">
<h1 class="text-light">BAI Haonan's Webpage</h1>
<h4 class="text-light">Computer Science & Engineering</h4>
</header>
<nav class="navbar navbar-expand-md navbar-dark justify-content-center" style="background-color: #12A0E6;">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link active" href="#about"><i class="bi bi-person-circle"></i>About Me</a></li>
<li class="nav-item"><a class="nav-link active" href="https://amaodemao.github.io/files/resume/resume.pdf"><i class="bi bi-file-pdf"></i></i>Curriculum Vitae</a></li>
<li class="nav-item"><a class="nav-link active" href="#links"><i class="bi bi-link"></i>Links</a></li>
<li class="nav-item"><a class="nav-link active" href="#" onclick="ShowTheBar()" id="special" style="color: #FF0000;">Special!</a></li>
</ul>
</nav>
<div class="container" id="specialbar" style="display: none; background-color:#12A0E6; text-align: center;">
<div class="row">
<div class="col-4">
<button class="rounded" style="background-color: #FFFDDF;" onclick="Align()">Align</button>
</div>
<div class="col-4">
<button class="rounded" style="background-color: #FFFDDF" onclick="NewCourse()">New Course</button>
</div>
<div class="col-4">
<button class="rounded" style="background-color: #FFFDDF" onclick="ShowTheProgressBar()">Scroll</button>
</div>
</div>
</div>
<div class="container sticky-top" id="scrollBarContainer" style="display: none; align-self: center;">
<div id="scrollBar" class="progress progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-label="auto_scroll_bar" style="width: 0%; height: 25px" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<div class="container" id="contents">
<div class="row">
<section id="about" class="col-md-9 col-lg-8 col-xl-6" style="background-color: #48E0B3;">
<h2 class="text-start">About Me</h2>
<p>
<picture class="float-start">
<img src="Picture.jpg" width="100px" alt="My Photo">
</picture>
My name is BAI Haonan, or 白浩男 in Chinese.
I am currently an undergraduate student in the Chinese University of Hong Kong.
My major is Artificial Intelligence - Systems & Technologies.
I am currently in my second year.
</p>
<p>
<picture class="float-end">
<img src="OCPicture.png" width="100px" alt="Me in furry">
</picture>
By the way, I am a furry, and this is my original character, Amaodemao.
You can call me Amao if you like, and I'm always happy to meet new furry pals.
</p>
</section>
<section id="links" class="col-sm col-md-3 col-lg-4 col-xl-6" style="background-color: #FFB750;">
<h2 class="text-start">Links</h2>
<p>I am also available at:</p>
<ul class="list-group list-unstyled" style="text-align: center;">
<li><a href="https://github.com/Amaodemao/" target="_blank" class="list-group-item list-group-item-action list-group-item-light">Github</a></li>
<li><a href="https://twitter.com/amaodemao/" target="_blank" class="list-group-item list-group-item-action list-group-item-light">Twitter</a></li>
<li>Email: hnbai at link.cuhk.edu.hk</li>
</ul>
</section>
</div>
<div class="row">
<section style="background-color:lightsteelblue;">
<h2 class="text-start">Selected Coursework</h2>
<table id="courses" class="table table-striped table-hover">
<thead>
<tr>
<th>Course code</th>
<th>Name</th>
</tr>
</thead>
<tbody id="courseTable">
<tr>
<th>MATH1510</th>
<th>Calculus</th>
</tr>
<tr>
<th>ENGG1130</th>
<th>Multi-variable Calculus</th>
</tr>
<tr>
<th>ESTR1005</th>
<th>Linear Algebra</th>
</tr>
<tr>
<th>ESTR1002</th>
<th>Problem Solving By Programming</th>
</tr>
<tr>
<th>ESTR2102</th>
<th>Data Structures</th>
</tr>
<tr>
<th>CENG3420</th>
<th>Computer Organization</th>
</tr>
<tr>
<th>CSCI3230</th>
<th>Fundamentals of Artificial Intelligence</th>
</tr>
</tbody>
<caption style="font-weight: 700; color: #000000;">
Fun fact: I actually took CS61C and CS188 at UC Berkeley during my summer exchange,
which are equivalent to CUHK's CENG3420 and CSCI3230. Also, I jumped the Discrete
Mathematics, which was a prerequisite for CS188.
</caption>
</table>
</section>
</div>
</div>
<div class="container" style="position: center;">
<div id="comments">
<div id="c1001" class="d-flex"></div>
</div>
<hr>
<h4>Add your comment:</h4>
<form>
<div class="mb-3">
<label for="new-email" class="form-label">Email address</label>
<input type="email" class="form-control" id="new-email" placeholder="[email protected]">
</div>
<div class="mb-3">
<label for="new-comment" class="form-label">Comment</label>
<textarea class="form-control" id="new-comment" rows="3" spellcheck="true"></textarea>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="new-color" id="new-color-red" value="red">
<label class="form-check-label" for="new-color-red">Red</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="new-color" id="new-color-green" value="green">
<label class="form-check-label" for="new-color-blue">Green</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="new-color" id="new-color-yellow" value="Yellow">
<label class="form-check-label" for="new-color-green">Yellow</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="new-color" id="new-color-blue" value="blue">
<label class="form-check-label" for="new-color-green">Blue</label>
</div>
<button type="button" class="btn btn-primary" onclick="processform()" style="background-color:blue">Add comment</button>
<button type="button" class="btn btn-primary" onclick="loadfile()" style="background-color:green">Load file</button>
<button type="button" class="btn btn-primary" onclick="savefile()" style="background-color:gray">Save file</button>
</form>
</div>
<footer>
<p>2022 <i class="bi bi-c-circle"></i> BAI Haonan</p>
</footer>
</article>
</body>
</html>