smf2010 commited on
Commit
2e0e7ff
1 Parent(s): 4c0af36

Create templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +89 -0
templates/index.html ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>因式分解</title>
7
+ <link rel="stylesheet" type="text/css" href="https://math.lightsdark.com/style-project.css">
8
+ </head>
9
+ <body>
10
+ <div class="container">
11
+ <h1>因式分解</h1>
12
+ <form method="POST" action="/factorize">
13
+ <input type="text" name="expression" placeholder="请输入一个代数式" required>
14
+ <button type="submit">因式分解</button>
15
+ </form>
16
+
17
+ {% if result %}
18
+ <div class="result-container">
19
+ <div class="result">
20
+ <h2>因式分解结果:</h2>
21
+ <p>{{ result }}</p>
22
+ </div>
23
+ </div>
24
+ {% endif %}
25
+
26
+ {% if error %}
27
+ <div class="error-container">
28
+ <div class="error">
29
+ <h2>错误消息:</h2>
30
+ <p>{{ error }}</p>
31
+ </div>
32
+ </div>
33
+ {% endif %}
34
+ <p>2023 星空暗夜团队 版权所有</p>
35
+ <p><a href=https://smf.lanzout.com/iOtyY13ixk9a>下载移动端</a>密码:bizt</p>
36
+ <div class="button-container">
37
+ <button onclick="openAbout()">关于</button>
38
+ <button onclick="openUse()">使用说明</button>
39
+ </div>
40
+ </div>
41
+
42
+ <div id="overlay">
43
+ <div class="modal" id="about">
44
+ <span id="close" onclick="hideAbout()">&times;</span>
45
+ <h2>关于</h2>
46
+ <p>这里是由星空暗夜团队-神秘的星空smf开发的因式分解!</p>
47
+ <h2>打赏鸡腿</h2>
48
+ <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;">
49
+ <br>
50
+ <a href="http://math.lightsdark.com">
51
+ <button>返回计算器主页</button>
52
+ </a>
53
+ </div>
54
+ <div class="modal" id="use">
55
+ <span id="close" onclick="hideUse()">&times;</span>
56
+ <h2>使用说明</h2>
57
+ <p>*表示乘法,**表示乘方,括号统一使用小括号,数字与字母中间(或字母与字母中间)的乘号可以省略。</p>
58
+ <p>开根号使用sqrt(),三次根式使用cbrt(),更多函数请查看python官方文档</p>
59
+ <p>如果还有任何问题,请点击按钮联系我们。</p>
60
+ <a href="mailto:sh_szh2010@outlook.oom">
61
+ <button>点击这里</button>
62
+ </a>
63
+ <p>注:为了以防家长吐槽,我们将原来的二次元壁纸换成了必应每日更新壁纸。</p>
64
+ </div>
65
+ </div>
66
+ <script>
67
+ function openAbout() {
68
+ document.getElementById("overlay").style.display = "block";
69
+ document.getElementById("about").style.display = "block";
70
+ }
71
+
72
+ function hideAbout() {
73
+ document.getElementById("overlay").style.display = "none";
74
+ document.getElementById("about").style.display = "none";
75
+ }
76
+
77
+ function openUse() {
78
+ document.getElementById("overlay").style.display = "block";
79
+ document.getElementById("use").style.display = "block";
80
+ }
81
+
82
+ function hideUse() {
83
+ document.getElementById("overlay").style.display = "none";
84
+ document.getElementById("use").style.display = "none";
85
+ }
86
+
87
+ </script>
88
+ </body>
89
+ </html>