-
Notifications
You must be signed in to change notification settings - Fork 681
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (39 loc) · 1.67 KB
/
index.html
File metadata and controls
41 lines (39 loc) · 1.67 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
<!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>Save Text As File</title>
<link rel="stylesheet" href="style.css">
<script src="https://unpkg.com/pdf-lib@1.4.0/dist/pdf-lib.min.js"></script>
</head>
<body>
<div class="wrapper">
<textarea required placeholder="Enter your text here"></textarea>
<div class="file-options">
<div class="option file-name">
<label>File Name</label>
<input type="text" placeholder="Enter file name">
</div>
<div class="option save-as">
<label>Save as</label>
<div class="select-menu">
<select>
<option value="text/plain">Text File (.txt)</option>
<option value="text/html">HTML File (.html)</option>
<option value="text/css">CSS (.css)</option>
<option value="text/javascript">JavaScript (.js)</option>
<option value="image/svg+xml">SVG (.svg)</option>
<option value="application/msword">Doc (.doc)</option>
<option value="application/pdf">PDF (.pdf)</option>
<option value="application/vnd.ms-powerpoint">PPT (.ppt)</option>
</select>
</div>
</div>
</div>
<button class="save-btn">Save as Text File</button>
</div>
<script src="script.js"></script>
</body>
</html>