質問編集履歴
1
HTMLやCSSを追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,6 +8,9 @@
|
|
8
8
|
|
9
9
|
フルスクリーンの高さを取得してその高さから下にコンテンツを表示させたいのですが、
|
10
10
|
それをどうやったらいいのかがわかりません。
|
11
|
+
とりあえずコンテンツが下に追加できるかどうかを試したく、
|
12
|
+
まだサイトとしては簡易的なものです。
|
13
|
+
追加できるようであれば、作り込んで行こうと思っています。
|
11
14
|
|
12
15
|
どうぞご教授頂きたくお願いいたします。
|
13
16
|
|
@@ -16,6 +19,7 @@
|
|
16
19
|
|
17
20
|
### 該当のソースコード
|
18
21
|
|
22
|
+
```ここに言語を入力
|
19
23
|
( function( $ ){
|
20
24
|
String.prototype.format = function()
|
21
25
|
{
|
@@ -145,4 +149,177 @@
|
|
145
149
|
};
|
146
150
|
|
147
151
|
|
148
|
-
})( jQuery );
|
152
|
+
})( jQuery );
|
153
|
+
|
154
|
+
```
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
```ここに言語を入力
|
162
|
+
<head>
|
163
|
+
<meta charset="utf-8">
|
164
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
165
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
166
|
+
<title>Untitled Document</title>
|
167
|
+
<!-- Bootstrap -->
|
168
|
+
<link href="css/bootstrap.css" rel="stylesheet">
|
169
|
+
<link href="css/base.css" rel="stylesheet">
|
170
|
+
|
171
|
+
<!-- background slided -->
|
172
|
+
<link rel="stylesheet" type="text/css" href="css/sublimeSlideshow.css" media="all" />
|
173
|
+
<link rel="stylesheet" type="text/css" href="css/index.css" media="all" />
|
174
|
+
<script type="text/javascript" src="js/loadCSS.js"></script>
|
175
|
+
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
|
176
|
+
<script type="text/javascript" src="js/jquery.sublimeSlideshow.js"></script>
|
177
|
+
|
178
|
+
<script type="text/javascript">
|
179
|
+
$(function(){
|
180
|
+
$.sublime_slideshow({
|
181
|
+
src:[
|
182
|
+
{url:"images/visual-01.jpg",title:"星空"},
|
183
|
+
{url:"images/visual-02.jpg"},
|
184
|
+
{url:"images/visual-03.jpg",title:"月夜"}
|
185
|
+
],
|
186
|
+
duration: 7,
|
187
|
+
fade: 1,
|
188
|
+
scaling: 1.2,
|
189
|
+
rotating: 2,
|
190
|
+
overlay: "images/pattern.png"
|
191
|
+
});
|
192
|
+
});
|
193
|
+
</script>
|
194
|
+
|
195
|
+
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
196
|
+
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
197
|
+
<!--[if lt IE 9]>
|
198
|
+
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
199
|
+
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
200
|
+
<![endif]-->
|
201
|
+
|
202
|
+
|
203
|
+
</head>
|
204
|
+
<body>
|
205
|
+
<div id="visual_pc"></div>
|
206
|
+
|
207
|
+
<!-- sma -->
|
208
|
+
<div class="container-fluid visual sma_head">
|
209
|
+
<p><a id="modal-open">【クリックでモーダルウィンドウを開きます。】</a></p>
|
210
|
+
</div>
|
211
|
+
|
212
|
+
<div id="info">
|
213
|
+
<p id="pname">SublimeSlideshow</p>
|
214
|
+
<p id="pinfo">CSS3を利用したフルスクリーンスライドショーjQueryプラグイン</p>
|
215
|
+
<a id="link" target="_blank" href="http://tympanus.net/codrops/2012/01/02/fullscreen-background-image-slideshow-with-css3/">元ネタ</a>
|
216
|
+
</div>
|
217
|
+
|
218
|
+
<div id="FirstView">
|
219
|
+
<h2 class="text01">test</h2>
|
220
|
+
</div>
|
221
|
+
|
222
|
+
<!-- ここから下を表示させたい -->
|
223
|
+
<div id="cont">sitano</div>
|
224
|
+
|
225
|
+
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
226
|
+
<script src="js/bootstrap.js"></script>
|
227
|
+
<script src="js/modal.js"></script>
|
228
|
+
</body>
|
229
|
+
</html>
|
230
|
+
|
231
|
+
```
|
232
|
+
|
233
|
+
|
234
|
+
```ここに言語を入力
|
235
|
+
|
236
|
+
/* スライダー用スタイル */
|
237
|
+
|
238
|
+
.sm-slider, .sm-slider::after {
|
239
|
+
margin: 0;
|
240
|
+
padding: 0;
|
241
|
+
list-style: none;
|
242
|
+
position: fixed;
|
243
|
+
width: 100%;
|
244
|
+
height: 100%;
|
245
|
+
top: 0px;
|
246
|
+
left: 0px;
|
247
|
+
z-index: -1;
|
248
|
+
}
|
249
|
+
/* 追加したスタイル */
|
250
|
+
#FirstView {
|
251
|
+
height: 100%;
|
252
|
+
background-image: url(../images/visual_txt01.png);
|
253
|
+
background-repeat: no-repeat;
|
254
|
+
background-position: center 48%;
|
255
|
+
text-align: center;
|
256
|
+
}
|
257
|
+
#FirstView .text01 {
|
258
|
+
display: none;
|
259
|
+
}
|
260
|
+
|
261
|
+
|
262
|
+
/* サイト全般のスタイル */
|
263
|
+
|
264
|
+
@media (min-width: 992px) {
|
265
|
+
.pcnone {
|
266
|
+
display: none;
|
267
|
+
}
|
268
|
+
}
|
269
|
+
@media (max-width: 991px) {
|
270
|
+
.smnone {
|
271
|
+
display: none;
|
272
|
+
}
|
273
|
+
}
|
274
|
+
/************ head ************/
|
275
|
+
|
276
|
+
@media (max-width: 767px) {
|
277
|
+
.pc_head {
|
278
|
+
display: none;
|
279
|
+
}
|
280
|
+
}
|
281
|
+
@media (min-width: 768px) {
|
282
|
+
.sma_head {
|
283
|
+
display: none;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
/************ sma modal window ************/
|
287
|
+
|
288
|
+
#modal-open {
|
289
|
+
color: #cc0000;
|
290
|
+
}
|
291
|
+
/* モーダル コンテンツエリア */
|
292
|
+
#modal-main {
|
293
|
+
display: none;
|
294
|
+
width: 500px;
|
295
|
+
height: 300px;
|
296
|
+
margin: 0;
|
297
|
+
padding: 0;
|
298
|
+
background-color: #ffffff;
|
299
|
+
color: #666666;
|
300
|
+
position:fixed;
|
301
|
+
z-index: 2;
|
302
|
+
}
|
303
|
+
/* モーダル 背景エリア */
|
304
|
+
#modal-bg {
|
305
|
+
display:none;
|
306
|
+
width:100%;
|
307
|
+
height:100%;
|
308
|
+
background-color: rgba(0,0,0,0.5);
|
309
|
+
position:fixed;
|
310
|
+
top:0;
|
311
|
+
left:0;
|
312
|
+
z-index: 1;
|
313
|
+
}
|
314
|
+
#cont {
|
315
|
+
text-align: center;
|
316
|
+
width: auto;
|
317
|
+
margin-top: 0;
|
318
|
+
margin-right: auto;
|
319
|
+
margin-bottom: 0;
|
320
|
+
margin-left: auto;
|
321
|
+
background-color: #FFFFFF;
|
322
|
+
}
|
323
|
+
|
324
|
+
|
325
|
+
```
|