Permalink
Browse files

Mobirise 4 blocks

  • Loading branch information...
Mobirise committed Oct 4, 2017
1 parent b2c1d66 commit 09a42b2a6335d9fbb7b888bc9a4cc90534bcc970
Showing with 70,641 additions and 0 deletions.
  1. +860 −0 mobirise4-blocks/article-mobirise-4.html
  2. +9 −0 mobirise4-blocks/assets/as-pie-progress/css/progress.min.css
  3. +9 −0 mobirise4-blocks/assets/as-pie-progress/jquery-as-pie-progress.min.js
  4. +212 −0 mobirise4-blocks/assets/bootstrap-carousel-swipe/bootstrap-carousel-swipe.js
  5. +2 −0 mobirise4-blocks/assets/bootstrap/css/bootstrap-grid.min.css
  6. +2 −0 mobirise4-blocks/assets/bootstrap/css/bootstrap-reboot.min.css
  7. +7 −0 mobirise4-blocks/assets/bootstrap/css/bootstrap.min.css
  8. +6 −0 mobirise4-blocks/assets/bootstrap/js/bootstrap.min.js
  9. +22 −0 mobirise4-blocks/assets/countdown/jquery.countdown.min.js
  10. +1 −0 mobirise4-blocks/assets/data-tables/data-tables.bootstrap4.min.css
  11. +8 −0 mobirise4-blocks/assets/data-tables/data-tables.bootstrap4.min.js
  12. +166 −0 mobirise4-blocks/assets/data-tables/jquery.data-tables.min.js
  13. +265 −0 mobirise4-blocks/assets/dropdown/css/style.css
  14. +52 −0 mobirise4-blocks/assets/dropdown/js/script.min.js
  15. +156 −0 mobirise4-blocks/assets/formoid/formoid.min.js
  16. BIN mobirise4-blocks/assets/images/01.jpg
  17. BIN mobirise4-blocks/assets/images/01108.jpg
  18. BIN mobirise4-blocks/assets/images/01109.jpg
  19. BIN mobirise4-blocks/assets/images/01111.jpg
  20. BIN mobirise4-blocks/assets/images/01113.jpg
  21. BIN mobirise4-blocks/assets/images/01119.jpg
  22. BIN mobirise4-blocks/assets/images/01122.jpg
  23. BIN mobirise4-blocks/assets/images/01142.jpg
  24. BIN mobirise4-blocks/assets/images/01143.jpg
  25. BIN mobirise4-blocks/assets/images/01145.jpg
  26. BIN mobirise4-blocks/assets/images/01147.jpg
  27. BIN mobirise4-blocks/assets/images/01153.jpg
  28. BIN mobirise4-blocks/assets/images/01156.jpg
  29. BIN mobirise4-blocks/assets/images/01176.jpg
  30. BIN mobirise4-blocks/assets/images/01177.jpg
  31. BIN mobirise4-blocks/assets/images/01179.jpg
  32. BIN mobirise4-blocks/assets/images/01181.jpg
  33. BIN mobirise4-blocks/assets/images/01187.jpg
  34. BIN mobirise4-blocks/assets/images/01190.jpg
  35. BIN mobirise4-blocks/assets/images/0174.jpg
  36. BIN mobirise4-blocks/assets/images/0175.jpg
  37. BIN mobirise4-blocks/assets/images/0177.jpg
  38. BIN mobirise4-blocks/assets/images/0179.jpg
  39. BIN mobirise4-blocks/assets/images/0185.jpg
  40. BIN mobirise4-blocks/assets/images/0188.jpg
  41. BIN mobirise4-blocks/assets/images/02.jpg
  42. BIN mobirise4-blocks/assets/images/02101.jpg
  43. BIN mobirise4-blocks/assets/images/02112.jpg
  44. BIN mobirise4-blocks/assets/images/02114.jpg
  45. BIN mobirise4-blocks/assets/images/02120.jpg
  46. BIN mobirise4-blocks/assets/images/02129.jpg
  47. BIN mobirise4-blocks/assets/images/02135.jpg
  48. BIN mobirise4-blocks/assets/images/02146.jpg
  49. BIN mobirise4-blocks/assets/images/02148.jpg
  50. BIN mobirise4-blocks/assets/images/02154.jpg
  51. BIN mobirise4-blocks/assets/images/02163.jpg
  52. BIN mobirise4-blocks/assets/images/02169.jpg
  53. BIN mobirise4-blocks/assets/images/02180.jpg
  54. BIN mobirise4-blocks/assets/images/02182.jpg
  55. BIN mobirise4-blocks/assets/images/02188.jpg
  56. BIN mobirise4-blocks/assets/images/02197.jpg
  57. BIN mobirise4-blocks/assets/images/02203.jpg
  58. BIN mobirise4-blocks/assets/images/0278.jpg
  59. BIN mobirise4-blocks/assets/images/0280.jpg
  60. BIN mobirise4-blocks/assets/images/0286.jpg
  61. BIN mobirise4-blocks/assets/images/0295.jpg
  62. BIN mobirise4-blocks/assets/images/03.jpg
  63. BIN mobirise4-blocks/assets/images/03115.jpg
  64. BIN mobirise4-blocks/assets/images/03121.jpg
  65. BIN mobirise4-blocks/assets/images/03128.jpg
  66. BIN mobirise4-blocks/assets/images/03133.jpg
  67. BIN mobirise4-blocks/assets/images/03149.jpg
  68. BIN mobirise4-blocks/assets/images/03155.jpg
  69. BIN mobirise4-blocks/assets/images/03162.jpg
  70. BIN mobirise4-blocks/assets/images/03167.jpg
  71. BIN mobirise4-blocks/assets/images/03183.jpg
  72. BIN mobirise4-blocks/assets/images/03189.jpg
  73. BIN mobirise4-blocks/assets/images/03196.jpg
  74. BIN mobirise4-blocks/assets/images/03201.jpg
  75. BIN mobirise4-blocks/assets/images/0381.jpg
  76. BIN mobirise4-blocks/assets/images/0387.jpg
  77. BIN mobirise4-blocks/assets/images/0394.jpg
  78. BIN mobirise4-blocks/assets/images/0399.jpg
  79. BIN mobirise4-blocks/assets/images/04.jpg
  80. BIN mobirise4-blocks/assets/images/04116.jpg
  81. BIN mobirise4-blocks/assets/images/04150.jpg
  82. BIN mobirise4-blocks/assets/images/04184.jpg
  83. BIN mobirise4-blocks/assets/images/0482.jpg
  84. BIN mobirise4-blocks/assets/images/05.jpg
  85. BIN mobirise4-blocks/assets/images/05117.jpg
  86. BIN mobirise4-blocks/assets/images/05151.jpg
  87. BIN mobirise4-blocks/assets/images/05185.jpg
  88. BIN mobirise4-blocks/assets/images/0583.jpg
  89. BIN mobirise4-blocks/assets/images/06.jpg
  90. BIN mobirise4-blocks/assets/images/06100.jpg
  91. BIN mobirise4-blocks/assets/images/06134.jpg
  92. BIN mobirise4-blocks/assets/images/06168.jpg
  93. BIN mobirise4-blocks/assets/images/06202.jpg
  94. BIN mobirise4-blocks/assets/images/1.jpg
  95. BIN mobirise4-blocks/assets/images/1.png
  96. BIN mobirise4-blocks/assets/images/2.jpg
  97. BIN mobirise4-blocks/assets/images/2.png
  98. BIN mobirise4-blocks/assets/images/3.jpg
  99. BIN mobirise4-blocks/assets/images/3.png
  100. BIN mobirise4-blocks/assets/images/4.png
  101. BIN mobirise4-blocks/assets/images/5.png
  102. BIN mobirise4-blocks/assets/images/ariel-lustre.jpg
  103. BIN mobirise4-blocks/assets/images/article-1.jpg
  104. BIN mobirise4-blocks/assets/images/austin-call.jpg
  105. BIN mobirise4-blocks/assets/images/background1.jpg
  106. BIN mobirise4-blocks/assets/images/background2.jpg
  107. BIN mobirise4-blocks/assets/images/background3.jpg
  108. BIN mobirise4-blocks/assets/images/background4.jpg
  109. BIN mobirise4-blocks/assets/images/background5.jpg
  110. BIN mobirise4-blocks/assets/images/background5126.jpg
  111. BIN mobirise4-blocks/assets/images/background5132.jpg
  112. BIN mobirise4-blocks/assets/images/background5160.jpg
  113. BIN mobirise4-blocks/assets/images/background5166.jpg
  114. BIN mobirise4-blocks/assets/images/background5194.jpg
  115. BIN mobirise4-blocks/assets/images/background5200.jpg
  116. BIN mobirise4-blocks/assets/images/background592.jpg
  117. BIN mobirise4-blocks/assets/images/background598.jpg
  118. BIN mobirise4-blocks/assets/images/background6.jpg
  119. BIN mobirise4-blocks/assets/images/bora-burri.jpg
  120. BIN mobirise4-blocks/assets/images/brenda-godinez-500x500.jpg
  121. BIN mobirise4-blocks/assets/images/brenda-godinez.jpg
  122. BIN mobirise4-blocks/assets/images/clem-onojeghuo-500x500.jpg
  123. BIN mobirise4-blocks/assets/images/clem-onojeghuo.jpg
  124. BIN mobirise4-blocks/assets/images/contact.jpg
  125. BIN mobirise4-blocks/assets/images/countdown.jpg
  126. BIN mobirise4-blocks/assets/images/counter.jpg
  127. BIN mobirise4-blocks/assets/images/elena-ferrer-500x1000.jpg
  128. BIN mobirise4-blocks/assets/images/elena-ferrer.jpg
  129. BIN mobirise4-blocks/assets/images/face1.jpg
  130. BIN mobirise4-blocks/assets/images/face1107.jpg
  131. BIN mobirise4-blocks/assets/images/face1141.jpg
  132. BIN mobirise4-blocks/assets/images/face1175.jpg
  133. BIN mobirise4-blocks/assets/images/face173.jpg
  134. BIN mobirise4-blocks/assets/images/face2.jpg
  135. BIN mobirise4-blocks/assets/images/face3.jpg
  136. BIN mobirise4-blocks/assets/images/face3106.jpg
  137. BIN mobirise4-blocks/assets/images/face3140.jpg
  138. BIN mobirise4-blocks/assets/images/face3174.jpg
  139. BIN mobirise4-blocks/assets/images/face372.jpg
  140. BIN mobirise4-blocks/assets/images/face4.jpg
  141. BIN mobirise4-blocks/assets/images/face5.jpg
  142. BIN mobirise4-blocks/assets/images/face6.jpg
  143. BIN mobirise4-blocks/assets/images/face6123.jpg
  144. BIN mobirise4-blocks/assets/images/face6157.jpg
  145. BIN mobirise4-blocks/assets/images/face6191.jpg
  146. BIN mobirise4-blocks/assets/images/face689.jpg
  147. BIN mobirise4-blocks/assets/images/features-1.jpg
  148. BIN mobirise4-blocks/assets/images/footer.jpg
  149. BIN mobirise4-blocks/assets/images/gallery-1.jpg
  150. BIN mobirise4-blocks/assets/images/gallery00.jpg
  151. BIN mobirise4-blocks/assets/images/gallery01.jpg
  152. BIN mobirise4-blocks/assets/images/gallery02.jpg
  153. BIN mobirise4-blocks/assets/images/gallery03.jpg
  154. BIN mobirise4-blocks/assets/images/gallery04.jpg
  155. BIN mobirise4-blocks/assets/images/gallery05.jpg
  156. BIN mobirise4-blocks/assets/images/gallery06.jpg
  157. BIN mobirise4-blocks/assets/images/gallery07.jpg
  158. +1 −0 mobirise4-blocks/assets/images/hashes.json
  159. BIN mobirise4-blocks/assets/images/images-video.jpg
  160. BIN mobirise4-blocks/assets/images/info.jpg
  161. BIN mobirise4-blocks/assets/images/intro-1.jpg
  162. BIN mobirise4-blocks/assets/images/jimmy-bay.jpg
  163. BIN mobirise4-blocks/assets/images/jumbotron.jpg
  164. BIN mobirise4-blocks/assets/images/jumbotron110.jpg
  165. BIN mobirise4-blocks/assets/images/jumbotron118.jpg
  166. BIN mobirise4-blocks/assets/images/jumbotron124.jpg
  167. BIN mobirise4-blocks/assets/images/jumbotron127.jpg
  168. BIN mobirise4-blocks/assets/images/jumbotron130.jpg
  169. BIN mobirise4-blocks/assets/images/jumbotron144.jpg
  170. BIN mobirise4-blocks/assets/images/jumbotron152.jpg
  171. BIN mobirise4-blocks/assets/images/jumbotron158.jpg
  172. BIN mobirise4-blocks/assets/images/jumbotron161.jpg
  173. BIN mobirise4-blocks/assets/images/jumbotron164.jpg
  174. BIN mobirise4-blocks/assets/images/jumbotron178.jpg
  175. BIN mobirise4-blocks/assets/images/jumbotron186.jpg
  176. BIN mobirise4-blocks/assets/images/jumbotron192.jpg
  177. BIN mobirise4-blocks/assets/images/jumbotron195.jpg
  178. BIN mobirise4-blocks/assets/images/jumbotron198.jpg
  179. BIN mobirise4-blocks/assets/images/jumbotron2.jpg
  180. BIN mobirise4-blocks/assets/images/jumbotron2125.jpg
  181. BIN mobirise4-blocks/assets/images/jumbotron2131.jpg
  182. BIN mobirise4-blocks/assets/images/jumbotron2159.jpg
  183. BIN mobirise4-blocks/assets/images/jumbotron2165.jpg
  184. BIN mobirise4-blocks/assets/images/jumbotron2193.jpg
  185. BIN mobirise4-blocks/assets/images/jumbotron2199.jpg
  186. BIN mobirise4-blocks/assets/images/jumbotron291.jpg
  187. BIN mobirise4-blocks/assets/images/jumbotron297.jpg
  188. BIN mobirise4-blocks/assets/images/jumbotron76.jpg
  189. BIN mobirise4-blocks/assets/images/jumbotron84.jpg
  190. BIN mobirise4-blocks/assets/images/jumbotron90.jpg
  191. BIN mobirise4-blocks/assets/images/jumbotron93.jpg
  192. BIN mobirise4-blocks/assets/images/jumbotron96.jpg
  193. BIN mobirise4-blocks/assets/images/karl-fredrickson.jpg
  194. BIN mobirise4-blocks/assets/images/karol-goldstein.jpg
  195. BIN mobirise4-blocks/assets/images/logo2.png
  196. BIN mobirise4-blocks/assets/images/logo2102.png
  197. BIN mobirise4-blocks/assets/images/logo2103.png
  198. BIN mobirise4-blocks/assets/images/logo2104.png
  199. BIN mobirise4-blocks/assets/images/logo2105.png
  200. BIN mobirise4-blocks/assets/images/logo2136.png
  201. BIN mobirise4-blocks/assets/images/logo2137.png
  202. BIN mobirise4-blocks/assets/images/logo2138.png
  203. BIN mobirise4-blocks/assets/images/logo2139.png
  204. BIN mobirise4-blocks/assets/images/logo2170.png
  205. BIN mobirise4-blocks/assets/images/logo2171.png
  206. BIN mobirise4-blocks/assets/images/logo2172.png
  207. BIN mobirise4-blocks/assets/images/logo2173.png
  208. BIN mobirise4-blocks/assets/images/logo268.png
  209. BIN mobirise4-blocks/assets/images/logo269.png
  210. BIN mobirise4-blocks/assets/images/logo270.png
  211. BIN mobirise4-blocks/assets/images/logo271.png
  212. BIN mobirise4-blocks/assets/images/map.jpg
  213. BIN mobirise4-blocks/assets/images/matheus-ferrero.jpg
  214. BIN mobirise4-blocks/assets/images/mbr-1.jpg
  215. BIN mobirise4-blocks/assets/images/mbr-12.jpg
  216. BIN mobirise4-blocks/assets/images/mbr-14.jpg
  217. BIN mobirise4-blocks/assets/images/mbr-16.jpg
  218. BIN mobirise4-blocks/assets/images/mbr-18.jpg
  219. BIN mobirise4-blocks/assets/images/mbr-2.jpg
  220. BIN mobirise4-blocks/assets/images/mbr-5.jpg
  221. BIN mobirise4-blocks/assets/images/mbr4th-horizontal.jpg
  222. BIN mobirise4-blocks/assets/images/michal-grosicki.jpg
  223. BIN mobirise4-blocks/assets/images/naletu-500x500.jpg
  224. BIN mobirise4-blocks/assets/images/naletu.jpg
  225. BIN mobirise4-blocks/assets/images/pete-bellis.jpg
  226. BIN mobirise4-blocks/assets/images/pricing.jpg
  227. BIN mobirise4-blocks/assets/images/progress.jpg
  228. BIN mobirise4-blocks/assets/images/slider.jpg
  229. BIN mobirise4-blocks/assets/images/social.jpg
  230. BIN mobirise4-blocks/assets/images/sweta-meininger-500x500.jpg
  231. BIN mobirise4-blocks/assets/images/sweta-meininger.jpg
  232. BIN mobirise4-blocks/assets/images/testimonials.jpg
  233. BIN mobirise4-blocks/assets/images/timeline.jpg
  234. BIN mobirise4-blocks/assets/images/toa-heftiba-1-600x800.jpg
  235. BIN mobirise4-blocks/assets/images/toa-heftiba-1.jpg
  236. BIN mobirise4-blocks/assets/images/toa-heftiba-2-800x533.jpg
  237. BIN mobirise4-blocks/assets/images/toa-heftiba-2.jpg
  238. BIN mobirise4-blocks/assets/images/toa-heftiba-3-800x533.jpg
  239. BIN mobirise4-blocks/assets/images/toa-heftiba-3.jpg
  240. BIN mobirise4-blocks/assets/images/toa-heftiba-4-800x533.jpg
  241. BIN mobirise4-blocks/assets/images/toa-heftiba-4.jpg
  242. BIN mobirise4-blocks/assets/images/toa-heftiba-5-600x800.jpg
  243. BIN mobirise4-blocks/assets/images/toa-heftiba-5.jpg
  244. BIN mobirise4-blocks/assets/images/toa-heftiba-500x1000.jpg
  245. BIN mobirise4-blocks/assets/images/toa-heftiba-6-800x533.jpg
  246. BIN mobirise4-blocks/assets/images/toa-heftiba-6.jpg
  247. BIN mobirise4-blocks/assets/images/toa-heftiba.jpg
  248. BIN mobirise4-blocks/assets/images/toggle-tabs.jpg
  249. +7 −0 mobirise4-blocks/assets/imagesloaded/imagesloaded.pkgd.min.js
  250. +7 −0 mobirise4-blocks/assets/jarallax/jarallax.min.js
  251. +1,038 −0 mobirise4-blocks/assets/jquery-mb-vimeo_player/jquery.mb.vimeo_player.js
  252. +9 −0 mobirise4-blocks/assets/jquery-mb-ytplayer/jquery.mb.ytplayer.min.js
  253. +9 −0 mobirise4-blocks/assets/masonry/masonry.pkgd.min.js
  254. +2 −0 mobirise4-blocks/assets/mobirise-gallery/player.min.js
  255. +273 −0 mobirise4-blocks/assets/mobirise-gallery/script.js
  256. +451 −0 mobirise4-blocks/assets/mobirise-gallery/style.css
  257. +195 −0 mobirise4-blocks/assets/mobirise-slider-video/script.js
  258. +21,073 −0 mobirise4-blocks/assets/mobirise/css/mbr-additional.css
  259. +4 −0 mobirise4-blocks/assets/popper/popper.min.js
  260. +750 −0 mobirise4-blocks/assets/smooth-scroll/smooth-scroll.js
  261. +662 −0 mobirise4-blocks/assets/social-likes/social-likes.js
  262. +544 −0 mobirise4-blocks/assets/socicon/css/styles.css
  263. BIN mobirise4-blocks/assets/socicon/fonts/socicon.eot
  264. +178 −0 mobirise4-blocks/assets/socicon/fonts/socicon.svg
  265. BIN mobirise4-blocks/assets/socicon/fonts/socicon.ttf
  266. BIN mobirise4-blocks/assets/socicon/fonts/socicon.woff
  267. +1 −0 mobirise4-blocks/assets/tether/tether.min.css
  268. +1 −0 mobirise4-blocks/assets/tether/tether.min.js
  269. +426 −0 mobirise4-blocks/assets/theme/css/style.css
  270. +1,239 −0 mobirise4-blocks/assets/theme/js/script.js
  271. +14 −0 mobirise4-blocks/assets/touch-swipe/jquery.touch-swipe.min.js
  272. +173 −0 mobirise4-blocks/assets/viewport-checker/jquery.viewportchecker.js
  273. +2 −0 mobirise4-blocks/assets/vimeo_player/vimeo_player.js
  274. +4 −0 mobirise4-blocks/assets/web/assets/jquery/jquery.min.js
  275. +476 −0 mobirise4-blocks/assets/web/assets/mobirise-icons/mobirise-icons.css
  276. BIN mobirise4-blocks/assets/web/assets/mobirise-icons/mobirise-icons.eot
  277. +160 −0 mobirise4-blocks/assets/web/assets/mobirise-icons/mobirise-icons.svg
  278. BIN mobirise4-blocks/assets/web/assets/mobirise-icons/mobirise-icons.ttf
  279. BIN mobirise4-blocks/assets/web/assets/mobirise-icons/mobirise-icons.woff
  280. +569 −0 mobirise4-blocks/countdowns-mobirise-4.html
  281. +751 −0 mobirise4-blocks/counters-mobirise-4.html
  282. +1,931 −0 mobirise4-blocks/features-mobirise-4.html
  283. +1,249 −0 mobirise4-blocks/footers-mobirise-4.html
  284. +781 −0 mobirise4-blocks/forms-mobirise-4.html
  285. +533 −0 mobirise4-blocks/gallery-mobirise-4.html
  286. +559 −0 mobirise4-blocks/images-videos-mobirise-4.html
  287. +535 −0 mobirise4-blocks/index.html
  288. +591 −0 mobirise4-blocks/info-mobirise-4.html
  289. +887 −0 mobirise4-blocks/intro-mobirise-4.html
  290. +569 −0 mobirise4-blocks/maps-mobirise-4.html
  291. +1,253 −0 mobirise4-blocks/pricing-tables-mobirise-4.html
  292. +803 −0 mobirise4-blocks/progress-bars-mobirise-4.html
  293. +25,834 −0 mobirise4-blocks/project.mobirise
  294. +519 −0 mobirise4-blocks/sliders-mobirise-4.html
  295. +639 −0 mobirise4-blocks/social-blocks-mobirise-4.html
  296. +1,028 −0 mobirise4-blocks/testimonials-mobirise-4.html
  297. +817 −0 mobirise4-blocks/timelines-mobirise-4.html
  298. +1,317 −0 mobirise4-blocks/toggles-tabs-mobirise-4.html

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,9 @@
/**
* jQuery asPieProgress
* A jQuery plugin that animate the progress bar
* Compiled: Fri Sep 02 2016 14:07:00 GMT+0800 (CST)
* @version v0.3.4
* @link https://github.com/amazingSurge/jquery-asPieProgress
* @copyright LGPL-3.0
*/
.pie_progress{position:relative;text-align:center;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.pie_progress svg{margin:0 auto}.pie_progress__content,.pie_progress__icon,.pie_progress__label,.pie_progress__number{position:absolute;top:50%;left:0;width:100%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.pie_progress__number{font-size:42px}.pie_progress__label{margin-top:32px;font-size:12px}.pie_progress__svg{position:relative;display:inline-block;width:100%;padding-bottom:100%;overflow:hidden;vertical-align:middle}.pie_progress__svg svg{position:absolute;top:0;left:0;display:inline-block}

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

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.
Oops, something went wrong.

0 comments on commit 09a42b2

Please sign in to comment.