-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
69 lines (68 loc) · 2.42 KB
/
index.html
File metadata and controls
69 lines (68 loc) · 2.42 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Text Editor</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<a id="git" href="https://github.com/SmCTwelve/texteditor">
<img src="./img/GitHub-Mark-120px-plus.png" alt="source">
<p>SmCTwelve</p>
</a>
<!-- Editor -->
<main class="editor-container">
<!-- Toolbar -->
<div class="toolbar">
<!-- Clear editor and storage -->
<button id="new">Clear</button>
<div class="font-area">
<!-- Font size -->
<select id="fontsize">
<option value="10px">10</option>
<option value="11px">11</option>
<option value="12px">12</option>
<option value="14px">14</option>
<option value="16px">16</option>
<option value="18px" selected>18</option>
<option value="24px">24</option>
<option value="32px">32</option>
<option value="48px">48</option>
<option value="72px">72</option>
</select>
<!-- Font family -->
<select name="font" id="font">
<option value="Arial, sans-serif" class="arial" selected>Arial</option>
<option value="Georgia, serif" class="georgia">Georgia</option>
<option value="monospace" class="mono">Monospace</option>
</select>
<!-- Color -->
<input type="color" id="color" value="#000" />
</div>
<!-- Bold, italic, underline -->
<div class="styling-area">
<button id="bold" data-command="bold">B</button>
<button id="italic" data-command="italic">I</button>
<button id="underline" data-command="underline">U</button>
</div>
<!-- Text alignment -->
<div class="align-area">
<button id="left" data-command="justifyLeft">Left</button>
<button id="center" data-command="justifyCenter">Center</button>
<button id="right" data-command="justifyRight">Right</button>
<button id="justify" data-command="justifyFull">Justify</button>
</div>
</div>
<!-- input area -->
<div id="input-container">
<div class="input-area">
<div class="heading" contenteditable="true"></div>
<div class="content" contenteditable="true"></div>
</div>
</div>
</main>
<script src="app.js"></script>
</body>
</html>