Skip to content

Commit

Permalink
v01.00.03
Browse files Browse the repository at this point in the history
v01.00.03, added swipe functionality to the Bootstrap Carousel
  • Loading branch information
dnnconsulting committed May 11, 2016
1 parent 29c6b7d commit 16632ef
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DnnBootster.dnn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<dotnetnuke type="Package" version="5.0">
<packages>
<package name="DnnC.Skins.DnnBootster" type="Skin" version="01.00.02">
<package name="DnnC.Skins.DnnBootster" type="Skin" version="01.00.03">
<friendlyName>DnnBootster</friendlyName>
<description>A responsive DNN skin using Bootstrap v3.3.6. Requires installation via the Host/Extensions page.</description>
<owner>
Expand Down
7 changes: 7 additions & 0 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
<hr/>
<h3>About the DnnBootster Theme</h3>

<h4>Version 01.00.03</h4><br />
Small change
<h5>Added</h5>
<ul>
<li>Improved the functionality of the standard Bootstrap slider, added swipe functionality</li>
</ul>

<h4>Version 01.00.02</h4><br />
Small changes
<h5>Added</h5>
Expand Down
8 changes: 8 additions & 0 deletions assets/js/bootster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
});

0 comments on commit 16632ef

Please sign in to comment.