-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (65 loc) · 2.76 KB
/
index.html
File metadata and controls
68 lines (65 loc) · 2.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="style.css" />
<title>Doc Editor</title>
</head>
<body>
<div class="container">
<h4 id="title">Doc Editor</h4>
<div class="controls">
<div class="main-controls">
<div class="dropdown">
<button
class="btn btn-primary dropdown-toggle"
data-bs-toggle="dropdown"
>
File
</button>
<div class="dropdown-menu">
<button id="new-btn" class="dropdown-item">
New
</button>
<button id="txt-btn" class="dropdown-item">
Save as TXT
</button>
<button id="pdf-btn" class="dropdown-item">
Save as PDF
</button>
</div>
</div>
<input id="filename-input" type="text" value="untitled" />
</div>
<div class="control-btn-container">
<button id="bold-btn" class="btn btn-dark control-btn">
b
</button>
<button id="underline-btn" class="btn btn-dark control-btn">
u
</button>
<button id="italic-btn" class="btn btn-dark control-btn">
i
</button>
<input id="color-btn" type="color" class="control-btn" />
</div>
</div>
<div id="content" contenteditable="true" spellcheck="false"></div>
</div>
<script src="htmltopdf.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4"
crossorigin="anonymous"
></script>
<script src="script.js"></script>
</body>
</html>