質問編集履歴

5

解決しましたので、コードを整理しました

2020/06/11 12:10

投稿

osarusam
osarusam

スコア18

test CHANGED
File without changes
test CHANGED
@@ -72,6 +72,8 @@
72
72
 
73
73
  <body>
74
74
 
75
+ <div class="catch-containt">
76
+
75
77
  <ul id="lightSlider">
76
78
 
77
79
  <li data-thumb="img/stop1.jpeg"><img src="img/stop1.jpeg" alt="1" /></li>
@@ -88,9 +90,11 @@
88
90
 
89
91
  </ul>
90
92
 
93
+ </div>
94
+
91
95
 
92
96
 
93
-
97
+ <div class="catch-containt">
94
98
 
95
99
  <ul id="lightSlider2">
96
100
 
@@ -107,6 +111,8 @@
107
111
  <li data-thumb="img/stop6.jpeg"><img src="img/stop6.jpeg" alt="6" /></li>
108
112
 
109
113
  </ul>
114
+
115
+ </div>
110
116
 
111
117
  </body>
112
118
 
@@ -171,27 +177,3 @@
171
177
  });
172
178
 
173
179
  ```
174
-
175
- ```Error
176
-
177
- style.js:91 Uncaught TypeError: $(...).lightcase is not a function
178
-
179
- at HTMLDocument.<anonymous> (style.js:91)
180
-
181
- at j (jquery.min.js:2)
182
-
183
- at Object.fireWith [as resolveWith] (jquery.min.js:2)
184
-
185
- at Function.ready (jquery.min.js:2)
186
-
187
- at HTMLDocument.K (jquery.min.js:2)
188
-
189
- ```
190
-
191
- ```Error
192
-
193
- A cookie associated with a cross-site resource at http://youtube.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
194
-
195
- (index):1 A cookie associated with a cross-site resource at https://youtube.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
196
-
197
- ```

4

lightcase追加

2020/06/11 12:10

投稿

osarusam
osarusam

スコア18

test CHANGED
File without changes
test CHANGED
@@ -162,6 +162,14 @@
162
162
 
163
163
  });
164
164
 
165
+ // 画像拡大 lightcase
166
+
167
+ jQuery(function($){
168
+
169
+ $('a[data-rel^=lightcase]').lightcase();
170
+
171
+ });
172
+
165
173
  ```
166
174
 
167
175
  ```Error

3

その他のエラー

2020/06/11 11:35

投稿

osarusam
osarusam

スコア18

test CHANGED
File without changes
test CHANGED
@@ -56,11 +56,15 @@
56
56
 
57
57
  <link type="text/css" rel="stylesheet" href="css/lightslider.css" />
58
58
 
59
+ <link type="text/css" rel="stylesheet" href="css/lightcase.css" />
60
+
59
61
  <link rel="stylesheet" media="all" href="css/style.css" />
60
62
 
61
63
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
62
64
 
63
65
  <script src="js/lightslider.js"></script>
66
+
67
+ <script src="js/lightcase.js"></script>
64
68
 
65
69
  <script src="js/style.js"></script>
66
70
 
@@ -175,3 +179,11 @@
175
179
  at HTMLDocument.K (jquery.min.js:2)
176
180
 
177
181
  ```
182
+
183
+ ```Error
184
+
185
+ A cookie associated with a cross-site resource at http://youtube.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
186
+
187
+ (index):1 A cookie associated with a cross-site resource at https://youtube.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
188
+
189
+ ```

2

問題の症状追記です

2020/06/11 11:32

投稿

osarusam
osarusam

スコア18

test CHANGED
File without changes
test CHANGED
@@ -25,6 +25,16 @@
25
25
  何かおかしなところがあればご教示いただければ幸いです。
26
26
 
27
27
  よろしくお願い致します。
28
+
29
+
30
+
31
+ ※追記です。
32
+
33
+ Google Chromeブラウザ上で
34
+
35
+ [Ctrl]+[F5]スーパーリロードを押すとサムネイルしか表示されず、
36
+
37
+ その後[Ctrl]+[R]キーで再読み込みをすると、サムネイルではなくきちんとスライダーの画像が表示されます。
28
38
 
29
39
 
30
40
 

1

エラー内容

2020/06/11 10:47

投稿

osarusam
osarusam

スコア18

test CHANGED
File without changes
test CHANGED
@@ -149,3 +149,19 @@
149
149
  });
150
150
 
151
151
  ```
152
+
153
+ ```Error
154
+
155
+ style.js:91 Uncaught TypeError: $(...).lightcase is not a function
156
+
157
+ at HTMLDocument.<anonymous> (style.js:91)
158
+
159
+ at j (jquery.min.js:2)
160
+
161
+ at Object.fireWith [as resolveWith] (jquery.min.js:2)
162
+
163
+ at Function.ready (jquery.min.js:2)
164
+
165
+ at HTMLDocument.K (jquery.min.js:2)
166
+
167
+ ```