-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.html
40 lines (37 loc) · 1.33 KB
/
web.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="icon" href="picture.jpg">
<style type="text/css">
a:hover {
color: #8fdd19;
}
</style>
</head>
<body onload="time()">
<p><img src="patrick.jpg" width="300" height="300"></p>
<p>我是,高中畢業於<a href="https://www.hs.ntnu.edu.tw/">師大附中</a>
現在就讀<a href="https://web.ee.ntu.edu.tw/">台大電機系</a>
</p>
<p>我的興趣是<a href="https://www.nba.com/warriors/">打籃球</a>、
<a href="https://www.facebook.com/ntumusicaward/">唱歌</a>、
<a href="https://www.ymsnp.gov.tw/main_ch/index.aspx">爬山</a>
</p>
<p><audio controls loop autoplay ><source src="Red Swan.mp3" ></audio></p>
<p id="current"></p>
</body>
</html>
<script>
function time() {
NowDate = new Date();
year = NowDate.getFullYear();
month = NowDate.getMonth() + 1;
day = NowDate.getDate();
hr = NowDate.getHours();
min = NowDate.getMinutes();
sec = NowDate.getSeconds();
document.getElementById('current').innerHTML = month + '-' + day + '-' + year + ' ' + hr + ':' + min + ':' + sec;
setTimeout('time()', 1000);
}
</script>