From 16632ef1fa5cb6432632abfd13f74562078e7df6 Mon Sep 17 00:00:00 2001 From: dnnconsulting Date: Wed, 11 May 2016 15:46:37 +0200 Subject: [PATCH] v01.00.03 v01.00.03, added swipe functionality to the Bootstrap Carousel --- DnnBootster.dnn | 2 +- ReleaseNotes.txt | 7 +++++++ assets/js/bootster.js | 8 ++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/DnnBootster.dnn b/DnnBootster.dnn index 3b215c7..4eb477b 100644 --- a/DnnBootster.dnn +++ b/DnnBootster.dnn @@ -1,6 +1,6 @@ - + DnnBootster A responsive DNN skin using Bootstrap v3.3.6. Requires installation via the Host/Extensions page. diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 20baec9..d3f2d5c 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -6,6 +6,13 @@

About the DnnBootster Theme

+

Version 01.00.03


+ Small change +
Added
+
    +
  • Improved the functionality of the standard Bootstrap slider, added swipe functionality
  • +
+

Version 01.00.02


Small changes
Added
diff --git a/assets/js/bootster.js b/assets/js/bootster.js index 7bdd75c..9e91236 100644 --- a/assets/js/bootster.js +++ b/assets/js/bootster.js @@ -44,3 +44,11 @@ }); + + +// *** Add swipe functionality to the Carousel +(function (b) { b.fn.bcSwipe = function (c) { var f = { threshold: 50 }; c && b.extend(f, c); this.each(function () { function c(a) { 1 == a.touches.length && (d = a.touches[0].pageX, e = !0, this.addEventListener("touchmove", g, !1)) } function g(a) { e && (a = d - a.touches[0].pageX, Math.abs(a) >= f.threshold && (h(), 0 < a ? b(this).carousel("next") : b(this).carousel("prev"))) } function h() { this.removeEventListener("touchmove", g); d = null; e = !1 } var e = !1, d; "ontouchstart" in document.documentElement && this.addEventListener("touchstart", c, !1) }); return this } })(jQuery); + +$(document).ready(function () { + $('.carousel').bcSwipe({ threshold: 50 }); +}); \ No newline at end of file