質問編集履歴
4
openning.js追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -405,3 +405,49 @@
|
|
405
405
|
|
406
406
|
|
407
407
|
htmlの書き方に問題があったりしますでしょうか?
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
### 追記2
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
```openning.js
|
416
|
+
|
417
|
+
$(function () {
|
418
|
+
|
419
|
+
setTimeout(function () {
|
420
|
+
|
421
|
+
$('.open').fadeOut();
|
422
|
+
|
423
|
+
}, 1500);
|
424
|
+
|
425
|
+
});
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
$(function () {
|
430
|
+
|
431
|
+
$("#out").css({
|
432
|
+
|
433
|
+
opacity: '1'
|
434
|
+
|
435
|
+
});
|
436
|
+
|
437
|
+
setTimeout(function () {
|
438
|
+
|
439
|
+
$("#out").css("display", "block");
|
440
|
+
|
441
|
+
$("#out").stop().animate({
|
442
|
+
|
443
|
+
opacity: '1'
|
444
|
+
|
445
|
+
}, 1000);
|
446
|
+
|
447
|
+
}, 1800);
|
448
|
+
|
449
|
+
});
|
450
|
+
|
451
|
+
```
|
452
|
+
|
453
|
+
こちら消すとボタンが表示されるようになりました。
|
3
jquery削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -388,9 +388,7 @@
|
|
388
388
|
|
389
389
|
|
390
390
|
|
391
|
-
<script type="text/javascript" src="http://
|
392
|
-
|
393
|
-
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
|
391
|
+
<script type="text/javascript" >src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
|
394
392
|
|
395
393
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
|
396
394
|
|
2
html全体を追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -137,3 +137,273 @@
|
|
137
137
|
その後、こちらのjsが反応しているか確認するため、pagetop.hide();のhideを削除してみたところボタンが表示されました。
|
138
138
|
|
139
139
|
jsは問題なく動いているかと思います。
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
### 追記(コード全体)
|
144
|
+
|
145
|
+
```html
|
146
|
+
|
147
|
+
<!DOCTYPE html>
|
148
|
+
|
149
|
+
<html lang="ja">
|
150
|
+
|
151
|
+
<head>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
<meta charset="UTF-8">
|
156
|
+
|
157
|
+
<title>Portfolio</title>
|
158
|
+
|
159
|
+
<link rel="stylesheet" href="css/style.css">
|
160
|
+
|
161
|
+
<link rel="stylesheet" href="css/normalize.css">
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
|
166
|
+
|
167
|
+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
<link rel="preconnect" href="https://fonts.gstatic.com">
|
172
|
+
|
173
|
+
<link href="https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap" rel="stylesheet">
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
|
178
|
+
|
179
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0,viewport-fit=cover">
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<link rel="icon" type="image/x-icon" href="img/logo.png">
|
184
|
+
|
185
|
+
</head>
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<body>
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
<!-- openning -->
|
194
|
+
|
195
|
+
<div class="open">
|
196
|
+
|
197
|
+
<img src="img/cloud.gif"/>
|
198
|
+
|
199
|
+
</div>
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
<!-- out -->
|
204
|
+
|
205
|
+
<div id="out">
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
<p class="pagetop" ontouchstart=""><a href="#mv">▲</a></p>
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
<!-- scroll area -->
|
214
|
+
|
215
|
+
<section class="area">
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
<!-- top -->
|
220
|
+
|
221
|
+
<div id="mv">
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
<!-- header -->
|
226
|
+
|
227
|
+
<header>
|
228
|
+
|
229
|
+
<div id="head-box">
|
230
|
+
|
231
|
+
<div id="head-color"></div>
|
232
|
+
|
233
|
+
<a href="index.html"><img src="img/logo.png" alt=""></a>
|
234
|
+
|
235
|
+
<p id="h-p"><ruby>和<rt>wa</rt></ruby>rtfolio</p>
|
236
|
+
|
237
|
+
</div>
|
238
|
+
|
239
|
+
</header>
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
<div class="sisi-box">
|
244
|
+
|
245
|
+
<img src="img/sisi.png" alt="唐獅子" id="sisi">
|
246
|
+
|
247
|
+
</div>
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
<div class="swirl-box">
|
252
|
+
|
253
|
+
<img src="img/ swirl.png" alt="" id="swirl1">
|
254
|
+
|
255
|
+
<img src="img/ swirlh.png" alt="" id="swirlh1">
|
256
|
+
|
257
|
+
<img src="img/ swirl.png" alt="" id="swirl2">
|
258
|
+
|
259
|
+
<img src="img/ swirlh.png" alt="" id="swirlh2">
|
260
|
+
|
261
|
+
<img src="img/ swirl.png" alt="" id="swirl3">
|
262
|
+
|
263
|
+
<img src="img/ swirl.png" alt="" id="swirl4">
|
264
|
+
|
265
|
+
<img src="img/ swirlh.png" alt="" id="swirlh4">
|
266
|
+
|
267
|
+
<img src="img/ swirl.png" alt="" id="swirl5">
|
268
|
+
|
269
|
+
<img src="img/ swirlh.png" alt="" id="swirlh5">
|
270
|
+
|
271
|
+
<img src="img/ swirl.png" alt="" id="swirl6">
|
272
|
+
|
273
|
+
</div>
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
<ul id="nav-box">
|
278
|
+
|
279
|
+
<a href="works.html#window" id="work"><li class="fadein nav1">WORK</li></a>
|
280
|
+
|
281
|
+
<a href="profile.html#window" id="profile"><li class="fadein nav2">PROFILE</li></a>
|
282
|
+
|
283
|
+
<a href="contact.html#window" id="contact"><li class="fadein nav3">CONTACT</li></a>
|
284
|
+
|
285
|
+
</ul>
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
<div id="lant-box">
|
290
|
+
|
291
|
+
<a href="index.html"><img src="img/lantern.png" alt="" id="lant"></a>
|
292
|
+
|
293
|
+
</div>
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
</div>
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
</section>
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
<!-- scroll area -->
|
306
|
+
|
307
|
+
<section class="area">
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
<!-- window -->
|
312
|
+
|
313
|
+
<div id="window">
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
<!-- middle -->
|
318
|
+
|
319
|
+
<div id="middle">
|
320
|
+
|
321
|
+
<div id="rm-box"></div>
|
322
|
+
|
323
|
+
</div>
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
<div class="content" id="content" ontouchstart="">
|
328
|
+
|
329
|
+
<div class="room-box">
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
<!-- magatama -->
|
334
|
+
|
335
|
+
<div id="mt-box" ontouchstart="">
|
336
|
+
|
337
|
+
<img src="img/magatama.png" usemap="#ImageMap" alt="" id="mt">
|
338
|
+
|
339
|
+
<map name="ImageMap">
|
340
|
+
|
341
|
+
<area id="maga1" shape="poly" coords="114,34,127,27,146,24,161,25,177,28,193,33,216,45,231,57,246,71,257,90,268,115,274,135,275,150,275,161,274,171,273,179,267,166,264,156,258,147,252,140,242,132,236,128,215,121,197,122,188,125,174,128,152,136,141,136,130,133,124,132,117,129,109,122,101,111,94,99,92,85,92,76,94,66,99,52,106,43,110,38,114,36,114,36" alt="緑" />
|
342
|
+
|
343
|
+
<area id="maga2" shape="poly" coords="63,245,68,249,73,253,83,259,95,265,110,270,122,273,138,276,152,277,161,277,173,275,184,273,202,267,214,260,225,253,232,245,243,237,249,230,257,217,261,210,266,196,268,185,265,168,262,159,257,152,252,146,240,137,230,132,216,129,203,128,195,130,186,132,176,138,171,142,167,148,162,154,159,161,156,170,154,181,152,189,149,199,147,206,144,214,141,221,133,230,128,234,120,239,112,243,99,247,92,247,81,247,74,246,69,246,64,244,83,247" alt="黄色" />
|
344
|
+
|
345
|
+
<area id="maga3" shape="poly" coords="106,34,98,35,91,38,85,41,79,45,75,48,69,53,63,57,61,59,57,62,52,71,47,76,45,78,36,92,34,101,32,104,28,116,25,125,24,136,22,149,23,160,24,167,25,177,27,184,28,189,32,201,37,211,40,216,44,224,48,227,54,232,61,236,67,238,78,241,90,242,102,241,109,238,114,235,119,232,123,229,126,226,132,221,136,215,141,207,144,198,144,192,146,187,144,176,145,203,146,184,143,170,139,164,137,159,130,149,123,142,119,140,111,132,108,129,105,125,96,117,92,109,89,99,87,86,89,70,90,63,92,58,93,54,96,49,98,44,101,41,104,36,104,36" alt="赤" />
|
346
|
+
|
347
|
+
</map>
|
348
|
+
|
349
|
+
</div>
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
<p class='navT'>勾玉をクリックしてください</p>
|
356
|
+
|
357
|
+
<!-- door -->
|
358
|
+
|
359
|
+
<div class="left"><a href="javascript:cL();"></a></div>
|
360
|
+
|
361
|
+
<div class="right"><a href="javascript:cR();"></a></div>
|
362
|
+
|
363
|
+
</div>
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
</div>
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
</div>
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
</section>
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
</div>
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
<script src="javascript/jquery.js"></script>
|
384
|
+
|
385
|
+
<script src="javascript/pagetop.js"></script>
|
386
|
+
|
387
|
+
<script src="javascript/openning.js"></script>
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
|
392
|
+
|
393
|
+
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
|
394
|
+
|
395
|
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
</body>
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
</html>
|
404
|
+
|
405
|
+
```
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
htmlの書き方に問題があったりしますでしょうか?
|
1
IE-9を削除いたしました
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,8 +48,6 @@
|
|
48
48
|
|
49
49
|
padding:3px 10px;
|
50
50
|
|
51
|
-
filter:alpha(opacity=50);
|
52
|
-
|
53
51
|
opacity: 0.8;
|
54
52
|
|
55
53
|
transition: all 0.4s;
|
@@ -73,8 +71,6 @@
|
|
73
71
|
text-decoration: none;
|
74
72
|
|
75
73
|
padding:3px 10px;
|
76
|
-
|
77
|
-
filter:alpha(opacity=50);
|
78
74
|
|
79
75
|
opacity: 0.8;
|
80
76
|
|