diff --git a/docs/css/page.css b/docs/css/page.css new file mode 100644 index 0000000..254eb91 --- /dev/null +++ b/docs/css/page.css @@ -0,0 +1,35 @@ +.which-image-container { + display: flex; + flex-wrap: wrap; + align-items: center; + flex-direction: column; + justify-content: space-between; + height: 100%; +} + +.which-image-container :nth-child(2) { + display: flex; + flex-wrap: wrap; + align-items: center; + flex-direction: column; + justify-content: flex-end; +} + +.which-image { + display: inline-block; + flex: 1; + flex-basis: 45%; + margin: 1% 1% 1% 1%; + width: 100%; + height: auto; +} + +.which-image img { + float: right; + width: 100%; +} + +.image-display img { + float: right; + width: 65%; +} \ No newline at end of file diff --git a/docs/img/id/anni.jpg b/docs/img/id/anni.jpg new file mode 100644 index 0000000..ff42e9e Binary files /dev/null and b/docs/img/id/anni.jpg differ diff --git a/docs/img/id/chenglong.jpg b/docs/img/id/chenglong.jpg new file mode 100644 index 0000000..8bbe4ea Binary files /dev/null and b/docs/img/id/chenglong.jpg differ diff --git a/docs/img/id/zhoujielun.jpg b/docs/img/id/zhoujielun.jpg new file mode 100644 index 0000000..6e5da6c Binary files /dev/null and b/docs/img/id/zhoujielun.jpg differ diff --git a/docs/img/id/zhuyin.jpg b/docs/img/id/zhuyin.jpg new file mode 100644 index 0000000..6a812ba Binary files /dev/null and b/docs/img/id/zhuyin.jpg differ diff --git a/docs/img/multi_face_comparison.png b/docs/img/multi_face_comparison.png index b319572..6fc4852 100644 Binary files a/docs/img/multi_face_comparison.png and b/docs/img/multi_face_comparison.png differ diff --git a/docs/index.html b/docs/index.html index fc25945..31d2b70 100644 --- a/docs/index.html +++ b/docs/index.html @@ -20,10 +20,12 @@ + +
diff --git a/docs/js/which-image.js b/docs/js/which-image.js new file mode 100644 index 0000000..698f7d1 --- /dev/null +++ b/docs/js/which-image.js @@ -0,0 +1,27 @@ +/* + * @FilePath: \SimSwap\docs\js\which-image.js + * @Author: Ziang Liu + * @Date: 2021-07-03 16:34:56 + * @LastEditors: Ziang Liu + * @LastEditTime: 2021-07-03 16:44:10 + * Copyright (C) 2021 SJTU. All rights reserved. + */ + + + +function select_source(number) { + var items = ['anni', 'chenglong', 'zhoujielun', 'zhuyin']; + var item_id = items[number]; + + for (i = 0; i < 4; i++) { + if (number == i) { + document.getElementById(items[i]).style.borderWidth = '5px'; + document.getElementById(items[i]).style.borderColor = 'red'; + document.getElementById(items[i]).style.borderStyle = 'outset'; + } else { + document.getElementById(items[i]).style.border = 'none'; + } + } + document.getElementById('jiroujinlun').src = './img/' + item_id + '.webp'; + +} \ No newline at end of file