Skip to content

Commit

Permalink
close #23 navigation oprions
Browse files Browse the repository at this point in the history
Updated demo
  • Loading branch information
orion3dgames committed Jun 9, 2015
1 parent f73d127 commit 2e6e80d
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 13 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,13 @@ Live demo GRIDDER v2 : http://www.oriongunning.com/demo/gridder-ajax/demo.php
$('.gridder').gridderExpander({
scroll: true,
scrollOffset: 30,
scrollTo: "panel", // panel or listitem
scrollTo: "panel", // panel or listitem
animationSpeed: 400,
animationEasing: "easeInOutExpo",
showNav: true, // Show Navigation
nextText: "Next", // Next button text
prevText: "Previous", // Previous button text
closeText: "Close", // Close button text
onStart: function(){
console.log("Gridder Inititialized");
},
Expand Down
6 changes: 5 additions & 1 deletion demo/demo.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</div>

<div class="container">

<ul class="gridder">
<?php for ($i = 0; $i < 14; $i++): ?>
<li class="gridder-list" data-griddercontent="#gridder-content-<?php echo $i; ?>">
Expand Down Expand Up @@ -86,6 +86,10 @@
scrollTo: "panel", // "panel" or "listitem"
animationSpeed: 400,
animationEasing: "easeInOutExpo",
showNav: true,
nextText: "Next",
prevText: "Previous",
closeText: "Close",
onStart: function () {
console.log("Gridder Inititialized");
},
Expand Down
16 changes: 11 additions & 5 deletions dist/js/jquery.gridder.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,13 @@
/* EXPANDED OUTPUT */
var currentcontent = $(myself.data("griddercontent")).html();
var htmlcontent = "<div class=\"gridder-padding\">";
htmlcontent += "<div class=\"gridder-navigation\">";
htmlcontent += "<a href=\"#\" class=\"gridder-close\"><i class=\"fa fa-angle-right\" style=\"position: relative; left: 3px\"></i><i class=\"fa fa-angle-left\"></i></a>";
htmlcontent += "<a href=\"#\" class=\"gridder-nav prev\"><i class=\"fa fa-angle-left\"></i></a>";
htmlcontent += "<a href=\"#\" class=\"gridder-nav next\"><i class=\"fa fa-angle-right\"></i></a>";
htmlcontent += "</div>";
if(settings.showNav){
htmlcontent += "<div class=\"gridder-navigation\">";
htmlcontent += "<a href=\"#\" class=\"gridder-close\">"+settings.closeText+"</a>";
htmlcontent += "<a href=\"#\" class=\"gridder-nav prev\">"+settings.prevText+"</a>";
htmlcontent += "<a href=\"#\" class=\"gridder-nav next\">"+settings.nextText+"</a>";
htmlcontent += "</div>";
}
htmlcontent += "<div class=\"gridder-expanded-content\">";
htmlcontent += currentcontent;
htmlcontent += "</div>";
Expand Down Expand Up @@ -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");
},
Expand Down
2 changes: 1 addition & 1 deletion dist/js/jquery.gridder.min.js

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

16 changes: 11 additions & 5 deletions src/jquery.gridder.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,13 @@
/* EXPANDED OUTPUT */
var currentcontent = $(myself.data("griddercontent")).html();
var htmlcontent = "<div class=\"gridder-padding\">";
htmlcontent += "<div class=\"gridder-navigation\">";
htmlcontent += "<a href=\"#\" class=\"gridder-close\"><i class=\"fa fa-angle-right\" style=\"position: relative; left: 3px\"></i><i class=\"fa fa-angle-left\"></i></a>";
htmlcontent += "<a href=\"#\" class=\"gridder-nav prev\"><i class=\"fa fa-angle-left\"></i></a>";
htmlcontent += "<a href=\"#\" class=\"gridder-nav next\"><i class=\"fa fa-angle-right\"></i></a>";
htmlcontent += "</div>";
if(settings.showNav){
htmlcontent += "<div class=\"gridder-navigation\">";
htmlcontent += "<a href=\"#\" class=\"gridder-close\">"+settings.closeText+"</a>";
htmlcontent += "<a href=\"#\" class=\"gridder-nav prev\">"+settings.prevText+"</a>";
htmlcontent += "<a href=\"#\" class=\"gridder-nav next\">"+settings.nextText+"</a>";
htmlcontent += "</div>";
}
htmlcontent += "<div class=\"gridder-expanded-content\">";
htmlcontent += currentcontent;
htmlcontent += "</div>";
Expand Down Expand Up @@ -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");
},
Expand Down

0 comments on commit 2e6e80d

Please sign in to comment.