-
Notifications
You must be signed in to change notification settings - Fork 0
/
text.html
65 lines (62 loc) · 2.42 KB
/
text.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Text Editor</title>
<link rel="stylesheet" href="edit.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
</head>
<body>
<div class="section">
<div class="row">
<div class="col">
<div class="first box">
<input type="number"
id="font-size"
min="1"
max="100"
value="16"
onchange="f1(this)">
</div>
<div class="second box">
<button type="button"onclick="f2(this)">
<i class="fa-solid fa-bold"></i>
</button>
<button type="button"onclick="f3(this)">
<i class="fa-solid fa-italic"></i>
</button>
<button type="button"onclick="f4(this)">
<i class="fa-solid fa-underline"></i>
</button>
</div>
<div class="third box">
<button type="button"onclick="f5(this)">
<i class="fa-solid fa-align-left"></i>
</button>
<button type="button"onclick="f6(this)">
<i class="fa-solid fa-align-center"></i>
</button>
<button type="button"onclick="f7(this)">
<i class="fa-solid fa-align-right"></i>
</button>
</div>
<div class="fourth box">
<button type="button"onclick="f8(this)">
aA
</button>
<button type="button"onclick="f8(this)">
<i class="fa-solid fa-text-slash"></i>
</button>
<input type="color" onchange="f10(this)">
</div>
</div>
<br>
<div class="col">
<textarea id="textarea" placeholder="Your text here"></textarea>
</div>
</div>
</div>
<script src="edit.js"></script>
</body>
</html>