質問編集履歴
2
コードの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,17 +12,65 @@
|
|
12
12
|
|
13
13
|
```HTML
|
14
14
|
|
15
|
+
<!DOCTYPE HTML>
|
16
|
+
|
17
|
+
<html lang="ja">
|
18
|
+
|
19
|
+
<head>
|
20
|
+
|
21
|
+
<meta charset="utf-8" />
|
22
|
+
|
23
|
+
<!-- サイトのタイトル -->
|
24
|
+
|
25
|
+
<title>体験&スポット</title>
|
26
|
+
|
27
|
+
<!-- cssファイル -->
|
28
|
+
|
29
|
+
<link rel="stylesheet" href="giftbnbstyle.css" type="text/css"/>
|
30
|
+
|
31
|
+
<!-- jQuery本体 -->
|
32
|
+
|
33
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
34
|
+
|
35
|
+
<!-- jsファイル -->
|
36
|
+
|
37
|
+
<script type="text/javascript" src="giftbnb.js"></script>
|
38
|
+
|
39
|
+
<!-- viewport meta -->
|
40
|
+
|
41
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
42
|
+
|
43
|
+
<!-- ファビコン -->
|
44
|
+
|
45
|
+
<link rel="icon" href="img/bnbfavicon.ico">
|
46
|
+
|
47
|
+
<!-- bootstrap+jQuery+FontAwesome -->
|
48
|
+
|
49
|
+
<link rel="stylesheet" src="//normalize-css.googlecode.com/svn/trunk/normalize.css" />
|
50
|
+
|
51
|
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
|
52
|
+
|
53
|
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap-theme.min.css">
|
54
|
+
|
55
|
+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css">
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
</head>
|
60
|
+
|
61
|
+
<body>
|
62
|
+
|
63
|
+
<div class="top">
|
64
|
+
|
15
|
-
<div class="top-screen-container">
|
65
|
+
<div class="top-screen-container">
|
16
66
|
|
17
67
|
<div class="top-screen-items">
|
18
68
|
|
19
69
|
<div class="top-screen-item">
|
20
70
|
|
21
|
-
<h1 class="text-light"><strong>
|
71
|
+
<h1 class="text-light"><strong>旅をしよう。</strong></h1>
|
22
|
-
|
72
|
+
|
23
|
-
<p class="text-light">
|
73
|
+
<p class="text-light">世界をぐんと身近に</p>
|
24
|
-
|
25
|
-
<a href="#"><button class="btn btn-light">登録</button></a>
|
26
74
|
|
27
75
|
</div>
|
28
76
|
|
@@ -30,6 +78,76 @@
|
|
30
78
|
|
31
79
|
</div>
|
32
80
|
|
81
|
+
</div>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<section>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
<div class="three-steps-container text-center">
|
92
|
+
|
93
|
+
<div class="three-steps row mx-auto">
|
94
|
+
|
95
|
+
<div class="big-midashi col-md-12 col-sm-12 col-xs-12 fadein">
|
96
|
+
|
97
|
+
<h1>贈りもの</h1>
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
<div class="midashi col-md-4 col-sm-12 col-xs-12 fadein">
|
102
|
+
|
103
|
+
<i class="far fa-envelope fa-3x cyan"></i>
|
104
|
+
|
105
|
+
<h1>簡単に使える</h1>
|
106
|
+
|
107
|
+
<p>登録は超かんたん。</p>
|
108
|
+
|
109
|
+
</div>
|
110
|
+
|
111
|
+
<div class="midashi col-md-4 col-sm-12 col-xs-12 fadein">
|
112
|
+
|
113
|
+
<i class="fas fa-stopwatch fa-3x cyan"></i>
|
114
|
+
|
115
|
+
<h1>有効期限なし</h1>
|
116
|
+
|
117
|
+
<p>旅をプランできます。</p>
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div class="midashi col-md-4 col-sm-12 col-xs-12 fadein">
|
122
|
+
|
123
|
+
<i class="fas fa-globe-asia fa-3x cyan"></i>
|
124
|
+
|
125
|
+
<h1>忘れられない旅</h1>
|
126
|
+
|
127
|
+
<p>ずっと憧れていた街の暮らしも叶います。</p>
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
</div>
|
132
|
+
|
133
|
+
</div>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<!-- Optional JavaScript -->
|
138
|
+
|
139
|
+
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
140
|
+
|
141
|
+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
142
|
+
|
143
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
144
|
+
|
145
|
+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
146
|
+
|
147
|
+
</body>
|
148
|
+
|
149
|
+
</html>
|
150
|
+
|
33
151
|
```
|
34
152
|
|
35
153
|
|
@@ -72,15 +190,63 @@
|
|
72
190
|
|
73
191
|
}
|
74
192
|
|
193
|
+
|
194
|
+
|
195
|
+
/*fade系*/
|
196
|
+
|
197
|
+
.fadein {
|
198
|
+
|
199
|
+
opacity: 0;
|
200
|
+
|
201
|
+
transform : translate(0, 50px);
|
202
|
+
|
203
|
+
transition : all 1500ms;
|
204
|
+
|
205
|
+
}
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
.fadein.scrollin{
|
210
|
+
|
211
|
+
opacity: 1;
|
212
|
+
|
213
|
+
transform: translate(0, 0);
|
214
|
+
|
215
|
+
}
|
216
|
+
|
75
217
|
```
|
76
218
|
|
77
219
|
|
78
220
|
|
79
221
|
```jQuery
|
80
222
|
|
223
|
+
|
224
|
+
|
81
225
|
$(function() {
|
82
226
|
|
227
|
+
$(window).scroll(function (){
|
228
|
+
|
229
|
+
$('.fadein').each(function(){
|
230
|
+
|
231
|
+
var elemPos = $(this).offset().top,
|
232
|
+
|
233
|
+
scroll = $(window).scrollTop(),
|
234
|
+
|
235
|
+
windowHeight = $(window).height();
|
236
|
+
|
237
|
+
if (scroll > elemPos - windowHeight + 80){
|
238
|
+
|
239
|
+
$(this).addClass('scrollin');
|
240
|
+
|
241
|
+
}
|
242
|
+
|
243
|
+
});
|
244
|
+
|
245
|
+
});
|
246
|
+
|
247
|
+
|
248
|
+
|
83
|
-
|
249
|
+
$('.top-screen-container').hide().fadeIn();
|
84
250
|
|
85
251
|
|
86
252
|
|
1
クロームのコンソールに表示されたエラーメッセージの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -90,6 +90,34 @@
|
|
90
90
|
|
91
91
|
|
92
92
|
|
93
|
+
```error
|
94
|
+
|
95
|
+
jquery.min.js:2 jQuery.Deferred exception: $(...).hide(...).fadeIn is not a function TypeError: $(...).hide(...).fadeIn is not a function
|
96
|
+
|
97
|
+
at HTMLDocument.<anonymous> (http://127.0.0.1:5500/giftbnb.js:14:39)
|
98
|
+
|
99
|
+
at e (https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js:2:29453)
|
100
|
+
|
101
|
+
at t (https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js:2:29755) undefined
|
102
|
+
|
103
|
+
k.Deferred.exceptionHook @ jquery.min.js:2
|
104
|
+
|
105
|
+
jquery.min.js:2 Uncaught TypeError: $(...).hide(...).fadeIn is not a function
|
106
|
+
|
107
|
+
at HTMLDocument.<anonymous> (giftbnb.js:14)
|
108
|
+
|
109
|
+
at e (jquery.min.js:2)
|
110
|
+
|
111
|
+
at t (jquery.min.js:2)
|
112
|
+
|
113
|
+
bootstrap-theme.min.css:1 Failed to load resource: the server responded with a status of 403 ()
|
114
|
+
|
115
|
+
```
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
93
121
|
### 試したこと
|
94
122
|
|
95
123
|
|