-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (43 loc) · 1.9 KB
/
index.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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<title>Elements of a in b</title>
<link rel="stylesheet" type="text/css" href="https://dohliam.github.io/dropin-minimal-css/min/milligram.min.css">
<link rel="stylesheet" type="text/css" href="elements.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="elements.js" type="text/javascript"></script>
</head>
<body onload="window.cola.focus();">
<center>
<h2>Elements of <em>a</em> in <em>b</em></h2>
<table>
<tr>
<th><em>a</em></th>
<th><em>b</em></th>
<th>result</th>
</tr>
<tr>
<td><textarea type="text" rows="25" cols="25" style="font-size: 16px" value="" id="cola" onkeyup="find_el();"></textarea></td>
<td><textarea type="text" rows="25" cols="25" style="font-size: 16px" value="" id="colb" onkeyup="find_el();"></textarea></td>
<td><textarea type="text" rows="25" cols="25" style="font-size: 16px" value="" id="result"></textarea></td>
</tr>
</table><p>
<input type="checkbox" id="dictmode" value="n" onchange="toggle_mode()"> Dictionary mode
<br>
<div id="regopts">
Regex <em>a</em>: <input type="text" value="(\d\d+)" id="rea" onkeyup="find_el();">
<br>
Regex <em>b</em>: <input type="text" value="(\d\d+)" id="reb" onkeyup="find_el();">
<br>
</div>
<div id="dictopts" style="display:none">
Input delimiter: <input type="text" value="\t" id="listd" onkeyup="dict_lookup();">
<br>
Output delimiter: <input type="text" value="\t" id="outd" onkeyup="dict_lookup();">
</div>
<input type="button" id="findbtn" onclick="find_el();" value="Find elements from a in b">
<br>
<p><div id="msg" style="display:none;"> </div></p>
</center>
</body>
</html>