-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (27 loc) · 985 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>Character Entity Number Conversion</title>
<link rel="stylesheet" type="text/css" href="style.css"></link>
</head>
<body >
<center>
<div class="pageName">
Characters to Entity Number Conversion for HTML
</div>
</center>
<center>
<div class="mainDiv">
<select class="option" id="option">
<option value="HTML"> Encode for HTML </option>
<option value="letters"> Encode letters </option>
</select>
<textarea onkeydown="if(event.keyCode===9){var v=this.value,s=this.selectionStart,e=this.selectionEnd;this.value=v.substring(0, s)+'\t'+v.substring(e);this.selectionStart=this.selectionEnd=s+1;return false;}" id="text" placeholder="Enter text here" class="input text"></textarea>
<br>
<br>
<button class="process" id="process" onclick="replaceAll()">Process text</button>
</div>
</center>
<script src="background.js"></script>
</body>
</html>