ysfj / templates /index.html
smf2010's picture
Upload 3 files
2615c4a verified
raw
history blame
3.95 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Cache-Control" content="max-age=36000">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>因式分解</title>
<link rel="stylesheet" type="text/css" href="https://lightsdark.com/style-project.css">
</head>
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<body>
<div class="container">
<h1>因式分解</h1>
<form method="GET" action="/factorize">
<input type="text" name="expression" placeholder="请输入一个代数式" required>
<button type="submit">因式分解</button>
</form>
{% if result %}
<div class="result-container">
<div class="result">
<h2>因式分解结果:</h2>
<p>$$ {{ result|safe }} $$</p>
<script type="text/javascript">
MathJax.Hub.Queue(["Typeset", MathJax.Hub, "{{ result|safe }}"]);
</script>
</div>
</div>
{% endif %}
{% if error %}
<div class="error-container">
<div class="error">
<h2>错误消息:</h2>
<p>{{ error }}</p>
</div>
</div>
{% endif %}
<p>2023 星空暗夜团队 版权所有</p>
<p><a href=https://smf.lanzout.com/iOtyY13ixk9a>下载移动端</a>密码:bizt</p>
<div class="button-container">
<button onclick="openAbout()">关于</button>
<!-- <button onclick="openUse()">使用说明</button> -->
<a href="https://sway.office.com/EMKfxo4iLHzBaa6A?ref=Link">
<button>使用说明</button>
</a>
</div>
</div>
<div id="overlay">
<div class="modal" id="about">
<span id="close" onclick="hideAbout()">&times;</span>
<h2>关于</h2>
<p>这里是由星空暗夜团队-神秘的星空smf开发的因式分解!</p>
<h2>打赏鸡腿</h2>
<img src="https://math.lightsdark.com/smf%E8%B5%9E%E5%8A%A9%E7%A0%81.png" alt="smf" style="max-width: 30%; height: auto;">
<br>
<a href="http://math.lightsdark.com">
<button>返回计算器主页</button>
</a>
</div>
<div class="modal" id="use">
<span id="close" onclick="hideUse()">&times;</span>
<h2>使用说明</h2>
<p>*表示乘法,**表示乘方,括号统一使用小括号,数字与字母中间(或字母与字母中间)的乘号可以省略。</p>
<p>开根号使用sqrt(),三次根式使用cbrt(),更多函数请查看python官方文档</p>
<p>如果还有任何问题,请点击按钮联系我们。</p>
<a href="mailto:sh_szh2010@outlook.com">
<button>点击这里</button>
</a>
<p>注:为了以防家长吐槽,我们将原来的二次元壁纸换成了必应每日更新壁纸。</p>
</div>
</div>
<script>
function openAbout() {
document.getElementById("overlay").style.display = "block";
document.getElementById("about").style.display = "block";
}
function hideAbout() {
document.getElementById("overlay").style.display = "none";
document.getElementById("about").style.display = "none";
}
function openUse() {
document.getElementById("overlay").style.display = "block";
document.getElementById("use").style.display = "block";
}
function hideUse() {
document.getElementById("overlay").style.display = "none";
document.getElementById("use").style.display = "none";
}
</script>
</body>
</html>