-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (66 loc) · 2.28 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!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 rel="stylesheet" href="input.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
/>
<title>Document</title>
</head>
<body class="bg-gray-700">
<div class="h-screen">
<!-- main div -->
<main class="px-6 bg-[#D9D9D9] h-4/5 flex flex-col">
<div class="flex">
<p class="text-9xl">3</p>
<p class="mt-24 font-medium">min read</p>
</div>
<div class="py-6 grow font-semibold text-gray-600">
<textarea
class="bg-[#D9D9D9] placeholder:text-gray-600"
name="text"
placeholder=" Your long text goes here"
onkeyup="updateCount()"
></textarea>
</div>
<div class="py-4 flex justify-between items-center">
<button onclick="clean()">
<i class="fa-solid fa-xmark text-3xl"></i>
</button>
<button
class="text-white bg-black px-6 h-7 text-sm rounded-md"
onclick="whitespace()"
>
remove white space
</button>
<button onclick="copy()">
<i class="fa-solid fa-copy text-2xl" style="color: #000000"></i>
</button>
</div>
</main>
<!-- footer -->
<footer class="px-6 bg-[#FFFFFF] h-1/5">
<div class="flex justify-between h-20 items-center">
<p class="text-sm">
<span class="text-2xl" id="words"> 0 </span> <br />
<span class="text-gray-600"> word </span>
</p>
<p class="text-sm text-right">
<span class="text-2xl" id="characters"> 0 </span> <br />
<span class="text-gray-600"> character</span>
</p>
</div>
<div class="flex justify-between h-16 font-semibold items-end">
<button onclick="titlecase()">Titlecase</button>
<button onclick="uppercase()">UPPERCASE</button>
<button onclick="lowercase()">lowercase</button>
</div>
</footer>
</div>
</body>
<script src="index.js"></script>
</html>