Skip to content

Commit

Permalink
Merge pull request alvarotrigo#3814 from alvarotrigo/dev
Browse files Browse the repository at this point in the history
Merging dev branch 3.0.8
  • Loading branch information
alvarotrigo committed Nov 25, 2019
2 parents fe7ff78 + 9719c29 commit ca7c432
Show file tree
Hide file tree
Showing 32 changed files with 1,499 additions and 401 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

---

![fullPage.js version](http://img.shields.io/badge/fullPage.js-v3.0.7-brightgreen.svg)
![fullPage.js version](http://img.shields.io/badge/fullPage.js-v3.0.8-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 All @@ -30,8 +30,7 @@

---

A simple and easy to use library to create fullscreen scrolling websites (also known as single page websites or onepage sites).
It allows the creation of fullscreen scrolling websites, as well as adding some landscape sliders inside the sections of the site.
A simple and easy to use library that creates fullscreen scrolling websites (also known as single page websites or onepage sites) and adds landscape sliders inside the sections of the site.

- [Introduction](https://github.com/alvarotrigo/fullPage.js#introduction)
- [Compatibility](https://github.com/alvarotrigo/fullPage.js#compatibility)
Expand Down Expand Up @@ -979,6 +978,8 @@ Want to build fullpage.js distribution files? Please see [Build Tasks](https://g
- [fullPage.js Rails Ruby Gem](https://rubygems.org/gems/fullpagejs-rails)
- [Angular fullPage.js - Adaptation for Angular.js v1.x](https://github.com/mmautomatizacion/angular-fullpage.js)
- [Integrating fullPage.js with Wordpress (Tutorial)](http://premium.wpmudev.org/blog/build-apple-inspired-full-page-scrolling-pages-for-your-wordpress-site/)
- [Wordpress Plugin for Divi](https://alvarotrigo.com/fullPage/wordpress-plugin-divi/)
- [Wordpress Plugin for Elementor](https://alvarotrigo.com/fullPage/wordpress-plugin-elementor/)

## Who is using fullPage.js
If you want your page to be listed here, please <a href="mailto:alvaro@alvarotrigo.com">contact me</a> with the URL.
Expand Down
2 changes: 1 addition & 1 deletion dist/fullpage.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* fullPage 3.0.7
* fullPage 3.0.8
* https://github.com/alvarotrigo/fullPage.js
*
* @license GPLv3 for open source use only
Expand Down
4 changes: 2 additions & 2 deletions dist/fullpage.extensions.min.js
100644 → 100755

Large diffs are not rendered by default.

45 changes: 30 additions & 15 deletions dist/fullpage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* fullPage 3.0.7
* fullPage 3.0.8
* https://github.com/alvarotrigo/fullPage.js
*
* @license GPLv3 for open source use only
Expand Down Expand Up @@ -586,7 +586,7 @@

if(container){
//public functions
FP.version = '3.0.5';
FP.version = '3.0.8';
FP.setAutoScrolling = setAutoScrolling;
FP.setRecordHistory = setRecordHistory;
FP.setScrollingSpeed = setScrollingSpeed;
Expand All @@ -604,7 +604,7 @@
FP.fitToSection = fitToSection;
FP.reBuild = reBuild;
FP.setResponsive = setResponsive;
FP.getFullpageData = function(){ return options };
FP.getFullpageData = function(){ return options; };
FP.destroy = destroy;
FP.getActiveSection = getActiveSection;
FP.getActiveSlide = getActiveSlide;
Expand Down Expand Up @@ -751,15 +751,20 @@
}

function onMouseEnterOrLeave(e) {
//onMouseLeave will use the destination target, not the one we are moving away from
var target = event.toElement || e.relatedTarget || e.target;

var type = e.type;
var isInsideOneNormalScroll = false;
var isUsingScrollOverflow = options.scrollOverflow;

//onMouseLeave will use the destination target, not the one we are moving away from
var target = type === 'mouseleave' ? e.toElement || e.relatedTarget : e.target;

//coming from closing a normalScrollElements modal or moving outside viewport?
if(target == document || !target){
setMouseHijack(true);

if(isUsingScrollOverflow){
options.scrollOverflowHandler.setIscroll(target, true);
}
return;
}

Expand Down Expand Up @@ -788,6 +793,10 @@
if(isNormalScrollTarget || isNormalScrollChildFocused){
if(!FP.shared.isNormalScrollElement){
setMouseHijack(false);

if(isUsingScrollOverflow){
options.scrollOverflowHandler.setIscroll(target, false);
}
}
FP.shared.isNormalScrollElement = true;
isInsideOneNormalScroll = true;
Expand All @@ -798,6 +807,11 @@
//not inside a single normal scroll element anymore?
if(!isInsideOneNormalScroll && FP.shared.isNormalScrollElement){
setMouseHijack(true);

if(isUsingScrollOverflow){
options.scrollOverflowHandler.setIscroll(target, true);
}

FP.shared.isNormalScrollElement = false;
}
}
Expand Down Expand Up @@ -833,8 +847,8 @@

//no anchors option? Checking for them in the DOM attributes
if(!options.anchors.length){
var attrName = '[data-anchor]';
var anchors = $(options.sectionSelector.split(',').join(attrName + ',') + attrName, container);
var anchorsAttribute = '[data-anchor]';
var anchors = $(options.sectionSelector.split(',').join(anchorsAttribute + ',') + anchorsAttribute, container);
if(anchors.length){
g_initialAnchorsInDom = true;
anchors.forEach(function(item){
Expand All @@ -845,8 +859,8 @@

//no tooltips option? Checking for them in the DOM attributes
if(!options.navigationTooltips.length){
var attrName = '[data-tooltip]';
var tooltips = $(options.sectionSelector.split(',').join(attrName + ',') + attrName, container);
var tooltipsAttribute = '[data-tooltip]';
var tooltips = $(options.sectionSelector.split(',').join(tooltipsAttribute + ',') + tooltipsAttribute, container);
if(tooltips.length){
tooltips.forEach(function(item){
options.navigationTooltips.push(item.getAttribute('data-tooltip').toString());
Expand Down Expand Up @@ -1094,7 +1108,7 @@
function getBulletLinkName(i, defaultName){
return options.navigationTooltips[i]
|| options.anchors[i]
|| defaultName + ' ' + (i+1)
|| defaultName + ' ' + (i+1);
}

/*
Expand Down Expand Up @@ -2052,7 +2066,7 @@
elementToPlay.load();
elementToPlay.onloadeddata = function(){
onMediaLoad(destiny);
}
};
}
}
});
Expand Down Expand Up @@ -2384,6 +2398,7 @@
function menuItemsHandler(e){
if($(options.menu)[0] && (options.lockAnchors || !options.anchors.length)){
preventDefault(e);
/*jshint validthis:true */
moveTo(this.getAttribute('data-menuanchor'));
}
}
Expand Down Expand Up @@ -3013,7 +3028,7 @@
};

//preventing the style p:empty{display: none;} from returning the wrong result
el.style.display = 'block'
el.style.display = 'block';

// Add it to the body to get the computed style.
document.body.insertBefore(el, null);
Expand Down Expand Up @@ -3399,7 +3414,7 @@
*/
function displayWarnings(){
var l = options['li' + 'c' + 'enseK' + 'e' + 'y'];
var msgStyle = 'font-size: 15px;background:yellow;'
var msgStyle = 'font-size: 15px;background:yellow;';

if(!isOK){
showError('error', 'Fullpage.js version 3 has changed its license to GPLv3 and it requires a `licenseKey` option. Read about it here:');
Expand Down Expand Up @@ -4180,7 +4195,7 @@ if(window.jQuery && window.fullpage){

$.fn.fullpage = function(options) {
options = $.extend({}, options, {'$': $});
new fullpage(this[0], options);
var instance = new fullpage(this[0], options);
};
})(window.jQuery, window.fullpage);
}
2 changes: 1 addition & 1 deletion dist/fullpage.min.css

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

2 changes: 1 addition & 1 deletion dist/fullpage.min.css.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/fullpage.min.js.map

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions examples/angular-fullpage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vue-fullpage - fullPage.js</title>
<meta name="author" content="Alvaro Trigo Lopez" />
<meta name="description" content="fullPage auto-height example." />
<meta name="keywords" content="fullpage,jquery,demo,screen,fullscreen,auto-height,full-screen" />
<meta name="Resource-type" content="Document" />
<meta http-equiv="refresh" content="0; url=http://alvarotrigo.com/angular-fullpage/" />
</head>
<body>

Redirecting...

</body>
</html>
71 changes: 0 additions & 71 deletions examples/bug-3488.html

This file was deleted.

18 changes: 18 additions & 0 deletions examples/react-fullpage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vue-fullpage - fullPage.js</title>
<meta name="author" content="Alvaro Trigo Lopez" />
<meta name="description" content="fullPage auto-height example." />
<meta name="keywords" content="fullpage,jquery,demo,screen,fullscreen,auto-height,full-screen" />
<meta name="Resource-type" content="Document" />
<meta http-equiv="refresh" content="0; url=http://alvarotrigo.com/react-fullpage/" />
</head>
<body>

Redirecting...

</body>
</html>
3 changes: 3 additions & 0 deletions gulpfile.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ gulp.task('extensions', function(done) {
.pipe(uglify({
output: {
comments: 'some'
},
compress: {
pure_funcs: [ 'console.log' ]
}
}))
.pipe(rename({suffix: '.min'}))
Expand Down
Loading

0 comments on commit ca7c432

Please sign in to comment.