-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (54 loc) · 3.44 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Text Editor</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap" rel="stylesheet"
</head>
<body>
<div class="container">
<div class="options">
<select id="fontName" class="adv-option-button"></select>
<select id="fontSize" class="adv-option-button"></select>
<button id="bold" class="option-button format" ><i class="fa-sharp fa-solid fa-bold"></i></button>
<button id="italic" class="option-button format"><i class="fa-sharp fa-solid fa-italic"></i></button>
<button id="underline" class="option-button format"><i class="fa-sharp fa-solid fa-underline"></i></button>
<button id="strikethrough" class="option-button format"><i class="fa-sharp fa-solid fa-strikethrough"></i></button>
<button id="superscript" class="option-button script"><i class="fa-sharp fa-solid fa-superscript"></i></button>
<button id="subscript" class="option-button script"><i class="fa-sharp fa-solid fa-subscript"></i></button>
<button id="smallcaps" class="option-button smallcaps" onclick="f1(this)">Aa</i></button>
<!--list-->
<button id="insertOrderedList" class="option-button"><i class="fa-solid fa-list-ol"></i></button>
<button id="insertUnorderedList" class="option-button"><i class="fa-solid fa-list-ul"></i></button>
<!--undo/redo-->
<button id="undo" class="option-button"><i class="fa-solid fa-rotate-left"></i></button>
<button id="redo" class="option-button"><i class="fa-solid fa-rotate-right"></i></button>
<button id="createLink" class="adv-option-button"><i class="fa-solid fa-link"></i></button>
<button id="unlink" class="option-button"><i class="fa-solid fa-unlink"></i></button>
<button id="justifyLeft" class="option-button align"><i class="fa-solid fa-align-left"></i></button>
<button id="justifyCenter" class="option-button align"><i class="fa-solid fa-align-center"></i></button>
<button id="justifyRight" class="option-button align"><i class="fa-solid fa-align-right"></i></button>
<button id="justifyFull" class="option-button align"><i class="fa-solid fa-align-justify"></i></button>
<button id="outdent" class="option-button spacing"><i class="fa-solid fa-outdent"></i></button>
<button id="indent" class="option-button spacing"><i class="fa-solid fa-indent"></i></button>
<button id="show-code" class="option-button" data-active="false" onclick="f2(this)"></></button>
<div class="input-wrapper">
<input type="color" id="foreColor" class="adv-option-button" />
<label for="foreColor">Font Color</label>
</div><!--input wrapper class div-->
<div class="input-wrapper">
<input type="color" id="backColor" class="adv-option-button" />
<label for="backColor">Highlight Color</label>
</div><!--input wrapper class div-->
</div><!--options end-->
<div id="text-input" contenteditable="true" spellcheck="false"></div>
</div>
</div><!--container end-->
<script src="js/script.js"></script>
</body>
</html>