-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
85 lines (71 loc) · 3.1 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" />
<title>Text Editor App</title>
</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="18" 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="f9(this)">
<i class="fa-solid fa-text-slash"></i>
</button>
<input type="color" onchange="f10(this)">
<label for="font-family">Choose a Font: </label>
<select name="font-family" id="font-family" onchange="f11(this)">
<option value="serif">Serif</option>
<option value="Arial">Arial</option>
<option value="Poppins">Poppins</option>
<option value="Courier">Courier</option>
<option value="monospace">Monospace</option>
<option value="Verdana">Verdana</option>
</select>
</div>
</div>
<br>
<div class="col">
<textarea id="textarea" placeholder="Write here ..."></textarea>
<div class="download">
<input placeholder="Specify a filename" id="filename" autocomplete="off">
<button id="button"> Download File </button>
<button type="button" id="save">Save this text</button>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>