";
- htmlcontent += "
";
- htmlcontent += "
";
- htmlcontent += "
";
- htmlcontent += "
";
- htmlcontent += "
";
+ if(settings.showNav){
+ htmlcontent += "
";
+ }
htmlcontent += "
";
htmlcontent += currentcontent;
htmlcontent += "
";
@@ -180,6 +182,10 @@
scrollTo: "panel", // panel or listitem
animationSpeed: 400,
animationEasing: "easeInOutExpo",
+ showNav: true,
+ nextText: "Next",
+ prevText: "Previous",
+ closeText: "Close",
onStart: function(){
console.log("Gridder Inititialized");
},
diff --git a/dist/js/jquery.gridder.min.js b/dist/js/jquery.gridder.min.js
index fea5c92..a5b6117 100644
--- a/dist/js/jquery.gridder.min.js
+++ b/dist/js/jquery.gridder.min.js
@@ -6,4 +6,4 @@
* Made by Orion Gunning
* Under MIT License
*/
-!function(){for(var a,b=function(){},c=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],d=c.length,e=window.console=window.console||{};d--;)a=c[d],e[a]||(e[a]=b)}(),function(a){a.fn.extend(a.easing,{def:"easeInOutExpo",easeInOutExpo:function(a,b,c,d,e){return 0===b?c:b===e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c}}),a.fn.gridderExpander=function(b){var c=a.extend({},a.fn.gridderExpander.defaults,b);return this.each(function(){function b(b,c){c.scroll&&a("html, body").animate({scrollTop:b.find(".selectedItem").offset().top-c.scrollOffset},{duration:200,easing:c.animationEasing}),e.removeClass("hasSelectedItem"),f=!1,b.find(".selectedItem").removeClass("selectedItem"),b.find(".gridder-show").slideUp(c.animationSpeed,c.animationEasing,function(){b.find(".gridder-show").remove(),c.onClosed(b)})}var d,e=a(this),f=!1;c.onStart(e),e.find(".gridder-list").on("click",function(g){g.stopPropagation();var h=a(this);if(h.hasClass("selectedItem"))return void b(e,c);e.find(".selectedItem").removeClass("selectedItem"),h.addClass("selectedItem"),e.find(".gridder-show").remove(),e.hasClass("hasSelectedItem")||e.addClass("hasSelectedItem");var i=a('
');d=i.insertAfter(h);var j=a(h.data("griddercontent")).html(),k='
';if(k+='
",k+='
',k+=j,k+="
",k+="
",f?(d.html(k),d.find(".gridder-padding").fadeIn(c.animationSpeed,c.animationEasing,function(){f=!0,a.isFunction(c.onContent)&&c.onContent(d)})):d.hide().append(k).slideDown(c.animationSpeed,c.animationEasing,function(){f=!0,a.isFunction(c.onContent)&&c.onContent(d)}),c.scroll){var l="panel"===c.scrollTo?h.offset().top+h.height()-c.scrollOffset:h.offset().top-c.scrollOffset;a("html, body").animate({scrollTop:l},{duration:c.animationSpeed,easing:c.animationEasing})}}),e.on("click",".gridder-nav.next",function(b){b.preventDefault(),a(this).parents(".gridder-show").next().trigger("click")}),e.on("click",".gridder-nav.prev",function(b){b.preventDefault(),a(this).parents(".gridder-show").prev().prev().trigger("click")}),e.on("click",".gridder-close",function(a){a.preventDefault(),b(e,c)})})},a.fn.gridderExpander.defaults={scroll:!0,scrollOffset:30,scrollTo:"panel",animationSpeed:400,animationEasing:"easeInOutExpo",onStart:function(){console.log("Gridder Inititialized")},onContent:function(){console.log("Gridder Content Loaded")},onClosed:function(){console.log("Gridder Closed")}}}(jQuery);
\ No newline at end of file
+!function(){for(var a,b=function(){},c=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],d=c.length,e=window.console=window.console||{};d--;)a=c[d],e[a]||(e[a]=b)}(),function(a){a.fn.extend(a.easing,{def:"easeInOutExpo",easeInOutExpo:function(a,b,c,d,e){return 0===b?c:b===e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c}}),a.fn.gridderExpander=function(b){var c=a.extend({},a.fn.gridderExpander.defaults,b);return this.each(function(){function b(b,c){c.scroll&&a("html, body").animate({scrollTop:b.find(".selectedItem").offset().top-c.scrollOffset},{duration:200,easing:c.animationEasing}),e.removeClass("hasSelectedItem"),f=!1,b.find(".selectedItem").removeClass("selectedItem"),b.find(".gridder-show").slideUp(c.animationSpeed,c.animationEasing,function(){b.find(".gridder-show").remove(),c.onClosed(b)})}var d,e=a(this),f=!1;c.onStart(e),e.find(".gridder-list").on("click",function(g){g.stopPropagation();var h=a(this);if(h.hasClass("selectedItem"))return void b(e,c);e.find(".selectedItem").removeClass("selectedItem"),h.addClass("selectedItem"),e.find(".gridder-show").remove(),e.hasClass("hasSelectedItem")||e.addClass("hasSelectedItem");var i=a('
');d=i.insertAfter(h);var j=a(h.data("griddercontent")).html(),k='
';if(c.showNav&&(k+='
"),k+='
',k+=j,k+="
",k+="
",f?(d.html(k),d.find(".gridder-padding").fadeIn(c.animationSpeed,c.animationEasing,function(){f=!0,a.isFunction(c.onContent)&&c.onContent(d)})):d.hide().append(k).slideDown(c.animationSpeed,c.animationEasing,function(){f=!0,a.isFunction(c.onContent)&&c.onContent(d)}),c.scroll){var l="panel"===c.scrollTo?h.offset().top+h.height()-c.scrollOffset:h.offset().top-c.scrollOffset;a("html, body").animate({scrollTop:l},{duration:c.animationSpeed,easing:c.animationEasing})}}),e.on("click",".gridder-nav.next",function(b){b.preventDefault(),a(this).parents(".gridder-show").next().trigger("click")}),e.on("click",".gridder-nav.prev",function(b){b.preventDefault(),a(this).parents(".gridder-show").prev().prev().trigger("click")}),e.on("click",".gridder-close",function(a){a.preventDefault(),b(e,c)})})},a.fn.gridderExpander.defaults={scroll:!0,scrollOffset:30,scrollTo:"panel",animationSpeed:400,animationEasing:"easeInOutExpo",showNav:!0,nextText:"Next",prevText:"Previous",closeText:"Close",onStart:function(){console.log("Gridder Inititialized")},onContent:function(){console.log("Gridder Content Loaded")},onClosed:function(){console.log("Gridder Closed")}}}(jQuery);
\ No newline at end of file
diff --git a/src/jquery.gridder.js b/src/jquery.gridder.js
index 3b6655f..11d326c 100644
--- a/src/jquery.gridder.js
+++ b/src/jquery.gridder.js
@@ -101,11 +101,13 @@
/* EXPANDED OUTPUT */
var currentcontent = $(myself.data("griddercontent")).html();
var htmlcontent = "
";
- htmlcontent += "
";
- htmlcontent += "
";
- htmlcontent += "
";
- htmlcontent += "
";
- htmlcontent += "
";
+ if(settings.showNav){
+ htmlcontent += "
";
+ }
htmlcontent += "
";
htmlcontent += currentcontent;
htmlcontent += "
";
@@ -172,6 +174,10 @@
scrollTo: "panel", // panel or listitem
animationSpeed: 400,
animationEasing: "easeInOutExpo",
+ showNav: true,
+ nextText: "Next",
+ prevText: "Previous",
+ closeText: "Close",
onStart: function(){
console.log("Gridder Inititialized");
},