| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
32 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,7 @@ | |||
| 16 | 16 | ||
| 17 | 17 | --- | |
| 18 | 18 | ||
| 19 | -  | ||
| 19 | +  | ||
| 20 | 20 | [](https://www.gnu.org/licenses/gpl-3.0.html) | |
| 21 | 21 | [](https://www.paypal.me/alvarotrigo/9.95) | |
| 22 | 22 | [](https://www.jsdelivr.com/package/npm/fullpage.js) | |
@@ -30,8 +30,7 @@ | |||
| 30 | 30 | ||
| 31 | 31 | --- | |
| 32 | 32 | ||
| 33 | - A simple and easy to use library to create fullscreen scrolling websites (also known as single page websites or onepage sites). | ||
| 34 | - It allows the creation of fullscreen scrolling websites, as well as adding some landscape sliders inside the sections of the site. | ||
| 33 | + 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. | ||
| 35 | 34 | ||
| 36 | 35 | - [Introduction](https://github.com/alvarotrigo/fullPage.js#introduction) | |
| 37 | 36 | - [Compatibility](https://github.com/alvarotrigo/fullPage.js#compatibility) | |
@@ -979,6 +978,8 @@ Want to build fullpage.js distribution files? Please see [Build Tasks](https://g | |||
| 979 | 978 | - [fullPage.js Rails Ruby Gem](https://rubygems.org/gems/fullpagejs-rails) | |
| 980 | 979 | - [Angular fullPage.js - Adaptation for Angular.js v1.x](https://github.com/mmautomatizacion/angular-fullpage.js) | |
| 981 | 980 | - [Integrating fullPage.js with Wordpress (Tutorial)](http://premium.wpmudev.org/blog/build-apple-inspired-full-page-scrolling-pages-for-your-wordpress-site/) | |
| 981 | + - [Wordpress Plugin for Divi](https://alvarotrigo.com/fullPage/wordpress-plugin-divi/) | ||
| 982 | + - [Wordpress Plugin for Elementor](https://alvarotrigo.com/fullPage/wordpress-plugin-elementor/) | ||
| 982 | 983 | ||
| 983 | 984 | ## Who is using fullPage.js | |
| 984 | 985 | If you want your page to be listed here, please <a href="mailto:alvaro@alvarotrigo.com">contact me</a> with the URL. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | /*! | |
| 2 | - * fullPage 3.0.7 | ||
| 2 | + * fullPage 3.0.8 | ||
| 3 | 3 | * https://github.com/alvarotrigo/fullPage.js | |
| 4 | 4 | * | |
| 5 | 5 | * @license GPLv3 for open source use only | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | /*! | |
| 2 | - * fullPage 3.0.7 | ||
| 2 | + * fullPage 3.0.8 | ||
| 3 | 3 | * https://github.com/alvarotrigo/fullPage.js | |
| 4 | 4 | * | |
| 5 | 5 | * @license GPLv3 for open source use only | |
@@ -586,7 +586,7 @@ | |||
| 586 | 586 | ||
| 587 | 587 | if(container){ | |
| 588 | 588 | //public functions | |
| 589 | - FP.version = '3.0.5'; | ||
| 589 | + FP.version = '3.0.8'; | ||
| 590 | 590 | FP.setAutoScrolling = setAutoScrolling; | |
| 591 | 591 | FP.setRecordHistory = setRecordHistory; | |
| 592 | 592 | FP.setScrollingSpeed = setScrollingSpeed; | |
@@ -604,7 +604,7 @@ | |||
| 604 | 604 | FP.fitToSection = fitToSection; | |
| 605 | 605 | FP.reBuild = reBuild; | |
| 606 | 606 | FP.setResponsive = setResponsive; | |
| 607 | - FP.getFullpageData = function(){ return options }; | ||
| 607 | + FP.getFullpageData = function(){ return options; }; | ||
| 608 | 608 | FP.destroy = destroy; | |
| 609 | 609 | FP.getActiveSection = getActiveSection; | |
| 610 | 610 | FP.getActiveSlide = getActiveSlide; | |
@@ -751,15 +751,20 @@ | |||
| 751 | 751 | } | |
| 752 | 752 | ||
| 753 | 753 | function onMouseEnterOrLeave(e) { | |
| 754 | - //onMouseLeave will use the destination target, not the one we are moving away from | ||
| 755 | - var target = event.toElement || e.relatedTarget || e.target; | ||
| 756 | - | ||
| 757 | 754 | var type = e.type; | |
| 758 | 755 | var isInsideOneNormalScroll = false; | |
| 756 | + var isUsingScrollOverflow = options.scrollOverflow; | ||
| 757 | + | ||
| 758 | + //onMouseLeave will use the destination target, not the one we are moving away from | ||
| 759 | + var target = type === 'mouseleave' ? e.toElement || e.relatedTarget : e.target; | ||
| 759 | 760 | ||
| 760 | 761 | //coming from closing a normalScrollElements modal or moving outside viewport? | |
| 761 | 762 | if(target == document || !target){ | |
| 762 | 763 | setMouseHijack(true); | |
| 764 | + | ||
| 765 | + if(isUsingScrollOverflow){ | ||
| 766 | + options.scrollOverflowHandler.setIscroll(target, true); | ||
| 767 | + } | ||
| 763 | 768 | return; | |
| 764 | 769 | } | |
| 765 | 770 | ||
@@ -788,6 +793,10 @@ | |||
| 788 | 793 | if(isNormalScrollTarget || isNormalScrollChildFocused){ | |
| 789 | 794 | if(!FP.shared.isNormalScrollElement){ | |
| 790 | 795 | setMouseHijack(false); | |
| 796 | + | ||
| 797 | + if(isUsingScrollOverflow){ | ||
| 798 | + options.scrollOverflowHandler.setIscroll(target, false); | ||
| 799 | + } | ||
| 791 | 800 | } | |
| 792 | 801 | FP.shared.isNormalScrollElement = true; | |
| 793 | 802 | isInsideOneNormalScroll = true; | |
@@ -798,6 +807,11 @@ | |||
| 798 | 807 | //not inside a single normal scroll element anymore? | |
| 799 | 808 | if(!isInsideOneNormalScroll && FP.shared.isNormalScrollElement){ | |
| 800 | 809 | setMouseHijack(true); | |
| 810 | + | ||
| 811 | + if(isUsingScrollOverflow){ | ||
| 812 | + options.scrollOverflowHandler.setIscroll(target, true); | ||
| 813 | + } | ||
| 814 | + | ||
| 801 | 815 | FP.shared.isNormalScrollElement = false; | |
| 802 | 816 | } | |
| 803 | 817 | } | |
@@ -833,8 +847,8 @@ | |||
| 833 | 847 | ||
| 834 | 848 | //no anchors option? Checking for them in the DOM attributes | |
| 835 | 849 | if(!options.anchors.length){ | |
| 836 | - var attrName = '[data-anchor]'; | ||
| 837 | - var anchors = $(options.sectionSelector.split(',').join(attrName + ',') + attrName, container); | ||
| 850 | + var anchorsAttribute = '[data-anchor]'; | ||
| 851 | + var anchors = $(options.sectionSelector.split(',').join(anchorsAttribute + ',') + anchorsAttribute, container); | ||
| 838 | 852 | if(anchors.length){ | |
| 839 | 853 | g_initialAnchorsInDom = true; | |
| 840 | 854 | anchors.forEach(function(item){ | |
@@ -845,8 +859,8 @@ | |||
| 845 | 859 | ||
| 846 | 860 | //no tooltips option? Checking for them in the DOM attributes | |
| 847 | 861 | if(!options.navigationTooltips.length){ | |
| 848 | - var attrName = '[data-tooltip]'; | ||
| 849 | - var tooltips = $(options.sectionSelector.split(',').join(attrName + ',') + attrName, container); | ||
| 862 | + var tooltipsAttribute = '[data-tooltip]'; | ||
| 863 | + var tooltips = $(options.sectionSelector.split(',').join(tooltipsAttribute + ',') + tooltipsAttribute, container); | ||
| 850 | 864 | if(tooltips.length){ | |
| 851 | 865 | tooltips.forEach(function(item){ | |
| 852 | 866 | options.navigationTooltips.push(item.getAttribute('data-tooltip').toString()); | |
@@ -1094,7 +1108,7 @@ | |||
| 1094 | 1108 | function getBulletLinkName(i, defaultName){ | |
| 1095 | 1109 | return options.navigationTooltips[i] | |
| 1096 | 1110 | || options.anchors[i] | |
| 1097 | - || defaultName + ' ' + (i+1) | ||
| 1111 | + || defaultName + ' ' + (i+1); | ||
| 1098 | 1112 | } | |
| 1099 | 1113 | ||
| 1100 | 1114 | /* | |
@@ -2052,7 +2066,7 @@ | |||
| 2052 | 2066 | elementToPlay.load(); | |
| 2053 | 2067 | elementToPlay.onloadeddata = function(){ | |
| 2054 | 2068 | onMediaLoad(destiny); | |
| 2055 | - } | ||
| 2069 | + }; | ||
| 2056 | 2070 | } | |
| 2057 | 2071 | } | |
| 2058 | 2072 | }); | |
@@ -2384,6 +2398,7 @@ | |||
| 2384 | 2398 | function menuItemsHandler(e){ | |
| 2385 | 2399 | if($(options.menu)[0] && (options.lockAnchors || !options.anchors.length)){ | |
| 2386 | 2400 | preventDefault(e); | |
| 2401 | + /*jshint validthis:true */ | ||
| 2387 | 2402 | moveTo(this.getAttribute('data-menuanchor')); | |
| 2388 | 2403 | } | |
| 2389 | 2404 | } | |
@@ -3013,7 +3028,7 @@ | |||
| 3013 | 3028 | }; | |
| 3014 | 3029 | ||
| 3015 | 3030 | //preventing the style p:empty{display: none;} from returning the wrong result | |
| 3016 | - el.style.display = 'block' | ||
| 3031 | + el.style.display = 'block'; | ||
| 3017 | 3032 | ||
| 3018 | 3033 | // Add it to the body to get the computed style. | |
| 3019 | 3034 | document.body.insertBefore(el, null); | |
@@ -3399,7 +3414,7 @@ | |||
| 3399 | 3414 | */ | |
| 3400 | 3415 | function displayWarnings(){ | |
| 3401 | 3416 | var l = options['li' + 'c' + 'enseK' + 'e' + 'y']; | |
| 3402 | - var msgStyle = 'font-size: 15px;background:yellow;' | ||
| 3417 | + var msgStyle = 'font-size: 15px;background:yellow;'; | ||
| 3403 | 3418 | ||
| 3404 | 3419 | if(!isOK){ | |
| 3405 | 3420 | showError('error', 'Fullpage.js version 3 has changed its license to GPLv3 and it requires a `licenseKey` option. Read about it here:'); | |
@@ -4180,7 +4195,7 @@ if(window.jQuery && window.fullpage){ | |||
| 4180 | 4195 | ||
| 4181 | 4196 | $.fn.fullpage = function(options) { | |
| 4182 | 4197 | options = $.extend({}, options, {'$': $}); | |
| 4183 | - new fullpage(this[0], options); | ||
| 4198 | + var instance = new fullpage(this[0], options); | ||
| 4184 | 4199 | }; | |
| 4185 | 4200 | })(window.jQuery, window.fullpage); | |
| 4186 | 4201 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,18 @@ | |||
| 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>Vue-fullpage - fullPage.js</title> | ||
| 7 | + <meta name="author" content="Alvaro Trigo Lopez" /> | ||
| 8 | + <meta name="description" content="fullPage auto-height example." /> | ||
| 9 | + <meta name="keywords" content="fullpage,jquery,demo,screen,fullscreen,auto-height,full-screen" /> | ||
| 10 | + <meta name="Resource-type" content="Document" /> | ||
| 11 | + <meta http-equiv="refresh" content="0; url=http://alvarotrigo.com/angular-fullpage/" /> | ||
| 12 | + </head> | ||
| 13 | + <body> | ||
| 14 | + | ||
| 15 | + Redirecting... | ||
| 16 | + | ||
| 17 | + </body> | ||
| 18 | + </html> | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments