Skip to content

Commit 1544bef

Browse files
committed
- Added example Responsive Auto Height + updated list of examples
1 parent e87f010 commit 1544bef

26 files changed

+189
-0
lines changed

examples/apple.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@
379379
<option id="oneSection">One single section</option>
380380
<option id="responsiveHeight">Responsive Height</option>
381381
<option id="responsiveWidth">Responsive Width</option>
382+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
383+
<option id="autoHeight">Auto height</option>
382384
<option id="methods">Methods</option>
383385
</select>
384386

examples/autoHeight.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
<option id="oneSection">One single section</option>
7171
<option id="responsiveHeight">Responsive Height</option>
7272
<option id="responsiveWidth">Responsive Width</option>
73+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
7374
<option id="autoHeight">Auto height</option>
7475
<option id="methods">Methods</option>
7576
</select>

examples/autoplayVideoAndAudio.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
<option id="oneSection">One single section</option>
6565
<option id="responsiveHeight">Responsive Height</option>
6666
<option id="responsiveWidth">Responsive Width</option>
67+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
68+
<option id="autoHeight">Auto height</option>
6769
<option id="methods">Methods</option>
6870
</select>
6971

examples/backgroundVideo.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
<option id="oneSection">One single section</option>
129129
<option id="responsiveHeight">Responsive Height</option>
130130
<option id="responsiveWidth">Responsive Width</option>
131+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
132+
<option id="autoHeight">Auto height</option>
131133
<option id="methods">Methods</option>
132134
</select>
133135

examples/backgrounds.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@
127127
<option id="oneSection">One single section</option>
128128
<option id="responsiveHeight">Responsive Height</option>
129129
<option id="responsiveWidth">Responsive Width</option>
130+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
131+
<option id="autoHeight">Auto height</option>
130132
<option id="methods">Methods</option>
131133
</select>
132134

examples/backgroundsFixed.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@
132132
<option id="oneSection">One single section</option>
133133
<option id="responsiveHeight">Responsive Height</option>
134134
<option id="responsiveWidth">Responsive Width</option>
135+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
136+
<option id="autoHeight">Auto height</option>
135137
<option id="methods">Methods</option>
136138
</select>
137139

examples/callbacks.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@
101101
<option id="oneSection">One single section</option>
102102
<option id="responsiveHeight">Responsive Height</option>
103103
<option id="responsiveWidth">Responsive Width</option>
104+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
105+
<option id="autoHeight">Auto height</option>
104106
<option id="methods">Methods</option>
105107
</select>
106108

examples/continuous.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
<option id="oneSection">One single section</option>
6565
<option id="responsiveHeight">Responsive Height</option>
6666
<option id="responsiveWidth">Responsive Width</option>
67+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
68+
<option id="autoHeight">Auto height</option>
6769
<option id="methods">Methods</option>
6870
</select>
6971

examples/css3.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
<option id="oneSection">One single section</option>
6262
<option id="responsiveHeight">Responsive Height</option>
6363
<option id="responsiveWidth">Responsive Width</option>
64+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
65+
<option id="autoHeight">Auto height</option>
6466
<option id="methods">Methods</option>
6567
</select>
6668

examples/demoPage.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@
9393
<option id="oneSection">One single section</option>
9494
<option id="responsiveHeight">Responsive Height</option>
9595
<option id="responsiveWidth">Responsive Width</option>
96+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
97+
<option id="autoHeight">Auto height</option>
9698
<option id="methods">Methods</option>
9799
</select>
98100

examples/easing.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@
6666
<option id="oneSection">One single section</option>
6767
<option id="responsiveHeight">Responsive Height</option>
6868
<option id="responsiveWidth">Responsive Width</option>
69+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
70+
<option id="autoHeight">Auto height</option>
6971
<option id="methods">Methods</option>
7072
</select>
7173

examples/fixedHeaders.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@
117117
<option id="oneSection">One single section</option>
118118
<option id="responsiveHeight">Responsive Height</option>
119119
<option id="responsiveWidth">Responsive Width</option>
120+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
121+
<option id="autoHeight">Auto height</option>
120122
<option id="methods">Methods</option>
121123
</select>
122124

examples/gradientBackgrounds.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@
118118
<option id="oneSection">One single section</option>
119119
<option id="responsiveHeight">Responsive Height</option>
120120
<option id="responsiveWidth">Responsive Width</option>
121+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
122+
<option id="autoHeight">Auto height</option>
121123
<option id="methods">Methods</option>
122124
</select>
123125

examples/looping.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@
6666
<option id="oneSection">One single section</option>
6767
<option id="responsiveHeight">Responsive Height</option>
6868
<option id="responsiveWidth">Responsive Width</option>
69+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
70+
<option id="autoHeight">Auto height</option>
6971
<option id="methods">Methods</option>
7072
</select>
7173

examples/methods.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@
227227
<option id="oneSection">One single section</option>
228228
<option id="responsiveHeight">Responsive Height</option>
229229
<option id="responsiveWidth">Responsive Width</option>
230+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
231+
<option id="autoHeight">Auto height</option>
230232
<option id="methods">Methods</option>
231233
</select>
232234

examples/navigationH.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@
101101
<option id="oneSection">One single section</option>
102102
<option id="responsiveHeight">Responsive Height</option>
103103
<option id="responsiveWidth">Responsive Width</option>
104+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
105+
<option id="autoHeight">Auto height</option>
104106
<option id="methods">Methods</option>
105107
</select>
106108

examples/navigationV.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@
101101
<option id="oneSection">One single section</option>
102102
<option id="responsiveHeight">Responsive Height</option>
103103
<option id="responsiveWidth">Responsive Width</option>
104+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
105+
<option id="autoHeight">Auto height</option>
104106
<option id="methods">Methods</option>
105107
</select>
106108

examples/noAnchor.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
<option id="oneSection">One single section</option>
6161
<option id="responsiveHeight">Responsive Height</option>
6262
<option id="responsiveWidth">Responsive Width</option>
63+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
64+
<option id="autoHeight">Auto height</option>
6365
<option id="methods">Methods</option>
6466
</select>
6567

examples/normalScroll.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@
9191
<option id="oneSection">One single section</option>
9292
<option id="responsiveHeight">Responsive Height</option>
9393
<option id="responsiveWidth">Responsive Width</option>
94+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
95+
<option id="autoHeight">Auto height</option>
9496
<option id="methods">Methods</option>
9597
</select>
9698

examples/oneSection.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@
117117
<option id="oneSection">One single section</option>
118118
<option id="responsiveHeight">Responsive Height</option>
119119
<option id="responsiveWidth">Responsive Width</option>
120+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
121+
<option id="autoHeight">Auto height</option>
120122
<option id="methods">Methods</option>
121123
</select>
122124

examples/responsiveAutoHeight.html

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
<!DOCTYPE html>
2+
<html xmlns="http://www.w3.org/1999/xhtml">
3+
4+
<head>
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<title>Responsive - fullPage.js</title>
7+
<meta name="author" content="Alvaro Trigo Lopez" />
8+
<meta name="description" content="fullPage full-screen navigation and sections control menu." />
9+
<meta name="keywords" content="fullpage,jquery,demo,screen,fullscreen,navigation,control arrows, dots" />
10+
<meta name="Resource-type" content="Document" />
11+
12+
13+
<link rel="stylesheet" type="text/css" href="../jquery.fullPage.css" />
14+
<link rel="stylesheet" type="text/css" href="examples.css" />
15+
<style>
16+
17+
/* Style for our header texts
18+
* --------------------------------------- */
19+
h1{
20+
font-size: 5em;
21+
font-family: arial,helvetica;
22+
color: #fff;
23+
margin:0;
24+
}
25+
.intro p{
26+
color: #fff;
27+
}
28+
29+
/* Centered texts in each section
30+
* --------------------------------------- */
31+
.section{
32+
text-align:center;
33+
}
34+
35+
/* Bottom menu
36+
* --------------------------------------- */
37+
#infoMenu li a {
38+
color: #fff;
39+
}
40+
</style>
41+
42+
<!--[if IE]>
43+
<script type="text/javascript">
44+
var console = { log: function() {} };
45+
</script>
46+
<![endif]-->
47+
48+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
49+
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
50+
51+
<script type="text/javascript" src="../vendors/scrolloverflow.js"></script>
52+
53+
<script type="text/javascript" src="../jquery.fullPage.js"></script>
54+
<script type="text/javascript" src="examples.js"></script>
55+
56+
<script type="text/javascript">
57+
$(document).ready(function() {
58+
$('#fullpage').fullpage({
59+
anchors: ['firstPage', 'secondPage', '3rdPage'],
60+
sectionsColor: ['#C63D0F', '#1BBC9B', '#7E8F7C'],
61+
navigation: true,
62+
navigationPosition: 'right',
63+
navigationTooltips: ['First page', 'Second page', 'Third and last page'],
64+
responsiveWidth: 900,
65+
afterResponsive: function(isResponsive){
66+
67+
}
68+
69+
});
70+
});
71+
</script>
72+
73+
</head>
74+
<body>
75+
76+
<select id="demosMenu">
77+
<option selected>Choose Demo</option>
78+
<option id="backgrounds">Background images</option>
79+
<option id="backgroundVideo">Background video</option>
80+
<option id="gradientBackgrounds">Gradient backgrounds</option>
81+
<option id="backgroundsFixed">Fixed fullscreen backgrounds</option>
82+
<option id="looping">Looping</option>
83+
<option id="noAnchor">No anchor links</option>
84+
<option id="scrollingSpeed">Scrolling speed</option>
85+
<option id="easing">Easing</option>
86+
<option id="callbacks">Callbacks</option>
87+
<option id="css3">CSS3</option>
88+
<option id="continuous">Continuous scrolling</option>
89+
<option id="normalScroll">Normal scrolling</option>
90+
<option id="scrollBar">Scroll bar enabled</option>
91+
<option id="scrolling">Scroll inside sections and slides</option>
92+
<option id="navigationV">Vertical navigation dots</option>
93+
<option id="navigationH">Horizontal navigation dots</option>
94+
<option id="fixedHeaders">Fixed headers</option>
95+
<option id="apple">Apple iPhone demo (animations)</option>
96+
<option id="oneSection">One single section</option>
97+
<option id="responsiveHeight">Responsive Height</option>
98+
<option id="responsiveWidth">Responsive Width</option>
99+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
100+
<option id="methods">Methods</option>
101+
</select>
102+
103+
104+
<div id="fullpage">
105+
<div class="section fp-auto-height-responsive" id="section0">
106+
<div class="intro">
107+
<h1>Responsive auto-height</h1>
108+
<p>On responsive mode, which will fire with less than 900px width as defined in `responsiveWidth`, this section will become bigger than the viewport as I'm using the class `fp-auto-height-responsive` on the section.</p>
109+
<br>
110+
<br>
111+
<br>
112+
<p>
113+
Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri
114+
115+
116+
</p>
117+
</div>
118+
</div>
119+
<div class="section" id="section1">
120+
<div class="slide" id="slide1">
121+
<div class="intro">
122+
<h1>Ideal for small screens</h1>
123+
</div>
124+
</div>
125+
126+
<div class="slide" id="slide2">
127+
<h1>This example uses responsiveWidth: 900</h1>
128+
</div>
129+
130+
</div>
131+
<div class="section" id="section2">
132+
<div class="intro">
133+
<h1>Keep it simple!</h1>
134+
</div>
135+
</div>
136+
</div>
137+
138+
139+
</body>
140+
</html>

examples/responsiveHeight.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@
9292
<option id="oneSection">One single section</option>
9393
<option id="responsiveHeight">Responsive Height</option>
9494
<option id="responsiveWidth">Responsive Width</option>
95+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
96+
<option id="autoHeight">Auto height</option>
9597
<option id="methods">Methods</option>
9698
</select>
9799

examples/responsiveWidth.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@
9696
<option id="oneSection">One single section</option>
9797
<option id="responsiveHeight">Responsive Height</option>
9898
<option id="responsiveWidth">Responsive Width</option>
99+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
100+
<option id="autoHeight">Auto height</option>
99101
<option id="methods">Methods</option>
100102
</select>
101103

examples/scrollBar.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@
8989
<option id="oneSection">One single section</option>
9090
<option id="responsiveHeight">Responsive Height</option>
9191
<option id="responsiveWidth">Responsive Width</option>
92+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
93+
<option id="autoHeight">Auto height</option>
9294
<option id="methods">Methods</option>
9395
</select>
9496

examples/scrolling.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
<option id="oneSection">One single section</option>
9595
<option id="responsiveHeight">Responsive Height</option>
9696
<option id="responsiveWidth">Responsive Width</option>
97+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
98+
<option id="autoHeight">Auto height</option>
9799
<option id="methods">Methods</option>
98100
</select>
99101

examples/scrollingSpeed.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
<option id="oneSection">One single section</option>
6565
<option id="responsiveHeight">Responsive Height</option>
6666
<option id="responsiveWidth">Responsive Width</option>
67+
<option id="responsiveAutoHeight">Responsive Auto Height</option>
68+
<option id="autoHeight">Auto height</option>
6769
<option id="methods">Methods</option>
6870
</select>
6971

0 commit comments

Comments
 (0)