Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (58 loc) · 2.34 KB
/
Copy pathindex.html
File metadata and controls
59 lines (58 loc) · 2.34 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
<!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" />
<title>TextEdit</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Semantic tag for the overlay -->
<front>
<div class="container">
<div class="positionBox">
<h1>Text Editor</h1>
<div id="splitBox">
<div id="create">
<h2 id="createFile" class="dropDownTitle">
Create New File ↓
</h2>
<div id="hiddenCreateOptions" class="dropDown">
<label for="fileName">File Name ↓ </label>
<input type="text" id="fileName" /><br />
<input type="submit" id="submitBtnCreate" />
<!-- insert file type here -->
</div>
</div>
<div id="editFile">
<h2 id="editFile" class="dropDownTitle">
Edit A File ↓
</h2>
<div id="hiddenEditOptions" class="dropDown">
<label for="existingFile"
>Upload .txt file ↓</label
>
<input
type="file"
id="existingFile"
accept=".txt, .md"
/>
</div>
</div>
</div>
</div>
</div>
</front>
<!-- main text editor code -->
<main>
<h1 id="dynamicTitle">Title</h1>
<div id="textEditor">
<textarea id="lineCounter" wrap="off" readonly></textarea>
<textarea id="textArea"></textarea>
</div>
<a id="saveButton">Save To Disk!</a>
</main>
<script src="./main.js"></script>
</body>
</html>