Spaces:
Runtime error
Runtime error
Create templates/index.html
Browse files- templates/index.html +69 -0
templates/index.html
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!doctype html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<title>将.docx文件转换为.html</title>
|
6 |
+
<style>
|
7 |
+
body {
|
8 |
+
font-family: Arial, sans-serif;
|
9 |
+
margin: 0;
|
10 |
+
padding: 20px;
|
11 |
+
background-color: #f2f2f2;
|
12 |
+
}
|
13 |
+
h1 {
|
14 |
+
text-align: center;
|
15 |
+
color: #333;
|
16 |
+
}
|
17 |
+
form {
|
18 |
+
max-width: 400px;
|
19 |
+
margin: 0 auto;
|
20 |
+
background-color: #fff;
|
21 |
+
padding: 20px;
|
22 |
+
border-radius: 5px;
|
23 |
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
24 |
+
}
|
25 |
+
input[type="file"] {
|
26 |
+
display: block;
|
27 |
+
margin-bottom: 15px;
|
28 |
+
}
|
29 |
+
input[type="submit"] {
|
30 |
+
width: 100%;
|
31 |
+
padding: 10px;
|
32 |
+
font-size: 16px;
|
33 |
+
color: #fff;
|
34 |
+
background-color: #007bff;
|
35 |
+
border: none;
|
36 |
+
border-radius: 5px;
|
37 |
+
cursor: pointer;
|
38 |
+
}
|
39 |
+
@media only screen and (max-width: 600px) {
|
40 |
+
form {
|
41 |
+
width: 90%;
|
42 |
+
}
|
43 |
+
}
|
44 |
+
.powered-by {
|
45 |
+
text-align: center;
|
46 |
+
font-size: 12px;
|
47 |
+
color: #999;
|
48 |
+
padding: 10px;
|
49 |
+
}
|
50 |
+
.powered-by a {
|
51 |
+
color: #666;
|
52 |
+
text-decoration: none;
|
53 |
+
}
|
54 |
+
.powered-by a:hover {
|
55 |
+
text-decoration: underline;
|
56 |
+
}
|
57 |
+
</style>
|
58 |
+
</head>
|
59 |
+
<body>
|
60 |
+
<h1>在线将.docx文件转换为.html</h1>
|
61 |
+
<form action="/convert" method="post" enctype="multipart/form-data">
|
62 |
+
<input type="file" name="file">
|
63 |
+
<input type="submit" value="Convert">
|
64 |
+
</form>
|
65 |
+
</body>
|
66 |
+
<div class="powered-by">
|
67 |
+
Powered by <a href="/">森林处理器</a>
|
68 |
+
</div>
|
69 |
+
</html>
|