Spaces:
Running
Running
Update templates/index.html
Browse files- templates/index.html +23 -0
templates/index.html
CHANGED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<title>Flask Greeting</title>
|
5 |
+
</head>
|
6 |
+
<body>
|
7 |
+
<h2>Enter Your Name and Intensity</h2>
|
8 |
+
<form method="POST">
|
9 |
+
<label>Name:</label><br>
|
10 |
+
<input type="text" name="name" required><br><br>
|
11 |
+
|
12 |
+
<label>Intensity:</label><br>
|
13 |
+
<input type="range" name="intensity" min="1" max="10" value="1"><br><br>
|
14 |
+
|
15 |
+
<input type="submit" value="Greet">
|
16 |
+
</form>
|
17 |
+
|
18 |
+
{% if message %}
|
19 |
+
<h3>Result:</h3>
|
20 |
+
<p>{{ message }}</p>
|
21 |
+
{% endif %}
|
22 |
+
</body>
|
23 |
+
</html>
|