質問編集履歴
1
htmlの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,51 @@
|
|
1
|
+
```<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html lang = "ja">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
|
7
|
+
<meta charset = "utf-8">
|
8
|
+
|
9
|
+
<link rel = "stylesheet" href = "main.css">
|
10
|
+
|
11
|
+
</head>
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
<body>
|
16
|
+
|
17
|
+
<div class = "square">
|
18
|
+
|
19
|
+
<div class = "circles">
|
20
|
+
|
21
|
+
<div class = "circle-1"></div>
|
22
|
+
|
23
|
+
<div class = "circle-2"></div>
|
24
|
+
|
25
|
+
<div class = "circle-3"></div>
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
</div>
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
<button type = "button" class = "my-button">ボタン</button>
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
|
38
|
+
|
39
|
+
<script src="main.js"></script>
|
40
|
+
|
41
|
+
</body>
|
42
|
+
|
43
|
+
</html>
|
44
|
+
|
45
|
+
コード
|
46
|
+
|
47
|
+
```
|
48
|
+
|
1
49
|
```$(function() {
|
2
50
|
|
3
51
|
$(".my-button").on("click", function() {
|