質問編集履歴
1
【追記】デバックの結果を追記 エラーメッセージを修正 htmlを削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,7 +26,9 @@
|
|
26
26
|
|
27
27
|
エラーメッセージ
|
28
28
|
|
29
|
-
|
29
|
+

|
30
|
+
|
31
|
+
|
30
32
|
|
31
33
|
|
32
34
|
|
@@ -38,248 +40,30 @@
|
|
38
40
|
|
39
41
|
わからないのでご教示いただきたい。
|
40
42
|
|
43
|
+
※('a[href^="#"]')に書き換えてみましたが相変らず。。
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
デバックしてみました。
|
48
|
+
|
49
|
+

|
50
|
+
|
51
|
+
step in to next functionを押すとjQuery.jsに飛びます。
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
clickメソッド内にブレークポイントを付けてみました。
|
56
|
+
|
57
|
+

|
58
|
+
|
59
|
+
動作は止まることなく処理されました。
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
click.functionの中に入らずに処理が終わるため
|
64
|
+
|
65
|
+
id を取得できずに終わるということでしょうか?
|
66
|
+
|
41
67
|
|
42
68
|
|
43
69
|
以上、よろしくお願いいたします。
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
```html
|
48
|
-
|
49
|
-
<!DOCTYPE html>
|
50
|
-
|
51
|
-
<html>
|
52
|
-
|
53
|
-
<head>
|
54
|
-
|
55
|
-
<meta charset="utf-8">
|
56
|
-
|
57
|
-
<title>munchkin</title>
|
58
|
-
|
59
|
-
<link rel="stylesheet" href="stylesheet.css">
|
60
|
-
|
61
|
-
<link rel="stylesheet" href="responsive.css">
|
62
|
-
|
63
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
64
|
-
|
65
|
-
<!-- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> -->
|
66
|
-
|
67
|
-
<link href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" rel="stylesheet">
|
68
|
-
|
69
|
-
<script src= "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
</head>
|
74
|
-
|
75
|
-
<body>
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<!-- ヘッダー -->
|
80
|
-
|
81
|
-
<header>
|
82
|
-
|
83
|
-
<div class="container">
|
84
|
-
|
85
|
-
<div class="header-left">
|
86
|
-
|
87
|
-
<img src="./img/logo.png">
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
<img class="responsive-log" src="./img/logo-1.png">
|
92
|
-
|
93
|
-
<div class="header-right">
|
94
|
-
|
95
|
-
<div id="nav">
|
96
|
-
|
97
|
-
<ul>
|
98
|
-
|
99
|
-
<li><a href="#skill">Skill</a></li>
|
100
|
-
|
101
|
-
<li><a href="#about">About</a></li>
|
102
|
-
|
103
|
-
<li><a href="#contact">Contact</a></li>
|
104
|
-
|
105
|
-
</ul>
|
106
|
-
|
107
|
-
</div>
|
108
|
-
|
109
|
-
<div class="navToggle">
|
110
|
-
|
111
|
-
<span></span><span></span><span></span>
|
112
|
-
|
113
|
-
</div>
|
114
|
-
|
115
|
-
<nav class="globalMenuSp">
|
116
|
-
|
117
|
-
<ul>
|
118
|
-
|
119
|
-
<li><a href="#skill">Skill</a></li>
|
120
|
-
|
121
|
-
<li><a href="#about">About</a></li>
|
122
|
-
|
123
|
-
<li><a href="#contact">Contact</a></li>
|
124
|
-
|
125
|
-
<!-- <li><a href="#">Menu4</a></li>
|
126
|
-
|
127
|
-
<li><a href="#">Menu5</a></li> -->
|
128
|
-
|
129
|
-
</ul>
|
130
|
-
|
131
|
-
</nav>
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
</header>
|
136
|
-
|
137
|
-
<!--猫ちゃん画像 幅100% -->
|
138
|
-
|
139
|
-
<div class="top-warpper">
|
140
|
-
|
141
|
-
<img src="./img/cat-1.png" alt="" >
|
142
|
-
|
143
|
-
</div>
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
<!-- Skills -->
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
<div id="#skill" class="Skillwarpper">
|
152
|
-
|
153
|
-
<div class="heading">
|
154
|
-
|
155
|
-
<h3>Skill</h3>
|
156
|
-
|
157
|
-
</div>
|
158
|
-
|
159
|
-
<div class="message-warpper">
|
160
|
-
|
161
|
-
<div class="message1">
|
162
|
-
|
163
|
-
<img class="img1" src="./img/cat-2.png">
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
<p class="p1">We sleep whenever we want. We sleep wherever we want. All places can be our beds.
|
168
|
-
|
169
|
-
We sleep whenever we want. We sleep wherever we want. All places can be our beds.
|
170
|
-
|
171
|
-
We sleep whenever we want. We sleep wherever we want. All places can be our beds.</p>
|
172
|
-
|
173
|
-
</div>
|
174
|
-
|
175
|
-
<div class="message2">
|
176
|
-
|
177
|
-
<p class="p2">We sleep whenever we want. We sleep wherever we want. All places can be our beds.
|
178
|
-
|
179
|
-
We sleep whenever we want. We sleep wherever we want. All places can be our beds.
|
180
|
-
|
181
|
-
We sleep whenever we want. We sleep wherever we want. All places can be our beds.</p>
|
182
|
-
|
183
|
-
<div>
|
184
|
-
|
185
|
-
<img class="img1" src="./img/cat-3.png">
|
186
|
-
|
187
|
-
</div>
|
188
|
-
|
189
|
-
</div>
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
</div>
|
194
|
-
|
195
|
-
</div>
|
196
|
-
|
197
|
-
<!-- About -->
|
198
|
-
|
199
|
-
<div id="#about" class="Aboutwarpper">
|
200
|
-
|
201
|
-
<div class="heading">
|
202
|
-
|
203
|
-
<h3>About</h3>
|
204
|
-
|
205
|
-
</div>
|
206
|
-
|
207
|
-
<div class="about-images">
|
208
|
-
|
209
|
-
<div class="about-img">
|
210
|
-
|
211
|
-
<img src="./img/cat-4.png" alt="">
|
212
|
-
|
213
|
-
<p>We are cute. There is no doubt about this. <br>
|
214
|
-
|
215
|
-
Nobody can’t object to this fact.</p>
|
216
|
-
|
217
|
-
</div>
|
218
|
-
|
219
|
-
<div class="about-img">
|
220
|
-
|
221
|
-
<img src="./img/cat-5.png" alt="">
|
222
|
-
|
223
|
-
<p>We are cute. There is no doubt about this. <br>
|
224
|
-
|
225
|
-
Nobody can’t object to this fact.</p>
|
226
|
-
|
227
|
-
</div>
|
228
|
-
|
229
|
-
<div class="clear"></div>
|
230
|
-
|
231
|
-
<div class="btn-warpper"> <a href="#" class="btn">MORE</a></div>
|
232
|
-
|
233
|
-
</div>
|
234
|
-
|
235
|
-
</div>
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
<!-- Contact -->
|
240
|
-
|
241
|
-
<div id="#contact" class="contactwarpper">
|
242
|
-
|
243
|
-
<div class="heading">
|
244
|
-
|
245
|
-
<h3>Contact</h3>
|
246
|
-
|
247
|
-
</div>
|
248
|
-
|
249
|
-
<div class="contacts">
|
250
|
-
|
251
|
-
<div class="contact-img">
|
252
|
-
|
253
|
-
<img src="./img/マスクグループ 1.png">
|
254
|
-
|
255
|
-
</div>
|
256
|
-
|
257
|
-
<div class="contact-message">
|
258
|
-
|
259
|
-
<p>You can come to see me.</p>
|
260
|
-
|
261
|
-
<div class="btn2-warpper"> <a href="#" class="btn">MAP</a></div>
|
262
|
-
|
263
|
-
</div>
|
264
|
-
|
265
|
-
</div>
|
266
|
-
|
267
|
-
</div>
|
268
|
-
|
269
|
-
<footer>
|
270
|
-
|
271
|
-
<div class="footer-warpper">
|
272
|
-
|
273
|
-
<p>We are munchkin</p>
|
274
|
-
|
275
|
-
</div>
|
276
|
-
|
277
|
-
</footer>
|
278
|
-
|
279
|
-
<script src="script.js"></script>
|
280
|
-
|
281
|
-
</body>
|
282
|
-
|
283
|
-
</html>
|
284
|
-
|
285
|
-
```
|