-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (56 loc) · 1.83 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>About me</title>
<!-- <link rel="stylesheet" type="text/css" href="reset.css"> -->
<link rel="stylesheet" type="text/css" href="normalize.css">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Pacifico|Tillana">
<link rel="stylesheet" type="text/css" href="main.css">
<script src="https://use.fontawesome.com/7787385ecc.js"></script>
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
</head>
<body>
<div>
<i class="fa fa-address-card fa-4x"></i>
<h1>Tjuyy</h1>
<hr>
<p>I'm a PHD candidate. </p>
<h2>Skills</h2>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
<li>jQuery</li>
</ul>
<h2>Contact Info</h2>
<p>Github:
<a href="https://github.com/tjuyy">github.com/tjuyy</a></p>
<p>Email: <a href="mailto://[email protected]">[email protected]</a></p>
</div>
<script type="text/javascript">
$("button").click(function() {
$.getJSON("pm2_5.json", function(result) {
$.each(result, function(i, field) {
$("p").append(field + " ");
});
});
});
</script>
<button>获得JSON数据</button>
<p></p>
<script type="text/javascript">
now = new Date();
localtime = now.toString();
utctime = now.toGMTString();
document.write("<p><strong>Local time:</strong> " + localtime + "</p>");
document.write("<p><strong>UTC time:</strong> " + utctime + "</p>");
hours = now.getHours();
mins = now.getMinutes();
secs = now.getSeconds();
document.write("<h2>");
document.write(hours + ":" + mins + ":" + secs);
document.write("</h2>");
</script>
</body>
</html>