-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (37 loc) · 1.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="./img/text.png" type="image/x-icon" />
<title>Not That Rich Text Editor</title>
<link href="https://fonts.googleapis.com/css?family=Chivo|Poiret+One&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/90c8a9ba9a.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<div class="container">
<section>
<h1 class="title">Welcome to Not That Rich Text Editor</h1>
<p class="secondary">Type and edit your text on the editor below!</p>
</section>
<main class="text-editor">
<section class="menu">
<div>
<button onclick="toggleCommand('bold')"><i class="fas fa-bold"></i></button>
<button onclick="toggleCommand('italic')"><i class="fas fa-italic"></i></button>
<button onclick="toggleCommand('underline')"><i class="fas fa-underline"></i></button>
<button onclick="toggleCommand('insertUnorderedList')"><i class="fas fa-list-ul"></i></button>
</div>
</section>
<div contenteditable="true" id="text-area"></div>
</main>
</div>
<footer class="footer">
<p>
Coded by <a href="https://github.com/eloisasmorais">Eloisa Morais</a>
</p>
</footer>
<script src="./js/script.js"></script>
</body>
</html>