diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-09-08 18:21:14 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-09-08 18:21:14 +0800 |
commit | a11a1ceac9799efc85a3722a7a95fdecd7e88cf3 (patch) | |
tree | b4ded4c9698639743d22b9d8a0fb9a428ef4b44c | |
parent | 01a1d8ea9265f77d5ec76f48cd1be1a30a0b8b12 (diff) |
Add manual and disclaimer
-rw-r--r-- | static/index.css | 6 | ||||
-rw-r--r-- | static/sheet.png | bin | 0 -> 81589 bytes | |||
-rw-r--r-- | templates/index.html | 59 |
3 files changed, 63 insertions, 2 deletions
diff --git a/static/index.css b/static/index.css index ff999d0..162003c 100644 --- a/static/index.css +++ b/static/index.css @@ -1,7 +1,5 @@ body { - text-align: center; font-family: sans-serif; - font-size: 16pt; } .error { @@ -9,3 +7,7 @@ body { padding: 1em; background-color: #faa; } + +summary { + margin: 1em; +} diff --git a/static/sheet.png b/static/sheet.png Binary files differnew file mode 100644 index 0000000..cec881d --- /dev/null +++ b/static/sheet.png diff --git a/templates/index.html b/templates/index.html index 0576890..c5edd1f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,6 +5,7 @@ <link rel="stylesheet" href="/static/index.css" </head> <body> + <h1>高中风险地区表格压缩器</h1> {% with messages = get_flashed_messages() %} {% if messages %} <ul class="error"> @@ -22,5 +23,63 @@ /> <input value="上传" type="submit" /> </form> + <details> + <summary>点击查看使用说明</summary> + <h3>表格格式</h3> + <figure> + <img src="/static/sheet.png" /> + </figure> + <p> + 图中高亮部分是压缩器会读取的数据,其他部分将会被忽略,但是黄色部分不能删除。 + 风险地区必须在名为“列表”的表格中,且第一个高风险区的省份必须在B3单元格。 + </p> + <p> + 表格的文件名必须以 <code>.xlsx</code> 结尾。 + </p> + <h3>使用方式</h3> + <p>首先,将文件下载至电脑上。下载的具体步骤超出了该教程的范围。</p> + <p>在当前页面选择文件并点击“上传”,如果压缩成功,压缩后的表格会自动下载到电脑上。</p> + <h3>数据存放</h3> + <p> + <b>请注意:</b> 您所在的网站服务器地处美国加州,我对于服务器的数据安全不做保证。 + 如果您不能接受,请不要使用该网站,而是联系院内专业人士。即使您可以接受,也请不要上传涉密文件。 + </p> + <p> + 表格在成功压缩并下载完毕后会被自动删除,但如果压缩时程序出现错误,文件则会被保留用于调试。 + </p> + <h3>关于</h3> + <p> + 高中风险地区表格压缩器(以下简称“压缩器”)是一个个人项目,托管在我的个人网页上。 + 当您使用压缩器时,您同意: + </p> + <ul> + <li>不将该网址公开至浦妇幼外的其他单位</li> + <li>不上传涉密文件</li> + <li>不恶意攻击该网站</li> + </ul> + 同时,您理解: + <ul> + <li>我不对项目是否完好或上线作任何保证</li> + <li>我没有义务持续维护本项目</li> + <li>我不保证生成表格完全正确</li> + <li>我不对浦东妇幼保健院及其任何员工的行为负责</li> + </ul> + <p> + 如果您有建议,或表格格式有变,请发送邮件至 <code>fkfd</code><code>@fkfd.me</code>, + 但由于该项目的公益性质,我不保证能够回应或做出修改。 + </p> + <p> + 该项目<a href="https://git.fkfd.me/risksheet">源代码</a> + 以 <a href="https://creativecommons.org/publicdomain/zero/1.0/deed.zh">CC-0 证书</a> 公开。 + 这说明: + </p> + <ul> + <li>我已经放弃该项目的著作权</li> + <li>任何人可以查看、复制、修改和使用源代码作任何用途</li> + <li>我不对使用人的任何行为负责</li> + </ul> + <p>如果您知道院内有人愿意托管该服务器,或愿意运行压缩器脚本,请联系上方邮箱。</p> + <p>压缩器依赖于 Python 3.6+、openpyxl 和 Flask。</p> + </details> </body> </html> |