|
|
@ -144,7 +144,7 @@ |
|
|
|
if (settings.pagination === true) { |
|
|
|
if (settings.pagination === true) { |
|
|
|
|
|
|
|
|
|
|
|
// On touch start
|
|
|
|
// On touch start
|
|
|
|
$tabs.bind("click", function (e) { |
|
|
|
$tabs.on("click", function (e) { |
|
|
|
e.preventDefault(); |
|
|
|
e.preventDefault(); |
|
|
|
restartCycle(); |
|
|
|
restartCycle(); |
|
|
|
|
|
|
|
|
|
|
@ -178,20 +178,20 @@ |
|
|
|
// Prev and Next
|
|
|
|
// Prev and Next
|
|
|
|
if (settings.nav === true) { |
|
|
|
if (settings.nav === true) { |
|
|
|
|
|
|
|
|
|
|
|
// Build markup
|
|
|
|
// Build navigation
|
|
|
|
var navMarkup = |
|
|
|
var navMarkup = |
|
|
|
"<a href=\"#\" class=\"" + namespaceIndex + "_nav prev\">«</a>" + |
|
|
|
"<a href=\"#\" class=\"" + namespaceIndex + "_nav prev\">«</a>" + |
|
|
|
"<a href=\"#\" class=\"" + namespaceIndex + "_nav next\">»</a>"; |
|
|
|
"<a href=\"#\" class=\"" + namespaceIndex + "_nav next\">»</a>"; |
|
|
|
|
|
|
|
|
|
|
|
// Inject markup
|
|
|
|
// Inject navigation
|
|
|
|
$this.after(navMarkup); |
|
|
|
$this.after(navMarkup); |
|
|
|
|
|
|
|
|
|
|
|
// Buttons
|
|
|
|
// Prev and next buttons
|
|
|
|
var $prev = $("." + namespaceIndex + "_nav.prev"), |
|
|
|
var $prev = $("." + namespaceIndex + "_nav.prev"), |
|
|
|
$next = $("." + namespaceIndex + "_nav.next"); |
|
|
|
$next = $("." + namespaceIndex + "_nav.next"); |
|
|
|
|
|
|
|
|
|
|
|
// Previous slide
|
|
|
|
// Prev slide
|
|
|
|
$prev.bind("click", function (e) { |
|
|
|
$prev.on("click", function (e) { |
|
|
|
e.preventDefault(); |
|
|
|
e.preventDefault(); |
|
|
|
var idx = $slide.index($("." + visibleClass)), |
|
|
|
var idx = $slide.index($("." + visibleClass)), |
|
|
|
idxTo = idx - 1; |
|
|
|
idxTo = idx - 1; |
|
|
@ -204,7 +204,7 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// Next slide
|
|
|
|
// Next slide
|
|
|
|
$next.bind("click", function (e) { |
|
|
|
$next.on("click", function (e) { |
|
|
|
e.preventDefault(); |
|
|
|
e.preventDefault(); |
|
|
|
var idx = $slide.index($("." + visibleClass)), |
|
|
|
var idx = $slide.index($("." + visibleClass)), |
|
|
|
idxTo = idx + 1 < length ? index + 1 : 0; |
|
|
|
idxTo = idx + 1 < length ? index + 1 : 0; |
|
|
|