-
Notifications
You must be signed in to change notification settings - Fork 0
/
typein-number.html
101 lines (82 loc) · 2.11 KB
/
typein-number.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html>
<head>
<title>Extract-Number</title>
<link rel="stylesheet" href="{{ url_for('static', filename='/csv.css') }}">
</head>
<body>
<div class="w3-container">
<div class="w3-card-4" style="width:100%;height:100%;">
<header class="w3-container w3-cyan">
<h1 style="color:#ffffff;">Type In -> Extract Number</h1>
<a href="typein.html" class="previous">« Previous</a>
<br><br>
<form action="" method="POST">
<h3>Type your string here : </h3>
<textarea placeholder="Type here.." id="text" type="text" name="text"></textarea>
<br><br>
<button class="button button2">Check</button>
</form>
<style>
textarea {
width: 100%;
height: 150px;
padding: 12px 20px;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
background-color: #f8f8f8;
font-size: 16px;
resize: none;
}
.button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 8px 12px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
transition-duration: 0.4s;
cursor: pointer;
}
.button2 {
background-color: white;
color: black;
border: 2px solid #008CBA;
}
.button2:hover {
background-color: #008CBA;
color: white;
}
a {
text-decoration: none;
display: inline-block;
padding: 10px 18px;
}
a:hover {
background-color: #ddd;
color: black;
}
.previous {
background-color: #f1f1f1;
color: black;
}
</style>
<br>
<br>
<h2 style="color:#ffffff;">Output</h2>
{% with message = get_flashed_messages() %}
{% if message %}
{% for msg in message %}
<p> {{msg}} </p>
{% endfor %}
{% endif %}
{% endwith %}
</header>
</div>
</div>
</body>
</html>