-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
char_count_controller.html
35 lines (35 loc) · 1.02 KB
/
char_count_controller.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<link rel="icon" type="image/svg+xml" href="favicon.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Char Count Controller</title>
</head>
<body>
<div class="container p-4 text-center">
<div
data-controller="char-count"
data-char-count-min-value="250"
data-char-count-max-value="1000"
data-char-count-error-class="error"
>
<label class="form-label">
What is your quest? We suggest at least 250 chars, but no more than
1000 chars.
</label>
<textarea
class="form-control"
name="quest"
data-controller="autosize"
data-char-count-target="input"
></textarea>
<div class="text-right">
<span data-char-count-target="output"></span>
<span>/1000</span>
</div>
</div>
</div>
<script type="module" src="/main.js"></script>
</body>
</html>