-
Notifications
You must be signed in to change notification settings - Fork 47
/
textInput.html
52 lines (51 loc) · 1.19 KB
/
textInput.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
<!DOCTYPE html>
<html>
<head>
<title>Text Input</title>
<style>
body {
margin: 0;
padding: 10px;
background-color: rgba(
255,
255,
255,
0.8
); /* Semi-transparent background */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-family: Arial, sans-serif;
position: relative; /* Added for positioning the close button */
}
#textInput {
padding: 5px;
width: 80%;
height: 50px; /* Adjust the height for two rows */
margin-bottom: 10px;
resize: none; /* Prevent resizing */
}
#closeBtn {
position: absolute;
top: 5px;
right: 5px;
border: none;
background: transparent;
font-size: 20px;
cursor: pointer;
}
</style>
</head>
<body>
<button id="closeBtn" title="Close">×</button>
<!-- Close button -->
<textarea
id="textInput"
rows="2"
placeholder="Type your question and hit enter"
autofocus
></textarea>
<script src="textInputRenderer.js"></script>
</body>
</html>