将静态资源移动到标准位置
This commit is contained in:
110
templates/index.html
Normal file
110
templates/index.html
Normal file
@@ -0,0 +1,110 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>KaTeX示例</title>
|
||||
<link rel="stylesheet" href="../static/css/katex.min.css" crossorigin="anonymous">
|
||||
<script defer src="../static/js/katex.min.js" crossorigin="anonymous"></script>
|
||||
<script defer src="../static/js/auto-render.min.js" crossorigin="anonymous"></script>
|
||||
<script src="../static/js/html2pdf.bundle.min.js"></script>
|
||||
<link rel="stylesheet" href="../static/css/style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="content-container">
|
||||
<!--
|
||||
<h1>这个地方放需要的公式</h1>
|
||||
<p>这是一个行内公式:$x^2 + y^2 = z^2$</p>
|
||||
<p>这是一个独立公式:</p>
|
||||
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$
|
||||
-->
|
||||
|
||||
<div class="formula">
|
||||
<h3 onclick="toggleFormula(this)">转化风速:▶</h3>
|
||||
<div class="content" style="display: none;">
|
||||
$U_{10} = U_a \times \left(\frac{10}{a}\right)^n$
|
||||
<ul>
|
||||
<li class="parameter"><strong>$U_{10}$</strong>:转化风速,单位为米每秒(m/s)</li>
|
||||
<li class="parameter"><strong>$U_a$</strong>:实际测点风速,单位为米每秒(m/s)</li>
|
||||
<li class="parameter"><strong>$n$</strong>:风廓系数</li>
|
||||
<li class="parameter"><strong>$a$</strong>:实际测点高度,单位为米(m)</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="formula">
|
||||
<h3 onclick="toggleFormula(this)">太阳高度角计算公式:▶</h3>
|
||||
<div class="content" style="display: none;">
|
||||
<p>$h_0=\arcsin[\sin\phi\sin\sigma+\cos\phi\cos\sigma\cos(15t+\lambda-300)]$</p>
|
||||
|
||||
<p>参数说明:</p>
|
||||
<ul>
|
||||
<li class="parameter"><strong>$h_0$</strong>:太阳高度角,单位为度(°)</li>
|
||||
<li class="parameter"><strong>$\phi$</strong>:当地地理纬度,单位为度(°)</li>
|
||||
<li class="parameter"><strong>$\lambda$</strong>:当地地理经度,单位为度(°)</li>
|
||||
<li class="parameter"><strong>$t$</strong>:观测时的北京时间,单位为小时(h)</li>
|
||||
<li class="parameter"><strong>$\sigma$</strong>:太阳倾角,单位为度(°)</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="formula">
|
||||
<h3 onclick="toggleFormula(this)">太阳倾角计算公式:▶</h3>
|
||||
<div class="content" style="display: none;">
|
||||
<p>$\sigma=\begin{bmatrix} 0.006\ 918 & -0.399\ 12 \cos\theta+0.070\ 257& \sin\theta_0 \\ 0.006\ 758 & \cos2\theta_0+0.000\ 907 & \sin2\theta_0 \\ 0.002\ 679 & \cos3\theta_0+0.001\ 480 & \sin3\theta_0 \end{bmatrix} \ 180/\pi$</p>
|
||||
|
||||
<p>参数说明:</p>
|
||||
<ul>
|
||||
<li class="parameter"><strong>$\theta_0$</strong>:$360d_n / 365$,单位为度(°)</li>
|
||||
<li class="parameter"><strong>$d_n$</strong>:一年中的日期序数,0, 1, 2, ..., 364</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="container">
|
||||
<h1>历史数据</h1>
|
||||
|
||||
<div class="card-container" id="cardContainer">
|
||||
{% for data in weather %}
|
||||
<div class="card" data-id="{{ data[0] }}" onclick="selectCard(this)">
|
||||
<div class="card-header">
|
||||
<input type="radio" name="selectedData" value="{{ data[0] }}" id="radio-{{ data[0] }}">
|
||||
<h3 class="card-title">{{ data[1] }}</h3>
|
||||
</div>
|
||||
<p class="card-date">{{ data[2] }} {{ data[3] }}:{{ data[4] }} </p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button id="viewDetailsBtn">查看详情</button>
|
||||
<button id="deleteBtn">删除记录</button>
|
||||
<!-- 分页导航 -->
|
||||
<div class="pagination">
|
||||
<button id="prevPageBtn" {% if current_page <= 1 %}disabled{% endif %}>上一页</button>
|
||||
<span>第 <span id="currentPage">{{ current_page }}</span> 页 / 共 <span id="totalPages">{{ total_pages }}</span> 页</span>
|
||||
<button id="nextPageBtn" {% if current_page >= total_pages %}disabled{% endif %}>下一页</button>
|
||||
</div>
|
||||
|
||||
<div id="detailsContainer" style="margin-top: 20px; display: none;">
|
||||
<h2>详细信息</h2>
|
||||
<div id="detailsTable">
|
||||
<!-- 详细信息将在这里显示 -->
|
||||
</div>
|
||||
|
||||
<button id="downloadBtn">下载PDF</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="notification" id="notification"></div>
|
||||
|
||||
<script src="../static/js/afterbody.js"></script>
|
||||
</body>
|
||||
|
||||
<footer>
|
||||
<p class="version">版本号: 0.1.8-6</p>
|
||||
</footer>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user