-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (59 loc) · 2 KB
/
index.html
File metadata and controls
62 lines (59 loc) · 2 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
60
61
62
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>テキストカウンター</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<link
href="https://fonts.googleapis.com/css?family=M+PLUS+1p"
rel="stylesheet"
/>
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<!-- 文字数カウントアプリ -->
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="font desc">テキストカウンター</h1>
<p>リアルタイムで文字数がカウントされます</p>
<div class="wrap-area">
<p>
<textarea
class="form-control"
id="textarea"
rows="10"
cols="50"
placeholder="ここにテキストを入力してください"
></textarea>
</p>
<p class="font bigger">現在:<span id="count1"></span>文字</p>
</div>
</div>
</div>
<!-- 文字数カウントダウンテキストボックス -->
<div class="form-group">
<label class="font">文字数カウントダウン 文字数を設定してね。</label>
<p>
<span id="count"><input type="text" id="word" /></span>文字
</p>
<button id="btn" class="btn btn-info" type="button">
文字数を設定
</button>
<textarea
class="form-control"
rows="5"
onkeyup="count_down(this);"
></textarea>
<span id="count2" class="float-right"></span>
<span id="limit" class="font"></span>文字
</div>
</div>
<script src="./build/app.js"></script>
</body>
</html>