This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
287 lines (275 loc) · 13.2 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
---
title: naiithink
description: CNC, Assignment I - create a simple self introduction page with HTML and CSS
domain: naiithink.github.io
url: https://naiithink.github.io
baseurl: /cnc-assg-i
---
<!DOCTYPE html>
<html
lang="th"
dir="ltr">
<head>
<meta charset="utf-8" />
<meta name="author" content="naiithink" />
<meta name="description" content="{{ page.description }}" />
<meta name="referrer" content="no-referrer" />
<meta name="color-scheme" content="light dark" />
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=yes" />
<meta name="robots" content="none" />
<link rel="stylesheet" type="text/css" href="{{ '/assets/css/style.css' | absolute_url }}" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=fallback" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:[email protected]&display=fallback" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;700&display=fallback" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans+Thai+Looped:wght@400;500;700&display=fallback" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=fallback" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&display=fallback" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Taviraj:wght@400;600&display=fallback" />
<link rel="icon" type="image/svg+xml" href="{{ '/assets/img/favicon.svg' | absolute_url }}" />
<title>{{ page.title }}</title>
<script type="text/javascript">
function onloadHandler() {
document.getElementById("the-main-struct").style.display = "none";
while (document.readyState != "complete") {
switch (document.readyState) {
case "loading-mask":
console.log("loading...");
setTimeout();
break;
case "interactive":
console.log("interactive...");
break;
}
}
amIGraduate();
setTimeout(showPage, 390);
}
function reloadPage() {
document.location.reload(true);
}
function showPage() {
document.getElementById("loading-mask").style.display = "none";
document.getElementById("the-main-struct").style.display = "grid";
}
</script>
<script type="text/javascript">
function amIGraduate() {
let date = new Date();
const thisYear = date.getFullYear();
const CSStartYear = 2020;
const elapsedYear = thisYear - CSStartYear;
if (0 < elapsedYear) {
if (elapsedYear < 4) {
document.getElementById("me-at-the-u").innerHTML = "ปัจจุบันเป็น";
document.getElementById("me-at-the-u-year").innerHTML = " ชั้นปีที่ " + elapsedYear + " ";
} else if (elapsedYear == 4) {
document.getElementById("me-at-the-u").innerHTML = "ปัจจุบันเป็น";
document.getElementById("me-at-the-u-year").innerHTML = " ชั้นปีสุดท้าย";
} else {
document.getElementById("me-at-the-u").innerHTML = "เคยเป็น";
document.getElementById("me-at-the-u-year").style.display = "none";
}
} else
document.getElementById("me-at-u").style.display = "none";
}
</script>
<script type="text/javascript">
let fakeButton = () => { document.getElementById("the-fake-button").innerHTML = "ก็บอกอยู่ว่าปุ่มปลอม จะกดทำไม"; };
</script>
</head>
<body onload="onloadHandler()">
<div id="topbar">
<div id="the-title-text" class="unselectable" href="#" aria-keyshortcuts="Shift+!" onclick="reloadPage()" lang="en-US">NAIITHINK</div>
</div>
<div id="the-main-struct" class="main-struct" style="display: none;">
<div id="sidebar-v-stack">
<div id="sidebar-postit">
<div id="the-title-text" class="unselectable" href="#" aria-keyshortcuts="Shift+!" onclick="reloadPage()" lang="en-US">NAIITHINK</div>
<div id="sub-title-block">
<div id="sub-title-text" style="font-family: Taviraj; font-weight: 600;">"น้อยแต่มาก เรียบแต่โก้"</div>
<div id="sub-title-text-caption">(นายไม่ได้กล่าว)</div>
</div>
</div>
<div id="sidebar-info"></div>
</div>
<main id="main">
<section class="main-contents">
<div id="qa1">
<h1>แนะนำตัวหน่อย <span class="mbox">เราเป็นใคร</span></h1>
<p>สวัสดีครับ ผมชื่อนาย นะครับ.</p>
</div>
<div id="qa2">
<h1>สั้นไป</h1>
<span>ผมชื่อ พศวัต ถิ่นกาญจน์วัฒนา ชื่อเล่นชื่อนาย<br />
<span id="me-at-u">
<span id="me-at-the-u"></span>นิสิตภาควิชาวิทยาการคอมพิวเตอร์<span id="me-at-the-u-year" class="mbox"></span>ครับ
</span>
</span>
</div>
<div id="qa3">
<h1 style="padding-top: calc((var(--extern-GLD) * var(--extern-GLD)) / 2.2 * 1.6ex);"><span class="unselectable"><span style="font-weight: 860;"><i>NAIITHINK</i></span> <span style="font-weight: normal;">©</span></span> ?</h1>
<p>ชื่อเล่นชื่อ <span style="font-weight: 800;">NAI</span> นามสกุล <span style="font-weight: 800;">THINK</span>anwatthana<br />
ส่วนตัว <span style="font-weight: 800;">I</span> ที่เกินมาแค่อยากใส่ครับ</p>
</div>
<div id="qa4">
<h1>เล่นโซเชียลมีเดียบ้างไหม</h1>
<picture
class="ans"
title="ลองเสิร์ชดู เจอผมในไหนก็เล่นอันนั้นแหละ หึ ๆ">
<source
type="image/png"
media="(prefers-color-scheme: light)"
srcset="{{ '/assets/img/light/twitter-search-naiithink-light-cursor.png' | absolute_url }}"
alt="twitter-search-naiithink-light-cursor"
draggable="false" />
<img
src="{{ '/assets/img/dark/twitter-search-naiithink-dark-cursor.png' | absolute_url }}"
alt="twitter-search-naiithink-dark-cursor"
height="40em"
draggable="false" />
</picture>
</div>
<div id="qa5">
<h1>ฟังเพลงแนวไหน</h1>
<p>ฟังทุกแนวครับ<br />
<a
href="https://open.spotify.com/user/rp7yqm8jfydpxgz8vsmirwhc5?si=f8af534799ef40a9"
target="_blank"
rel="noopener noreferrer">naiithink, a user on Spotify</a>
</p>
</div>
<div id="qa6">
<h1>ว่าง ๆ ชอบทำอะไร</h1>
<ul>
<li>เล่นดนตรี ♫</li>
<li>ดูหนัง ดูซีรีส์</li>
<li>เขียนโปรแกรม</li>
<li>ทำอะไรก็ได้ที่ผมชอบทำ – ดั่งที่ <a
href="https://youtu.be/vI9hu7q-1Sg?t=358"
target="_blank"
rel="noopener noreferrer"
title="Watch แงะลูกลื่นจากปากกาได้ไหม? on YouTube">YouTuber ท่านหนึ่งเคยกล่าวไว้</a></li>
</ul>
</div>
<div id="qa7">
<h1>ตอนไม่ว่างทำอะไร</h1>
<p>ไม่บอก</p>
</div>
<div id="qa8">
<h1>ภาษาโปรแกรมและสคริปต์<span class="mbox">ที่เคยใช้</span></h1>
<ul>
<li>C / C++</li>
<li>LibreOffice Basic</li>
<br />
<li>AWK</li>
<li>Bash</li>
<li>JavaScript (ใช้เขียนเพจนี้ไง)</li>
<li>Python</li>
<li>Ruby</li>
<li>TeX</li>
<br />
<li>HTML (<a
href="https://youtu.be/4A2mWqLUpzw"
target="_blank"
rel="noopener noreferrer"
title="HTML IS a Programming Language (Imperative vs Declarative) - Computerphile">ใช่ภาษาโปรแกรมรึป่าวนะ</a>)
</li>
</ul>
</div>
<div id="qa9">
<h1>ภาษาโปรแกรมและสคริปต์<span class="mbox">ที่สนใจ</span></h1>
<ul>
<li>Assembly</li>
<li>BASIC</li>
<li>C#</li>
<li>Java</li>
<li>Swift</li>
<br />
<li>PHP</li>
<li>PostScript</li>
</ul>
</div>
<div id="qa10">
<h1><div
style="font-size: 1.6em; cursor: default;"
title="อยากไปเที่ยวทะเล">🏝</div><br />
ถ้าเกิดว่าต้องไปติดเกาะร้าง แล้วเลือก<span class="mbox">ภาษาโปรแกรม</span>ติดไปด้วย<span class="mbox">ได้หนึ่งภาษา</span> <span class="mbox">จะเลือกภาษาอะไร</span></h1>
<p>C</p>
</div>
<div id="qa11">
<h1>คลิปที่เคยดูแล้วขำ<span class="mbox">จนแทบขาดใจ</span></h1>
<p><a
class="explicit-tag"
href="https://youtu.be/Dbpzl2C10M8"
target="_blank"
rel="noopener noreferrer"
title="Watch on YouTube">คำต้องห้าม EP.10 | เทพลีลา x @โคตรคูล x @PONGKOOL24</a> <span class="unselectable"></span></p>
</div>
<div id="qa12">
<h1>คติเตือนใจ</h1>
<p>"หนึ่งบวกหนึ่ง <b>เท่ากับ</b> สอง"</p>
</div>
<div id="qa13">
<h1>โค้ดเตือนใจ</h1>
<pre>
def printPython():
printf("Python")
printPython()
</pre>
<b><code style="color: #ff5433;">NameError: name 'printf' is not defined. <span class="mbox">Did you mean: 'print'?</span></code></b>
</div>
<div id="qa14">
<h1>Error ที่เจอบ่อยจนงงใจ</h1>
<p><code>Segmentation fault</code></p>
</div>
<div id="qa15">
<h1>คิดว่าอะไรเกิดก่อนกัน <span class="mbox">ไก่หรือไข่</span></h1>
<a
href="https://www.science.org.au/curious/earth-environment/which-came-first-chicken-or-egg"
title="Which came first: the chicken or the egg?"
target="_blank"
rel="noopener noreferrer">ไข่ครับ.</a>
</div>
<div id="qa16">
<h1>เหงาไหม</h1>
<p>เหงามั้ยนะเรา</p>
</div>
<div id="qa17">
<h1>มีอะไรอยากถามคนที่ได้มาอ่านบ้างไหม</h1>
<p>มีครับ.<br />
มีอะไรอยากถามผมบ้างไหม<br /><br />
<textarea
id="ans-ask-me"
rols="1"
cols="16"
style="resize: none;">ถามได้ แต่ไม่ตอบนะ</textarea><br />
<div
id="the-fake-button"
class="ans-button unselectable">
<input
type="button"
onclick="fakeButton()"
value="ปุ่มปลอม"
style="cursor: not-allowed;"
title="อย่ากด" />
</div>
</div>
<div id="qa18">
<h1>แหล่งข้อมูลที่สืบค้นไป</h1>
<ul>
<li><a
href="https://developer.mozilla.org/en-US/"
target="_blank"
rel="noopener noreferrer">mdn</a></li>
</ul>
</div>
</section>
<footer class="main-footer"></footer>
</main>
<div id="screensize-fallback">
<div id="unsupported-viewport"><span class="mbox">ขนาดหน้าจอ</span><span class="mbox">ไม่รองรับครับ</span></div>
</div>
<div id="loading-mask"></div>
</div>
</body>
</html>