-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypein.html
181 lines (140 loc) · 5.12 KB
/
typein.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html>
<title>Type In</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ url_for('static', filename='/csv.css') }}">
<body>
<div class="w3-container">
<div class="w3-card-4" style="width:100%;">
<header class="w3-container w3-cyan">
<h1>Type In</h1>
<style>
ol {
background: #3399ff;
padding: 20px;
}
ol li {
background: #cce5ff;
padding: 5px;
margin-left: 35px;
}
</style>
</header>
<!-- <button type="button" class="btn btn-outline-light">Go to CSV</button>-->
<div>
</head>
<h2>By using this tool user can:</h2>
<ol>
<li>Find a word in sentence using "Find"</li>
<li>Replace a word in a sentence using "Replace"</li>
<li>Extract number from a sentence using "Extract numbers from sentences"</li>
<li>Check IP Address is valid or not using "Check the validity of IP Address"</li>
<li>Find https , protocol, host from URL from "Find https , protocol, host from URL"</li>
<li>Check the validity of mail ID using "Check the validity of mail ID""</li>
<li>Find a quoted word in sentence using "Find a quoted word"</li>
</ol>
<!--
<form action="#">
<input class="form-control" placeholder="Type here.." id="text" type='text'></input>
<select class="form-control form-control-lg" id='dmenu'>
<option>Select an operation</option>
<option value="Find">Find</option>
<option href="typein-replace">Replace</option>
<option>Find a quoted word</option>
<option>Extract numbers from sentences</option>
<option>Find https , protocol , host from url</option>
<option>Check the validity of IP Address</option>
<option>Check the validity of Mail Id</option>
</select>
</form> -->
<style>
.dropbtn {
background-color: #07d5c0;
color: white;
padding: 16px;
font-size: 16px;
border: none;
cursor: pointer;
}
.dropbtn:hover, .dropbtn:focus {
background-color: #07d5c0;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f1f1f1;
min-width: 160px;
overflow: auto;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown a:hover {background-color: #ddd;}
.show {display: block;}
</style>
</head>
<body>
<p>Click on the button to select the option.</p>
<div class="dropdown">
<button onclick="myFunction()" class="dropbtn">Select the option</button>
<div id="myDropdown" class="dropdown-content">
<a href="typein-find.html">Find</a>
<a href="typein-replace.html">Replace</a>
<a href="typein-number.html">Extract numbers from sentences</a>
<a href="typein-https.html">Find https , protocol , host from url</a>
<a href="typein-ip.html">Check the validity of IP Address</a>
<a href="typein-mail.html">Check the validity of Mail Id</a>
<a href="typein-quotedword.html">Find a quoted word</a>
</div>
</div>
<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
<style>
.btn {
background-color: #07d5c0;
border: none;
color: white;
padding: 12px 30px;
cursor: pointer;
font-size: 20px;
}
/* Darker background on mouse-over */
.btn:hover {
background-color: #07d5c0;
}
</style>
</head>
<footer class="w3-container w3-blue"style="width:100%;">
</footer>
</div>
</div>
<div class="w3-container">
</body>
</html>