From 881ac38f55b8004f4ecffc5e4989a32c34d71071 Mon Sep 17 00:00:00 2001 From: gchokeen Date: Tue, 27 Oct 2015 11:13:04 +0530 Subject: [PATCH 1/2] defaultHash --- jquery.scrollify.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jquery.scrollify.js b/jquery.scrollify.js index 5266744..9f45265 100644 --- a/jquery.scrollify.js +++ b/jquery.scrollify.js @@ -57,6 +57,7 @@ scrollbars: true, axis:"y", target:"html,body", + defaultHash:true, before:function() {}, after:function() {}, afterResize:function() {} @@ -69,6 +70,7 @@ settings.before(index,elements); interstitialIndex = 1; if(settings.sectionName) { + window.location.hash = names[index]; } if(instant) { @@ -408,7 +410,10 @@ if(hasLocation===false && settings.sectionName) { - window.location.hash = names[0]; + if (settings.defaultHash) { + window.location.hash = names[0]; + } + } else { animateScroll(index,false); } From 2b0f9b2e372b2743d11b0c3e949362855ed27864 Mon Sep 17 00:00:00 2001 From: gchokeen Date: Tue, 27 Oct 2015 11:19:55 +0530 Subject: [PATCH 2/2] defaultHash feature added --- jquery.scrollify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.scrollify.js b/jquery.scrollify.js index 9f45265..ff992f6 100644 --- a/jquery.scrollify.js +++ b/jquery.scrollify.js @@ -57,7 +57,7 @@ scrollbars: true, axis:"y", target:"html,body", - defaultHash:true, + defaultHash:true, before:function() {}, after:function() {}, afterResize:function() {}