Skip to content

Commit

Permalink
Merge pull request #4665 from alvarotrigo/dev
Browse files Browse the repository at this point in the history
Merging dev branch 4.0.30
  • Loading branch information
alvarotrigo authored Oct 14, 2024
2 parents 9c83e71 + 7b98bb3 commit d507d02
Show file tree
Hide file tree
Showing 23 changed files with 65 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

---

![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.29-brightgreen.svg)
![fullPage.js version](https://img.shields.io/badge/fullPage.js-v4.0.30-brightgreen.svg)
[![License](https://img.shields.io/badge/License-GPL-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html)
[![PayPal Donate](https://img.shields.io/badge/donate-PayPal.me-ff69b4.svg)](https://www.paypal.me/alvarotrigo/9.95)
[![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/fullpage.js/badge?style=rounded)](https://www.jsdelivr.com/package/npm/fullpage.js)
Expand Down
11 changes: 10 additions & 1 deletion dist/fullpage.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* fullPage 4.0.29
* fullPage 4.0.30
* https://github.com/alvarotrigo/fullPage.js
*
* @license GPLv3 for open source use only
Expand Down Expand Up @@ -216,6 +216,12 @@ html.fp-enabled,
height: auto !important;
}

/* Tries to prevent overwrites #4657 */
.fp-enabled .fp-scrollable{
overflow: visible;
height: initial;
}

/* Used with autoScrolling: false */
.fp-scrollable.fp-responsive .fp-is-overflow.fp-section,
.fp-scrollable .fp-section,
Expand All @@ -236,6 +242,9 @@ html.fp-enabled,
/* Disabling vertical centering on scrollable elements */
.fp-overflow{
justify-content: flex-start;
}

body:not(.fp-responsive) .fp-overflow{
max-height: 100vh;
}

Expand Down
4 changes: 2 additions & 2 deletions dist/fullpage.extensions.min.js

Large diffs are not rendered by default.

22 changes: 13 additions & 9 deletions dist/fullpage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* fullPage 4.0.29
* fullPage 4.0.30
* https://github.com/alvarotrigo/fullPage.js
*
* @license GPLv3 for open source use only
Expand Down Expand Up @@ -1721,27 +1721,31 @@
return paramsPerEvent[eventName]();
}

function hasAutoPlay(item) {
return item.hasAttribute('data-autoplay') || item.hasAttribute('autoplay');
}
/**
* Plays video and audio elements.
*/


function playMedia(destiny) {
var panel = getSlideOrSection(destiny); //playing HTML5 media elements

$('video, audio', panel).forEach(function (element) {
if (element.hasAttribute('data-autoplay') && typeof element.play === 'function') {
if (hasAutoPlay(element) && typeof element.play === 'function') {
element.play();
}
}); //youtube videos

$('iframe[src*="youtube.com/embed/"]', panel).forEach(function (element) {
if (element.hasAttribute('data-autoplay')) {
if (hasAutoPlay(element)) {
playYoutube(element);
} //in case the URL was not loaded yet. On page load we need time for the new URL (with the API string) to load.


element.onload = function () {
if (element.hasAttribute('data-autoplay')) {
if (hasAutoPlay(element)) {
playYoutube(element);
}
};
Expand Down Expand Up @@ -1870,7 +1874,7 @@
} //changing slash for dash to make it a valid CSS style


text = text.replace('/', '-').replace('#', ''); //removing previous anchor classes
text = text.replace('/', '-').replace('#', '').replace(/\s/g, ''); //removing previous anchor classes

var classRe = new RegExp('\\b\\s?' + VIEWING_PREFIX + '-[^\\s]+\\b', "g");
$body.className = $body.className.replace(classRe, ''); //adding the current anchor
Expand Down Expand Up @@ -2145,7 +2149,7 @@
'overflow': 'hidden',
'height': '100%'
});
removeClass($body, 'fp-scrollable');
removeClass($body, SCROLLABLE);
setRecordHistory(getOriginals().recordHistory, 'internal'); //for IE touch devices

css(getContainer(), {
Expand All @@ -2162,7 +2166,7 @@
'overflow': 'visible',
'height': 'initial'
});
addClass($body, 'fp-scrollable');
addClass($body, SCROLLABLE);
var recordHistory = !getOptions().autoScrolling ? false : getOriginals().recordHistory;
setRecordHistory(recordHistory, 'internal'); //for IE touch devices

Expand Down Expand Up @@ -5536,7 +5540,7 @@
});
});
var t = ["-"];
var n = "\x32\x30\x32\x34\x2d\x38\x2d\x36".split("-"),
var n = "\x32\x30\x32\x34\x2d\x39\x2d\x31\x34".split("-"),
e = new Date(n[0], n[1], n[2]),
r = ["se", "licen", "-", "v3", "l", "gp"];

Expand Down Expand Up @@ -5997,7 +6001,7 @@
}; //public functions


FP.version = '4.0.29';
FP.version = '4.0.30';
FP.test = Object.assign(FP.test, {
top: '0px',
translate3d: 'translate3d(0px, 0px, 0px)',
Expand Down
4 changes: 2 additions & 2 deletions dist/fullpage.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d507d02

Please sign in to comment.