From 93cb745423ec1d0e9913c5c5c34c10be12d22db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro?= Date: Tue, 30 May 2017 23:30:07 +0100 Subject: [PATCH 1/5] Update README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6f8de8922..bdbeada56 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@    **|**   *7Kb gziped*   **|**   *Created by [@imac2](https://twitter.com/imac2)* - [Live demo](http://alvarotrigo.com/fullPage/) -- [Wordpress theme](http://alvarotrigo.com/fullPage/utils/wordpress-y-theme.html) +- [Wordpress theme](http://alvarotrigo.com/fullPage/utils/wordpress.html) - [fullpage.js Extensions](http://alvarotrigo.com/fullPage/extensions/) - [Frequently Answered Questions](https://github.com/alvarotrigo/fullPage.js/wiki/FAQ---Frequently-Answered-Questions) @@ -868,8 +868,7 @@ To see the list of recent changes, see [Releases section](https://github.com/alv Want to build fullpage.js distribution files? Please see [Build Tasks](https://github.com/alvarotrigo/fullPage.js/wiki/Build-tasks) # Resources -- [Wordpress theme 1](http://alvarotrigo.com/fullPage/utils/wordpress-y-theme.html) -- [Wordpress theme 2](http://alvarotrigo.com/fullPage/utils/wordpress.html) +- [Wordpress theme](http://alvarotrigo.com/fullPage/utils/wordpress.html) - [CSS Easing Animation Tool - Matthew Lein](http://matthewlein.com/ceaser/) (useful to define the `easingcss3` value) - [fullPage.js jsDelivr CDN](http://www.jsdelivr.com/#!jquery.fullpage) - [fullPage.js plugin for October CMS](http://octobercms.com/plugin/freestream-parallax) From 7e0e44ea1427e94a756f8af45c14d6a599e7be2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro?= Date: Tue, 30 May 2017 23:30:54 +0100 Subject: [PATCH 2/5] Update README_SPANISH.md --- README_SPANISH.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README_SPANISH.md b/README_SPANISH.md index 6753c3236..ec1e77919 100644 --- a/README_SPANISH.md +++ b/README_SPANISH.md @@ -865,8 +865,7 @@ Solo disponible en ingles :) Want to build fullpage.js distribution files? Please see [Build Tasks](https://github.com/alvarotrigo/fullPage.js/wiki/Build-tasks) # Recursos -- [Template de Wordpress 1](http://alvarotrigo.com/fullPage/utils/wordpress-y-theme.html) -- [Template de Wordpress 2](http://alvarotrigo.com/fullPage/utils/wordpress.html) +- [Template de Wordpress](http://alvarotrigo.com/fullPage/utils/wordpress.html) - [Herramienta de animacion de CSS Easing - Matthew Lein](http://matthewlein.com/ceaser/) (útil para definir la opción `easingcss3`) - [fullPage.js jsDelivr CDN](http://www.jsdelivr.com/#!jquery.fullpage) - [fullPage.js plugin para October CMS](http://octobercms.com/plugin/freestream-parallax) @@ -970,4 +969,4 @@ Se concede permiso, de forma gratuita, a cualquier persona que obtenga una copia El aviso de copyright anterior y este aviso de permiso se incluirán en todas las copias o partes sustanciales del Software. -EL SOFTWARE SE PROPORCIONA "TAL CUAL", SIN GARANTÍA DE NINGÚN TIPO, EXPRESA O IMPLÍCITA, INCLUYENDO PERO NO LIMITADO A GARANTÍAS DE COMERCIALIZACIÓN, IDONEIDAD PARA UN PROPÓSITO PARTICULAR Y NO INFRACCIÓN. EN NINGÚN CASO LOS AUTORES O TITULARES DEL COPYRIGHT SERÁN RESPONSABLES DE NINGUNA RECLAMACIÓN, DAÑOS U OTRAS RESPONSABILIDADES, YA SEA EN UNA ACCIÓN DE CONTRATO, AGRAVIO O CUALQUIER OTRO MOTIVO, QUE SURJA DE O EN CONEXIÓN CON EL SOFTWARE O EL USO U OTRO TIPO DE ACCIONES EN EL SOFTWARE \ No newline at end of file +EL SOFTWARE SE PROPORCIONA "TAL CUAL", SIN GARANTÍA DE NINGÚN TIPO, EXPRESA O IMPLÍCITA, INCLUYENDO PERO NO LIMITADO A GARANTÍAS DE COMERCIALIZACIÓN, IDONEIDAD PARA UN PROPÓSITO PARTICULAR Y NO INFRACCIÓN. EN NINGÚN CASO LOS AUTORES O TITULARES DEL COPYRIGHT SERÁN RESPONSABLES DE NINGUNA RECLAMACIÓN, DAÑOS U OTRAS RESPONSABILIDADES, YA SEA EN UNA ACCIÓN DE CONTRATO, AGRAVIO O CUALQUIER OTRO MOTIVO, QUE SURJA DE O EN CONEXIÓN CON EL SOFTWARE O EL USO U OTRO TIPO DE ACCIONES EN EL SOFTWARE From 99236337c5ba0c1a849f61c7c3b5b23040eb5a42 Mon Sep 17 00:00:00 2001 From: "yongqiang.sun" Date: Sun, 9 Jul 2017 11:53:02 +0800 Subject: [PATCH 3/5] fix destroy for jquery removeData --- jquery.fullPage.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jquery.fullPage.js b/jquery.fullPage.js index 7ea5aae48..16fe0c76a 100644 --- a/jquery.fullPage.js +++ b/jquery.fullPage.js @@ -2779,6 +2779,10 @@ setSrc($(this), 'srcset'); }); + container.find('[data-anchor]').each(function () { + $(this).removeData('anchor'); + }); + $(SECTION_NAV_SEL + ', ' + SLIDES_NAV_SEL + ', ' + SLIDES_ARROW_SEL).remove(); //removing inline styles From 32a785f13e5e912ed8832402537bbc6e7408d3e5 Mon Sep 17 00:00:00 2001 From: "yongqiang.sun" Date: Wed, 12 Jul 2017 19:03:09 +0800 Subject: [PATCH 4/5] fix remove user-defined anchor --- jquery.fullPage.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/jquery.fullPage.js b/jquery.fullPage.js index 16fe0c76a..99aa0b0b9 100644 --- a/jquery.fullPage.js +++ b/jquery.fullPage.js @@ -194,6 +194,8 @@ //flag to avoid very fast sliding for landscape sliders var slideMoving = false; + //flag to remove the Dom attribute data-anchor + var customAnchors = true; var isTouchDevice = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/); var isTouch = (('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0) || (navigator.maxTouchPoints)); @@ -624,6 +626,7 @@ //no anchors option? Checking for them in the DOM attributes if(!options.anchors.length){ + customAnchors = false; options.anchors = sections.filter('[data-anchor]').map(function(){ return $(this).data('anchor').toString(); }).get(); @@ -2778,10 +2781,16 @@ container.find('img[data-srcset]').each(function(){ setSrc($(this), 'srcset'); }); - + // remove data-anchor cache for jQuery.fn.data container.find('[data-anchor]').each(function () { $(this).removeData('anchor'); }); + // remove the attribute for user-defind anchor + if (customAnchors) { + container.find('[data-anchor]').each(function () { + $(this).removeAttr('data-anchor'); + }); + } $(SECTION_NAV_SEL + ', ' + SLIDES_NAV_SEL + ', ' + SLIDES_ARROW_SEL).remove(); From e67f689cacb5be548fdbfef78c3abfe0d48a58f5 Mon Sep 17 00:00:00 2001 From: time Date: Wed, 18 Oct 2017 04:07:30 -0500 Subject: [PATCH 5/5] Update jquery.fullPage.js fix destory method data-anchor --- jquery.fullPage.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/jquery.fullPage.js b/jquery.fullPage.js index 99aa0b0b9..62c639b97 100644 --- a/jquery.fullPage.js +++ b/jquery.fullPage.js @@ -195,7 +195,7 @@ //flag to avoid very fast sliding for landscape sliders var slideMoving = false; //flag to remove the Dom attribute data-anchor - var customAnchors = true; + var anchorsDefinedByUser = true; var isTouchDevice = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/); var isTouch = (('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0) || (navigator.maxTouchPoints)); @@ -623,10 +623,10 @@ */ function setOptionsFromDOM(){ var sections = container.find(options.sectionSelector); + anchorsDefinedByUser = sections.filter('[data-anchor]').length == 0 //no anchors option? Checking for them in the DOM attributes if(!options.anchors.length){ - customAnchors = false; options.anchors = sections.filter('[data-anchor]').map(function(){ return $(this).data('anchor').toString(); }).get(); @@ -2784,14 +2784,12 @@ // remove data-anchor cache for jQuery.fn.data container.find('[data-anchor]').each(function () { $(this).removeData('anchor'); - }); - // remove the attribute for user-defind anchor - if (customAnchors) { - container.find('[data-anchor]').each(function () { + if (anchorsDefinedByUser) { + // remove the attribute for user-defind anchor $(this).removeAttr('data-anchor'); - }); - } - + } + }); + $(SECTION_NAV_SEL + ', ' + SLIDES_NAV_SEL + ', ' + SLIDES_ARROW_SEL).remove(); //removing inline styles