Permalink
Browse files

mobirise 4 free templates

  • Loading branch information...
Mobirise committed Oct 4, 2017
1 parent 778d8ae commit 80ddfac805e69b8d37db8d6af4a6384df42e6997
Showing with 110,483 additions and 0 deletions.
  1. +920 −0 mobirise4-free-bootstrap-templates/article-template.html
  2. +212 −0 mobirise4-free-bootstrap-templates/assets/bootstrap-carousel-swipe/bootstrap-carousel-swipe.js
  3. +2 −0 mobirise4-free-bootstrap-templates/assets/bootstrap/css/bootstrap-grid.min.css
  4. +2 −0 mobirise4-free-bootstrap-templates/assets/bootstrap/css/bootstrap-reboot.min.css
  5. +7 −0 mobirise4-free-bootstrap-templates/assets/bootstrap/css/bootstrap.min.css
  6. +6 −0 mobirise4-free-bootstrap-templates/assets/bootstrap/js/bootstrap.min.js
  7. +1 −0 mobirise4-free-bootstrap-templates/assets/data-tables/data-tables.bootstrap4.min.css
  8. +8 −0 mobirise4-free-bootstrap-templates/assets/data-tables/data-tables.bootstrap4.min.js
  9. +166 −0 mobirise4-free-bootstrap-templates/assets/data-tables/jquery.data-tables.min.js
  10. +265 −0 mobirise4-free-bootstrap-templates/assets/dropdown/css/style.css
  11. +52 −0 mobirise4-free-bootstrap-templates/assets/dropdown/js/script.min.js
  12. +156 −0 mobirise4-free-bootstrap-templates/assets/formoid/formoid.min.js
  13. BIN mobirise4-free-bootstrap-templates/assets/images/01.jpg
  14. BIN mobirise4-free-bootstrap-templates/assets/images/02.jpg
  15. BIN mobirise4-free-bootstrap-templates/assets/images/03.jpg
  16. BIN mobirise4-free-bootstrap-templates/assets/images/04.jpg
  17. BIN mobirise4-free-bootstrap-templates/assets/images/05.jpg
  18. BIN mobirise4-free-bootstrap-templates/assets/images/1.jpg
  19. BIN mobirise4-free-bootstrap-templates/assets/images/2.jpg
  20. BIN mobirise4-free-bootstrap-templates/assets/images/2017-8-1-11-56-53-950969.jpg
  21. BIN mobirise4-free-bootstrap-templates/assets/images/2017-8-1-11-57-15-727423.jpg
  22. BIN mobirise4-free-bootstrap-templates/assets/images/2017-8-1-11-57-32-412416.jpg
  23. BIN mobirise4-free-bootstrap-templates/assets/images/2017-8-1-11-57-53-750243.jpg
  24. BIN mobirise4-free-bootstrap-templates/assets/images/2017-8-1-11-58-17-535209.jpg
  25. BIN mobirise4-free-bootstrap-templates/assets/images/2017-8-1-12-4-37-10325.jpg
  26. BIN mobirise4-free-bootstrap-templates/assets/images/2017-8-1-12-5-16-29911.jpg
  27. BIN mobirise4-free-bootstrap-templates/assets/images/3.jpg
  28. BIN mobirise4-free-bootstrap-templates/assets/images/andre-thomas-weller-333032-800x1200.jpg
  29. BIN mobirise4-free-bootstrap-templates/assets/images/andre-thomas-weller-333032.jpg
  30. BIN mobirise4-free-bootstrap-templates/assets/images/anemone-350x350.png
  31. BIN mobirise4-free-bootstrap-templates/assets/images/article-template.jpg
  32. BIN mobirise4-free-bootstrap-templates/assets/images/autumn-goodman-242810-1000x1000.jpg
  33. BIN mobirise4-free-bootstrap-templates/assets/images/background1.jpg
  34. BIN mobirise4-free-bootstrap-templates/assets/images/background3.jpg
  35. BIN mobirise4-free-bootstrap-templates/assets/images/background5.jpg
  36. BIN mobirise4-free-bootstrap-templates/assets/images/blog.jpg
  37. BIN mobirise4-free-bootstrap-templates/assets/images/brooke-cagle-171800-1000x1000.jpg
  38. BIN mobirise4-free-bootstrap-templates/assets/images/brooke-lark-207270-2000x1333.jpg
  39. BIN mobirise4-free-bootstrap-templates/assets/images/brooke-lark-207271-2000x1333-800x533.jpg
  40. BIN mobirise4-free-bootstrap-templates/assets/images/brooke-lark-207271-2000x1333.jpg
  41. BIN mobirise4-free-bootstrap-templates/assets/images/bytafont-350x350.png
  42. BIN mobirise4-free-bootstrap-templates/assets/images/calculator-350x350.png
  43. BIN mobirise4-free-bootstrap-templates/assets/images/campbell-boulanger-348382-1333x1666.jpg
  44. BIN mobirise4-free-bootstrap-templates/assets/images/carlos-dominguez-325313-2000x1500.jpg
  45. BIN mobirise4-free-bootstrap-templates/assets/images/carlos-dominguez-342207-2000x1333-800x533.jpg
  46. BIN mobirise4-free-bootstrap-templates/assets/images/carlos-dominguez-342207-2000x1333.jpg
  47. BIN mobirise4-free-bootstrap-templates/assets/images/carlos-dominguez-342207.jpg
  48. BIN mobirise4-free-bootstrap-templates/assets/images/carousel-template.jpg
  49. BIN mobirise4-free-bootstrap-templates/assets/images/catarina-carvalho-344974-1000x1000.jpg
  50. BIN mobirise4-free-bootstrap-templates/assets/images/chrome-remote-desktop-350x350.png
  51. BIN mobirise4-free-bootstrap-templates/assets/images/clear-350x350.png
  52. BIN mobirise4-free-bootstrap-templates/assets/images/clem-onojeghuo-206825-2000x1422.jpg
  53. BIN mobirise4-free-bootstrap-templates/assets/images/coffee-923094-1920-1920x1280-16-1400x933.jpg
  54. BIN mobirise4-free-bootstrap-templates/assets/images/com-350x350.png
  55. BIN mobirise4-free-bootstrap-templates/assets/images/contact-form-template-1.jpg
  56. BIN mobirise4-free-bootstrap-templates/assets/images/daniel-apodaca-335330-2000x2664.jpg
  57. BIN mobirise4-free-bootstrap-templates/assets/images/documentation-template.jpg
  58. BIN mobirise4-free-bootstrap-templates/assets/images/face6.jpg
  59. BIN mobirise4-free-bootstrap-templates/assets/images/facebook-350x350.png
  60. BIN mobirise4-free-bootstrap-templates/assets/images/faq-template.jpg
  61. BIN mobirise4-free-bootstrap-templates/assets/images/footer-template.jpg
  62. BIN mobirise4-free-bootstrap-templates/assets/images/form-templates.jpg
  63. BIN mobirise4-free-bootstrap-templates/assets/images/gallery-template.jpg
  64. BIN mobirise4-free-bootstrap-templates/assets/images/gallery00.jpg
  65. BIN mobirise4-free-bootstrap-templates/assets/images/gallery01.jpg
  66. BIN mobirise4-free-bootstrap-templates/assets/images/gallery02.jpg
  67. BIN mobirise4-free-bootstrap-templates/assets/images/gallery03.jpg
  68. BIN mobirise4-free-bootstrap-templates/assets/images/gallery04.jpg
  69. BIN mobirise4-free-bootstrap-templates/assets/images/gallery05.jpg
  70. BIN mobirise4-free-bootstrap-templates/assets/images/gallery06.jpg
  71. BIN mobirise4-free-bootstrap-templates/assets/images/gallery07.jpg
  72. BIN mobirise4-free-bootstrap-templates/assets/images/google-maps-template.jpg
  73. BIN mobirise4-free-bootstrap-templates/assets/images/google-slides-350x350.png
  74. BIN mobirise4-free-bootstrap-templates/assets/images/grid-template.jpg
  75. BIN mobirise4-free-bootstrap-templates/assets/images/hannah-busing-307816-2000x3000.jpg
  76. BIN mobirise4-free-bootstrap-templates/assets/images/hannah-busing-307816-800x1200.jpg
  77. BIN mobirise4-free-bootstrap-templates/assets/images/hannah-busing-307816.jpg
  78. +1 −0 mobirise4-free-bootstrap-templates/assets/images/hashes.json
  79. BIN mobirise4-free-bootstrap-templates/assets/images/header-template.jpg
  80. BIN mobirise4-free-bootstrap-templates/assets/images/imac-605421-1920-1920x1275.jpg
  81. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-1067975-1920-1920x1439-5-1920x1439.jpg
  82. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-1067975-1920-1920x1439-800x599.jpg
  83. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-1067975-1920-1920x1439.jpg
  84. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-1067982-1920-1920x1439-800x599.jpg
  85. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-1067982-1920-1920x1439-90-1920x1439.jpg
  86. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-1067982-1920-1920x1439.jpg
  87. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-1067983-1920-1920x1440-800x600.jpg
  88. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-1067983-1920-1920x1440.jpg
  89. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-1067991-1920-1920x1440-29-1920x1440.jpg
  90. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-1067991-1920-1920x1440-800x600.jpg
  91. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-1067991-1920-1920x1440.jpg
  92. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-6-458150-1920-1920x1285.jpg
  93. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-6-458151-1920-1920x1285-67-1920x1285.jpg
  94. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-6-458151-1920-1920x1285.jpg
  95. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-6-458153-1920-1920x1285.jpg
  96. BIN mobirise4-free-bootstrap-templates/assets/images/iphone-926663-1920-1920x1280.jpg
  97. BIN mobirise4-free-bootstrap-templates/assets/images/jake-young-168598-800x1200.jpg
  98. BIN mobirise4-free-bootstrap-templates/assets/images/jake-young-168598.jpg
  99. BIN mobirise4-free-bootstrap-templates/assets/images/japheth-mast-317769-2000x1333-800x533.jpg
  100. BIN mobirise4-free-bootstrap-templates/assets/images/japheth-mast-317769-2000x1333.jpg
  101. BIN mobirise4-free-bootstrap-templates/assets/images/jumbotron.jpg
  102. BIN mobirise4-free-bootstrap-templates/assets/images/jumbotron2.jpg
  103. BIN mobirise4-free-bootstrap-templates/assets/images/ken-cheung-256045-2000x1333-800x533.jpg
  104. BIN mobirise4-free-bootstrap-templates/assets/images/ken-cheung-256045-2000x1333.jpg
  105. BIN mobirise4-free-bootstrap-templates/assets/images/kindle-350x350.png
  106. BIN mobirise4-free-bootstrap-templates/assets/images/laura-aziz-78171-2000x1337.jpg
  107. BIN mobirise4-free-bootstrap-templates/assets/images/letizia-bordoni-252913-2000x1333.jpg
  108. BIN mobirise4-free-bootstrap-templates/assets/images/list-template.jpg
  109. BIN mobirise4-free-bootstrap-templates/assets/images/logo2.png
  110. BIN mobirise4-free-bootstrap-templates/assets/images/macbook-926425-1920-1920x1279.jpg
  111. BIN mobirise4-free-bootstrap-templates/assets/images/map-template.jpg
  112. BIN mobirise4-free-bootstrap-templates/assets/images/maps-350x350.png
  113. BIN mobirise4-free-bootstrap-templates/assets/images/maranatha-pizarras-342561-2000x1333.jpg
  114. BIN mobirise4-free-bootstrap-templates/assets/images/maranatha-pizarras-342562-2000x1333-800x533.jpg
  115. BIN mobirise4-free-bootstrap-templates/assets/images/maranatha-pizarras-342562-2000x1333.jpg
  116. BIN mobirise4-free-bootstrap-templates/assets/images/maria-victoria-heredia-reyes-20883-1000x1000.jpg
  117. BIN mobirise4-free-bootstrap-templates/assets/images/mbr-1-1626x1080.jpg
  118. BIN mobirise4-free-bootstrap-templates/assets/images/mbr-10.jpg
  119. BIN mobirise4-free-bootstrap-templates/assets/images/mbr-1080x1080.jpg
  120. BIN mobirise4-free-bootstrap-templates/assets/images/mbr-1620x1080.jpg
  121. BIN mobirise4-free-bootstrap-templates/assets/images/mbr-1624x1080.jpg
  122. BIN mobirise4-free-bootstrap-templates/assets/images/mbr-1631x1080.jpg
  123. BIN mobirise4-free-bootstrap-templates/assets/images/mbr-1920x1080.jpg
  124. BIN mobirise4-free-bootstrap-templates/assets/images/mbr-2.jpg
  125. BIN mobirise4-free-bootstrap-templates/assets/images/mbr-3.jpg
  126. BIN mobirise4-free-bootstrap-templates/assets/images/mbr-4.jpg
  127. BIN mobirise4-free-bootstrap-templates/assets/images/mbr-5.jpg
  128. BIN mobirise4-free-bootstrap-templates/assets/images/mbr-6.jpg
  129. BIN mobirise4-free-bootstrap-templates/assets/images/mbr-7.jpg
  130. BIN mobirise4-free-bootstrap-templates/assets/images/mbr-8.jpg
  131. BIN mobirise4-free-bootstrap-templates/assets/images/mbr4th-horizontal.jpg
  132. BIN mobirise4-free-bootstrap-templates/assets/images/menu-template.jpg
  133. BIN mobirise4-free-bootstrap-templates/assets/images/micah-h-13762-2000x1333.jpg
  134. BIN mobirise4-free-bootstrap-templates/assets/images/navbar-template.jpg
  135. BIN mobirise4-free-bootstrap-templates/assets/images/navigation-menu.jpg
  136. BIN mobirise4-free-bootstrap-templates/assets/images/one-page-1.jpg
  137. BIN mobirise4-free-bootstrap-templates/assets/images/parallax-scrolling-template.jpg
  138. BIN mobirise4-free-bootstrap-templates/assets/images/parallax-template-1.jpg
  139. BIN mobirise4-free-bootstrap-templates/assets/images/parallax-template.jpg
  140. BIN mobirise4-free-bootstrap-templates/assets/images/phone-350x350.png
  141. BIN mobirise4-free-bootstrap-templates/assets/images/photo-gallery-template.jpg
  142. BIN mobirise4-free-bootstrap-templates/assets/images/photos-350x350.png
  143. BIN mobirise4-free-bootstrap-templates/assets/images/preview.jpg
  144. BIN mobirise4-free-bootstrap-templates/assets/images/registration-form-template-1.jpg
  145. BIN mobirise4-free-bootstrap-templates/assets/images/registration-form-template.jpg
  146. BIN mobirise4-free-bootstrap-templates/assets/images/reminders-350x350.png
  147. BIN mobirise4-free-bootstrap-templates/assets/images/samuel-fyfe-235457-2000x1333.jpg
  148. BIN mobirise4-free-bootstrap-templates/assets/images/shopping-cart.jpg
  149. BIN mobirise4-free-bootstrap-templates/assets/images/slider-1.jpg
  150. BIN mobirise4-free-bootstrap-templates/assets/images/slider-template.jpg
  151. BIN mobirise4-free-bootstrap-templates/assets/images/slider.jpg
  152. BIN mobirise4-free-bootstrap-templates/assets/images/social-network-template.jpg
  153. BIN mobirise4-free-bootstrap-templates/assets/images/tab-template.jpg
  154. BIN mobirise4-free-bootstrap-templates/assets/images/table-template.jpg
  155. BIN mobirise4-free-bootstrap-templates/assets/images/timothy-paul-smith-351366-1333x1999.jpg
  156. BIN mobirise4-free-bootstrap-templates/assets/images/timothy-paul-smith-351366-800x1199.jpg
  157. BIN mobirise4-free-bootstrap-templates/assets/images/timothy-paul-smith-351366.jpg
  158. BIN mobirise4-free-bootstrap-templates/assets/images/video-bg-1.jpg
  159. BIN mobirise4-free-bootstrap-templates/assets/images/video-bg-3.jpg
  160. BIN mobirise4-free-bootstrap-templates/assets/images/video-bg-template.jpg
  161. BIN mobirise4-free-bootstrap-templates/assets/images/video-bg.jpg
  162. BIN mobirise4-free-bootstrap-templates/assets/images/video-gallery-template.jpg
  163. BIN mobirise4-free-bootstrap-templates/assets/images/video-template.jpg
  164. BIN mobirise4-free-bootstrap-templates/assets/images/warren-wong-200912-2000x1304.jpg
  165. BIN mobirise4-free-bootstrap-templates/assets/images/workflow-350x350.png
  166. BIN mobirise4-free-bootstrap-templates/assets/images/youtube-350x350.png
  167. BIN mobirise4-free-bootstrap-templates/assets/images/zheng-41190-2000x1333.jpg
  168. +7 −0 mobirise4-free-bootstrap-templates/assets/imagesloaded/imagesloaded.pkgd.min.js
  169. +7 −0 mobirise4-free-bootstrap-templates/assets/jarallax/jarallax.min.js
  170. +1,038 −0 mobirise4-free-bootstrap-templates/assets/jquery-mb-vimeo_player/jquery.mb.vimeo_player.js
  171. +9 −0 mobirise4-free-bootstrap-templates/assets/jquery-mb-ytplayer/jquery.mb.ytplayer.min.js
  172. +9 −0 mobirise4-free-bootstrap-templates/assets/masonry/masonry.pkgd.min.js
  173. +2 −0 mobirise4-free-bootstrap-templates/assets/mobirise-gallery/player.min.js
  174. +273 −0 mobirise4-free-bootstrap-templates/assets/mobirise-gallery/script.js
  175. +451 −0 mobirise4-free-bootstrap-templates/assets/mobirise-gallery/style.css
  176. +195 −0 mobirise4-free-bootstrap-templates/assets/mobirise-slider-video/script.js
  177. +30,586 −0 mobirise4-free-bootstrap-templates/assets/mobirise/css/mbr-additional.css
  178. +4 −0 mobirise4-free-bootstrap-templates/assets/popper/popper.min.js
  179. +44 −0 mobirise4-free-bootstrap-templates/assets/shopping-cart/jquery.easing.min.js
  180. +21 −0 mobirise4-free-bootstrap-templates/assets/shopping-cart/minicart-customizer.js
  181. +70 −0 mobirise4-free-bootstrap-templates/assets/shopping-cart/minicart-theme.css
  182. +70 −0 mobirise4-free-bootstrap-templates/assets/shopping-cart/minicart.js
  183. BIN mobirise4-free-bootstrap-templates/assets/shopping-cart/shoppingcart.eot
  184. +12 −0 mobirise4-free-bootstrap-templates/assets/shopping-cart/shoppingcart.svg
  185. BIN mobirise4-free-bootstrap-templates/assets/shopping-cart/shoppingcart.ttf
  186. BIN mobirise4-free-bootstrap-templates/assets/shopping-cart/shoppingcart.woff
  187. +750 −0 mobirise4-free-bootstrap-templates/assets/smooth-scroll/smooth-scroll.js
  188. +662 −0 mobirise4-free-bootstrap-templates/assets/social-likes/social-likes.js
  189. +544 −0 mobirise4-free-bootstrap-templates/assets/socicon/css/styles.css
  190. BIN mobirise4-free-bootstrap-templates/assets/socicon/fonts/socicon.eot
  191. +178 −0 mobirise4-free-bootstrap-templates/assets/socicon/fonts/socicon.svg
  192. BIN mobirise4-free-bootstrap-templates/assets/socicon/fonts/socicon.ttf
  193. BIN mobirise4-free-bootstrap-templates/assets/socicon/fonts/socicon.woff
  194. +1 −0 mobirise4-free-bootstrap-templates/assets/tether/tether.min.css
  195. +1 −0 mobirise4-free-bootstrap-templates/assets/tether/tether.min.js
  196. +426 −0 mobirise4-free-bootstrap-templates/assets/theme/css/style.css
  197. +1,268 −0 mobirise4-free-bootstrap-templates/assets/theme/js/script.js
  198. +14 −0 mobirise4-free-bootstrap-templates/assets/touch-swipe/jquery.touch-swipe.min.js
  199. +2 −0 mobirise4-free-bootstrap-templates/assets/vimeo_player/vimeo_player.js
  200. +4 −0 mobirise4-free-bootstrap-templates/assets/web/assets/jquery/jquery.min.js
  201. +476 −0 mobirise4-free-bootstrap-templates/assets/web/assets/mobirise-icons/mobirise-icons.css
  202. BIN mobirise4-free-bootstrap-templates/assets/web/assets/mobirise-icons/mobirise-icons.eot
  203. +160 −0 mobirise4-free-bootstrap-templates/assets/web/assets/mobirise-icons/mobirise-icons.svg
  204. BIN mobirise4-free-bootstrap-templates/assets/web/assets/mobirise-icons/mobirise-icons.ttf
  205. BIN mobirise4-free-bootstrap-templates/assets/web/assets/mobirise-icons/mobirise-icons.woff
  206. +763 −0 mobirise4-free-bootstrap-templates/background-template.html
  207. +310 −0 mobirise4-free-bootstrap-templates/blog.html
  208. +665 −0 mobirise4-free-bootstrap-templates/carousel-template.html
  209. +790 −0 mobirise4-free-bootstrap-templates/contact-form-template.html
  210. +919 −0 mobirise4-free-bootstrap-templates/documentation-template.html
  211. +920 −0 mobirise4-free-bootstrap-templates/faq-template.html
  212. +1,195 −0 mobirise4-free-bootstrap-templates/footer-template.html
  213. +791 −0 mobirise4-free-bootstrap-templates/form-templates.html
  214. +697 −0 mobirise4-free-bootstrap-templates/gallery-template.html
  215. +807 −0 mobirise4-free-bootstrap-templates/google-maps-template.html
  216. +1,998 −0 mobirise4-free-bootstrap-templates/grid-template.html
  217. +1,218 −0 mobirise4-free-bootstrap-templates/header-template.html
  218. +1,033 −0 mobirise4-free-bootstrap-templates/index.html
  219. +1,392 −0 mobirise4-free-bootstrap-templates/list-template.html
  220. +809 −0 mobirise4-free-bootstrap-templates/map-template.html
  221. +689 −0 mobirise4-free-bootstrap-templates/menu-template.html
  222. +753 −0 mobirise4-free-bootstrap-templates/navbar-template.html
  223. +574 −0 mobirise4-free-bootstrap-templates/navigation-menu-template.html
  224. +1,501 −0 mobirise4-free-bootstrap-templates/one-page.html
  225. +914 −0 mobirise4-free-bootstrap-templates/parallax-scrolling-template.html
  226. +753 −0 mobirise4-free-bootstrap-templates/parallax-template.html
  227. +671 −0 mobirise4-free-bootstrap-templates/photo-gallery-template.html
  228. +41,690 −0 mobirise4-free-bootstrap-templates/project.mobirise
  229. +798 −0 mobirise4-free-bootstrap-templates/registration-form-template.html
  230. +851 −0 mobirise4-free-bootstrap-templates/shopping-cart-template.html
  231. +655 −0 mobirise4-free-bootstrap-templates/slider-template.html
  232. +1,366 −0 mobirise4-free-bootstrap-templates/slider.html
  233. +748 −0 mobirise4-free-bootstrap-templates/social-network-template.html
  234. +1,164 −0 mobirise4-free-bootstrap-templates/tab-template.html
  235. +1,116 −0 mobirise4-free-bootstrap-templates/table-template.html
  236. +1,383 −0 mobirise4-free-bootstrap-templates/video-background.html
  237. +673 −0 mobirise4-free-bootstrap-templates/video-gallery-template.html
  238. +795 −0 mobirise4-free-bootstrap-templates/video-template.html

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,212 @@
/* source: https://github.com/avinoamr/bootstrap-carousel-swipe */
/* changes from Mobirise team */
+function ($) {
'use strict';

if ( !$.fn.carousel ) {
return
}

// CAROUSEL CLASS DEFINITION
// =========================

var CarouselSwipe = function(element) {
this.$element = $(element)
this.carousel = this.$element.data('bs.carousel')
this.options = $.extend({}, CarouselSwipe.DEFAULTS, this.carousel.options)
this.startX =
this.startY =
this.startTime =
this.cycling =
this.$active =
this.$items =
this.$next =
this.$prev =
this.dx = null

this.$element
.on('touchstart', $.proxy(this.touchstart,this))
.on('touchmove', $.proxy(this.touchmove,this))
.on('touchend', $.proxy(this.touchend,this))
}

CarouselSwipe.DEFAULTS = {
swipe: 50 // percent per second
}

CarouselSwipe.prototype.touchstart = function(e) {
if (!this.options.swipe) return;
var touch = e.originalEvent.touches ? e.originalEvent.touches[0] : e
this.dx = 0
this.startX = touch.pageX
this.startY = touch.pageY
this.cycling = null
this.width = this.$element.width()
this.startTime = e.timeStamp
}

CarouselSwipe.prototype.touchmove = function(e) {
if (!this.options.swipe) return;
var touch = e.originalEvent.touches ? e.originalEvent.touches[0] : e
var dx = touch.pageX - this.startX
var dy = touch.pageY - this.startY
if (Math.abs(dx) < Math.abs(dy)) return; // vertical scroll

if ( this.cycling === null ) {
this.cycling = !!this.carousel.interval
this.cycling && this.carousel.pause()
}

e.preventDefault()
this.dx = dx / (this.width || 1) * 100
this.swipe(this.dx)
}

CarouselSwipe.prototype.touchend = function(e) {
if (!this.options.swipe) return;
if (!this.$active) return; // nothing moved
var all = $()
.add(this.$active).add(this.$prev).add(this.$next)
.carousel_transition(true)

var dt = (e.timeStamp - this.startTime) / 1000
var speed = Math.abs(this.dx / dt) // percent-per-second
if (this.dx > 40 || (this.dx > 0 && speed > this.options.swipe)) {
this.carousel.prev()
} else if (this.dx < -40 || (this.dx < 0 && speed > this.options.swipe)) {
this.carousel.next();
} else {
this.$active
.one($.support.transition.end, function () {
all.removeClass('prev next')
})
.emulateTransitionEnd(this.$active.css('transition-duration').slice(0, -1) * 1000)
}

all.carousel_offset(false);
this.cycling && this.carousel.cycle()
this.$active = null // reset the active element
}

CarouselSwipe.prototype.swipe = function(percent) {
var $active = this.$active || this.getActive()
if (percent < 0) {
this.$prev
.carousel_offset(false)
.removeClass('prev')
.carousel_transition(true)
if (!this.$next.length || this.$next.hasClass('active')) return
this.$next
.carousel_transition(false)
.addClass('next')
.carousel_offset(percent + 100)
} else {
this.$next
.carousel_offset(false)
.removeClass('next')
.carousel_transition(true)
if (!this.$prev.length || this.$prev.hasClass('active')) return
this.$prev
.carousel_transition(false)
.addClass('prev')
.carousel_offset(percent - 100)
}

$active
.carousel_transition(false)
.carousel_offset(percent)
}

CarouselSwipe.prototype.getActive = function() {
this.$active = this.$element.find('.item.active')
this.$items = this.$active.parent().children()

this.$next = this.$active.next()
if (!this.$next.length && this.options.wrap) {
this.$next = this.$items.first();
}

this.$prev = this.$active.prev()
if (!this.$prev.length && this.options.wrap) {
this.$prev = this.$items.last();
}

return this.$active;
}

// CAROUSEL PLUGIN DEFINITION
// ==========================

var old = $.fn.carousel
$.fn.carousel = function() {
old.apply(this, arguments);
return this.each(function () {
var $this = $(this)
var data = $this.data('bs.carousel.swipe')
if (!data) $this.data('bs.carousel.swipe', new CarouselSwipe(this))
})
}

$.extend($.fn.carousel,old);

$.fn.carousel_transition = function(enable) {
enable = enable ? '' : 'none';
return this.each(function() {
$(this)
.css('-webkit-transition', enable)
.css('transition', enable)
})
};


var support3dtransform = (function() {
if (!window.getComputedStyle) {
return false;
}

var el = document.createElement('p'),
has3d,
transforms = {
'webkitTransform':'-webkit-transform',
'OTransform':'-o-transform',
'msTransform':'-ms-transform',
'MozTransform':'-moz-transform',
'transform':'transform'
};

// Add it to the body to get the computed style.
document.body.insertBefore(el, null);

for (var t in transforms) {
if (el.style[t] !== undefined) {
el.style[t] = "translate3d(1px,1px,1px)";
has3d = window.getComputedStyle(el).getPropertyValue(transforms[t]);
}
}

document.body.removeChild(el);

return (has3d !== undefined && has3d.length > 0 && has3d !== "none");
}());

$.fn.carousel_offset = function(value) {
return this.each(function() {
if(value) {
if(support3dtransform) {
$(this).css('transform', 'translate3d(' + value + '%, 0, 0)')
} else {
$(this).css('left', value + '%')
}
} else {
$(this).css({
transform: '',
left: ''
})
}
})
};

// init carousels
$('.carousel').carousel();

}(jQuery);

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 80ddfac

Please sign in to comment.