forked from Huxpro/huxpro.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.html
46 lines (40 loc) · 1.2 KB
/
about.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
---
layout: page
title: "About"
description: "Dr. Yonghong Xiang."
header-img: "img/about-bg.jpg"
---
<!-- Language Selector -->
<select onchange= "onLanChange(this.options[this.options.selectedIndex].value)">
<option value="0" selected> 中文 Chinese </option>
<option value="1"> 英语 English </option>
</select>
<!-- Chinese Version -->
<div class="zh post-container">
<blockquote>
生活其实很简单,每天除了上班工作,就是下班总结总结工作。
因为吃喝已经不用发愁了。
</blockquote>
</div>
<!-- English Version -->
<div class="en post-container">
<blockquote>
Life is just simple and easy. Work in office and review work at home.
Nothing to worry about bread and milk.
</blockquote>
</div>
<!-- Handle Language Change -->
<script type="text/javascript">
var $zh = document.querySelector(".zh");
var $en = document.querySelector(".en");
function onLanChange(index){
if(index == 0){
$zh.style.display = "block";
$en.style.display = "none";
}else{
$en.style.display = "block";
$zh.style.display = "none";
}
}
onLanChange(0);
</script>