j1m_gallery 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.md +21 -0
  3. data/README.md +41 -0
  4. data/_data/modules/default/j1_gallery-0.0.1/j1_justified_gallery.yml +285 -0
  5. data/_data/resources/default/j1_gallery-0.0.1/resource.yml +24 -0
  6. data/assets/images/gallery/down_the_water/1-1600.jpg +0 -0
  7. data/assets/images/gallery/down_the_water/2-1600.jpg +0 -0
  8. data/assets/images/gallery/down_the_water/3-1600.jpg +0 -0
  9. data/assets/images/gallery/justified_gallery/13824322785_104dc0968c_b.jpg +0 -0
  10. data/assets/images/gallery/justified_gallery/13824322785_104dc0968c_m.jpg +0 -0
  11. data/assets/images/gallery/justified_gallery/13824674674_ca1e482394_b.jpg +0 -0
  12. data/assets/images/gallery/justified_gallery/13824674674_ca1e482394_m.jpg +0 -0
  13. data/assets/images/gallery/justified_gallery/16961685188_f130144d60_b.jpg +0 -0
  14. data/assets/images/gallery/justified_gallery/16961685188_f130144d60_m.jpg +0 -0
  15. data/assets/images/gallery/justified_gallery/23753792354_bd75d8dabc_b.jpg +0 -0
  16. data/assets/images/gallery/justified_gallery/23753792354_bd75d8dabc_m.jpg +0 -0
  17. data/assets/images/gallery/justified_gallery/24014174029_2cfa940264_b.jpg +0 -0
  18. data/assets/images/gallery/justified_gallery/24014174029_2cfa940264_m.jpg +0 -0
  19. data/assets/images/gallery/justified_gallery/24096687789_c37d45712f_b.jpg +0 -0
  20. data/assets/images/gallery/justified_gallery/24096687789_c37d45712f_m.jpg +0 -0
  21. data/assets/images/gallery/justified_gallery/6791628438_affaa19e10_b.jpg +0 -0
  22. data/assets/images/gallery/justified_gallery/6791628438_affaa19e10_m.jpg +0 -0
  23. data/assets/images/gallery/justified_gallery/6798453217_72dea2d06e_b.jpg +0 -0
  24. data/assets/images/gallery/justified_gallery/6798453217_72dea2d06e_m.jpg +0 -0
  25. data/assets/images/gallery/justified_gallery/6806687375_07d2b7a1f9_b.jpg +0 -0
  26. data/assets/images/gallery/justified_gallery/6806687375_07d2b7a1f9_m.jpg +0 -0
  27. data/assets/images/gallery/justified_gallery/6812090617_5fd5bbdda0_b.jpg +0 -0
  28. data/assets/images/gallery/justified_gallery/6812090617_5fd5bbdda0_m.jpg +0 -0
  29. data/assets/images/gallery/justified_gallery/6840627709_92ed52fb41_b.jpg +0 -0
  30. data/assets/images/gallery/justified_gallery/6840627709_92ed52fb41_m.jpg +0 -0
  31. data/assets/images/gallery/justified_gallery/6841267340_855273fd7e_b.jpg +0 -0
  32. data/assets/images/gallery/justified_gallery/6841267340_855273fd7e_m.jpg +0 -0
  33. data/assets/images/gallery/justified_gallery/6876412479_6268c6e2aa_b.jpg +0 -0
  34. data/assets/images/gallery/justified_gallery/6876412479_6268c6e2aa_m.jpg +0 -0
  35. data/assets/images/gallery/justified_gallery/6880502467_d4b3c4b2a8_b.jpg +0 -0
  36. data/assets/images/gallery/justified_gallery/6880502467_d4b3c4b2a8_m.jpg +0 -0
  37. data/assets/images/gallery/justified_gallery/6916180091_9c9559e463_b.jpg +0 -0
  38. data/assets/images/gallery/justified_gallery/6916180091_9c9559e463_m.jpg +0 -0
  39. data/assets/images/gallery/justified_gallery/7002395006_29fdc85f7a_b.jpg +0 -0
  40. data/assets/images/gallery/justified_gallery/7002395006_29fdc85f7a_m.jpg +0 -0
  41. data/assets/images/gallery/justified_gallery/7062575651_b23918b11a_b.jpg +0 -0
  42. data/assets/images/gallery/justified_gallery/7062575651_b23918b11a_m.jpg +0 -0
  43. data/assets/images/gallery/justified_gallery/7822678460_ee98ff1f69_b.jpg +0 -0
  44. data/assets/images/gallery/justified_gallery/7822678460_ee98ff1f69_m.jpg +0 -0
  45. data/assets/images/gallery/justified_gallery/7948632554_01f6ae6b6f_b.jpg +0 -0
  46. data/assets/images/gallery/justified_gallery/7948632554_01f6ae6b6f_m.jpg +0 -0
  47. data/assets/images/gallery/justified_gallery/8157236803_78aa1698b6_b.jpg +0 -0
  48. data/assets/images/gallery/justified_gallery/8157236803_78aa1698b6_m.jpg +0 -0
  49. data/assets/images/gallery/justified_gallery/8400794773_932654a20e_b.jpg +0 -0
  50. data/assets/images/gallery/justified_gallery/8400794773_932654a20e_m.jpg +0 -0
  51. data/assets/images/gallery/justified_gallery/8811828736_88392f614a_b.jpg +0 -0
  52. data/assets/images/gallery/justified_gallery/8811828736_88392f614a_m.jpg +0 -0
  53. data/assets/images/gallery/justified_gallery/8842312290_f310d491f4_b.jpg +0 -0
  54. data/assets/images/gallery/justified_gallery/8842312290_f310d491f4_m.jpg +0 -0
  55. data/assets/images/gallery/old_times/image_01.jpg +0 -0
  56. data/assets/images/gallery/old_times/image_02.jpg +0 -0
  57. data/assets/images/gallery/old_times/image_03.jpg +0 -0
  58. data/assets/images/gallery/old_times/image_04.jpg +0 -0
  59. data/assets/themes/j1/j1/js/adapters/owl_carousel.js +206 -0
  60. data/assets/themes/j1/owl_carousel/LICENSE +20 -0
  61. data/assets/themes/j1/owl_carousel/README.md +74 -0
  62. data/assets/themes/j1/owl_carousel/bower.json +14 -0
  63. data/assets/themes/j1/owl_carousel/changelog.html +278 -0
  64. data/assets/themes/j1/owl_carousel/css/owl_carousel.css +86 -0
  65. data/assets/themes/j1/owl_carousel/css/owl_carousel.min.css +21 -0
  66. data/assets/themes/j1/owl_carousel/css/owl_transitions.css +178 -0
  67. data/assets/themes/j1/owl_carousel/css/owl_transitions.min.css +21 -0
  68. data/assets/themes/j1/owl_carousel/css/themes/j1_template.css +168 -0
  69. data/assets/themes/j1/owl_carousel/css/themes/sample/j1_sample.less +184 -0
  70. data/assets/themes/j1/owl_carousel/css/themes/sample/j1_samples.css +523 -0
  71. data/assets/themes/j1/owl_carousel/demo/assets/fullimage1.jpg +0 -0
  72. data/assets/themes/j1/owl_carousel/demo/assets/fullimage2.jpg +0 -0
  73. data/assets/themes/j1/owl_carousel/demo/assets/fullimage3.jpg +0 -0
  74. data/assets/themes/j1/owl_carousel/demo/assets/fullimage4.jpg +0 -0
  75. data/assets/themes/j1/owl_carousel/demo/assets/fullimage5.jpg +0 -0
  76. data/assets/themes/j1/owl_carousel/demo/assets/fullimage6.jpg +0 -0
  77. data/assets/themes/j1/owl_carousel/demo/assets/fullimage7.jpg +0 -0
  78. data/assets/themes/j1/owl_carousel/demo/assets/owl1.jpg +0 -0
  79. data/assets/themes/j1/owl_carousel/demo/assets/owl2.jpg +0 -0
  80. data/assets/themes/j1/owl_carousel/demo/assets/owl3.jpg +0 -0
  81. data/assets/themes/j1/owl_carousel/demo/assets/owl4.jpg +0 -0
  82. data/assets/themes/j1/owl_carousel/demo/assets/owl5.jpg +0 -0
  83. data/assets/themes/j1/owl_carousel/demo/assets/owl6.jpg +0 -0
  84. data/assets/themes/j1/owl_carousel/demo/assets/owl7.jpg +0 -0
  85. data/assets/themes/j1/owl_carousel/demo/assets/owl8.jpg +0 -0
  86. data/assets/themes/j1/owl_carousel/demo/autoHeight.html +335 -0
  87. data/assets/themes/j1/owl_carousel/demo/click.html +365 -0
  88. data/assets/themes/j1/owl_carousel/demo/custom.html +417 -0
  89. data/assets/themes/j1/owl_carousel/demo/customJson.html +358 -0
  90. data/assets/themes/j1/owl_carousel/demo/full.html +321 -0
  91. data/assets/themes/j1/owl_carousel/demo/images.html +325 -0
  92. data/assets/themes/j1/owl_carousel/demo/itemsCustom.html +372 -0
  93. data/assets/themes/j1/owl_carousel/demo/json.html +336 -0
  94. data/assets/themes/j1/owl_carousel/demo/json/customData.json +28 -0
  95. data/assets/themes/j1/owl_carousel/demo/json/data.json +18 -0
  96. data/assets/themes/j1/owl_carousel/demo/lazyLoad.html +338 -0
  97. data/assets/themes/j1/owl_carousel/demo/manipulations.html +515 -0
  98. data/assets/themes/j1/owl_carousel/demo/navOnTop.html +395 -0
  99. data/assets/themes/j1/owl_carousel/demo/navOnTop2.html +325 -0
  100. data/assets/themes/j1/owl_carousel/demo/one.html +318 -0
  101. data/assets/themes/j1/owl_carousel/demo/owlStatus.html +461 -0
  102. data/assets/themes/j1/owl_carousel/demo/progressBar.html +471 -0
  103. data/assets/themes/j1/owl_carousel/demo/randomOrder.html +416 -0
  104. data/assets/themes/j1/owl_carousel/demo/scaleup.html +328 -0
  105. data/assets/themes/j1/owl_carousel/demo/sync.html +569 -0
  106. data/assets/themes/j1/owl_carousel/demo/transitions.html +330 -0
  107. data/assets/themes/j1/owl_carousel/images/ajax-loader.gif +0 -0
  108. data/assets/themes/j1/owl_carousel/images/apple-touch-icon-114-precomposed.png +0 -0
  109. data/assets/themes/j1/owl_carousel/images/apple-touch-icon-144-precomposed.png +0 -0
  110. data/assets/themes/j1/owl_carousel/images/apple-touch-icon-57-precomposed.png +0 -0
  111. data/assets/themes/j1/owl_carousel/images/apple-touch-icon-72-precomposed.png +0 -0
  112. data/assets/themes/j1/owl_carousel/images/demo-slides/controls.png +0 -0
  113. data/assets/themes/j1/owl_carousel/images/demo-slides/css3.png +0 -0
  114. data/assets/themes/j1/owl_carousel/images/demo-slides/feather.png +0 -0
  115. data/assets/themes/j1/owl_carousel/images/demo-slides/grab.png +0 -0
  116. data/assets/themes/j1/owl_carousel/images/demo-slides/modern.png +0 -0
  117. data/assets/themes/j1/owl_carousel/images/demo-slides/multi.png +0 -0
  118. data/assets/themes/j1/owl_carousel/images/demo-slides/responsive.png +0 -0
  119. data/assets/themes/j1/owl_carousel/images/demo-slides/tons.png +0 -0
  120. data/assets/themes/j1/owl_carousel/images/demo-slides/touch.png +0 -0
  121. data/assets/themes/j1/owl_carousel/images/demo-slides/zombie.png +0 -0
  122. data/assets/themes/j1/owl_carousel/images/favicon.png +0 -0
  123. data/assets/themes/j1/owl_carousel/images/glyphicons-halflings-green.png +0 -0
  124. data/assets/themes/j1/owl_carousel/images/glyphicons-halflings-white.png +0 -0
  125. data/assets/themes/j1/owl_carousel/images/glyphicons-halflings.png +0 -0
  126. data/assets/themes/j1/owl_carousel/images/grabbing.png +0 -0
  127. data/assets/themes/j1/owl_carousel/images/owl-logo.png +0 -0
  128. data/assets/themes/j1/owl_carousel/images/owl.video.play.png +0 -0
  129. data/assets/themes/j1/owl_carousel/index.html +912 -0
  130. data/assets/themes/j1/owl_carousel/js/owl_carousel.js +1517 -0
  131. data/assets/themes/j1/owl_carousel/js/owl_carousel.min.js +57 -0
  132. data/assets/videos/gallery/example/video1-poster.jpg +0 -0
  133. data/assets/videos/gallery/example/video1-thumb.jpg +0 -0
  134. data/assets/videos/gallery/example/video1.mp4 +0 -0
  135. data/assets/videos/gallery/example/video2-poster.jpg +0 -0
  136. data/assets/videos/gallery/example/video2-thumb.jpg +0 -0
  137. data/assets/videos/gallery/example/video2.mp4 +0 -0
  138. data/assets/videos/gallery/example/video3-poster.jpg +0 -0
  139. data/assets/videos/gallery/example/video3-thumb.jpg +0 -0
  140. data/assets/videos/gallery/example/video3.mp4 +0 -0
  141. data/assets/videos/gallery/example/video4-poster.jpg +0 -0
  142. data/assets/videos/gallery/example/video4-thumb.jpg +0 -0
  143. data/assets/videos/gallery/example/video4.mp4 +0 -0
  144. data/exe/console +14 -0
  145. data/exe/setup +8 -0
  146. data/lib/j1m_gallery.rb +5 -0
  147. data/lib/j1m_gallery/version.rb +3 -0
  148. metadata +236 -0
@@ -0,0 +1,28 @@
1
+ {
2
+ "items" : [
3
+ {
4
+ "img": "assets/owl1.jpg",
5
+ "alt" : "Owl Image 1"
6
+ },
7
+ {
8
+ "img": "assets/owl2.jpg",
9
+ "alt" : "Owl Image 2"
10
+ },
11
+ {
12
+ "img": "assets/owl3.jpg",
13
+ "alt" : "Owl Image 1"
14
+ },
15
+ {
16
+ "img": "assets/owl4.jpg",
17
+ "alt" : "Owl Image 2"
18
+ },
19
+ {
20
+ "img": "assets/owl5.jpg",
21
+ "alt" : "Owl Image 1"
22
+ },
23
+ {
24
+ "img": "assets/owl6.jpg",
25
+ "alt" : "Owl Image 2"
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "owl" : [
3
+ {"item" : "<span class='item'><h1>1</h1></span>"},
4
+ {"item" : "<span class='item'><h1>2</h1></span>"},
5
+ {"item" : "<span class='item'><h1>3</h1></span>"},
6
+ {"item" : "<span class='item'><h1>4</h1></span>"},
7
+ {"item" : "<span class='item'><h1>5</h1></span>"},
8
+ {"item" : "<span class='item'><h1>6</h1></span>"},
9
+ {"item" : "<span class='item'><h1>7</h1></span>"},
10
+ {"item" : "<span class='item'><h1>8</h1></span>"},
11
+ {"item" : "<span class='item'><h1>9</h1></span>"},
12
+ {"item" : "<span class='item'><h1>10</h1></span>"},
13
+ {"item" : "<span class='item'><h1>11</h1></span>"},
14
+ {"item" : "<span class='item'><h1>12</h1></span>"},
15
+ {"item" : "<span class='item'><h1>13</h1></span>"},
16
+ {"item" : "<span class='item'><h1>14</h1></span>"}
17
+ ]
18
+ }
@@ -0,0 +1,338 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Owl Carousel - Lazy Load</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <meta name="description" content="jQuery Responsive Carousel - Owl Carusel">
8
+ <meta name="author" content="Bartosz Wojciechowski">
9
+
10
+ <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,600,700' rel='stylesheet' type='text/css'>
11
+ <link href="../assets/css/bootstrapTheme.css" rel="stylesheet">
12
+ <link href="../assets/css/custom.css" rel="stylesheet">
13
+
14
+ <!-- Owl Carousel Assets -->
15
+ <link href="../owl-carousel/owl.carousel.css" rel="stylesheet">
16
+ <link href="../owl-carousel/owl.theme.css" rel="stylesheet">
17
+
18
+ <!-- Prettify -->
19
+ <link href="../assets/js/google-code-prettify/prettify.css" rel="stylesheet">
20
+
21
+
22
+ <!-- Le fav and touch icons -->
23
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
24
+ <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
25
+ <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
26
+ <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
27
+ <link rel="shortcut icon" href="../assets/ico/favicon.png">
28
+ </head>
29
+ <body>
30
+
31
+ <div id="top-nav" class="navbar navbar-fixed-top">
32
+ <div class="navbar-inner">
33
+ <div class="container">
34
+ <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
35
+ <span class="icon-bar"></span>
36
+ <span class="icon-bar"></span>
37
+ <span class="icon-bar"></span>
38
+ </button>
39
+ <div class="nav-collapse collapse">
40
+ <ul class="nav pull-right">
41
+ <li><a href="../index.html"><i class="icon-chevron-left"></i> Back to Frontpage</a></li>
42
+ <li><a href="../owl.carousel.zip" class="download download-on" data-spy="affix" data-offset-top="450">Download</a></li>
43
+ </ul>
44
+ <ul class="nav pull-left">
45
+
46
+ </ul>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ </div>
51
+
52
+ <div id="title">
53
+ <div class="container">
54
+ <div class="row">
55
+ <div class="span12">
56
+ <h1>Lazy Load</h1>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+
62
+ <div id="demo">
63
+ <div class="container">
64
+ <div class="row">
65
+ <div class="span12">
66
+
67
+ <div id="owl-demo" class="owl-carousel">
68
+ <div class="item"><img class="lazyOwl" data-src="assets/owl1.jpg" alt="Lazy Owl Image"></div>
69
+ <div class="item"><img class="lazyOwl" data-src="assets/owl2.jpg" alt="Lazy Owl Image"></div>
70
+ <div class="item"><img class="lazyOwl" data-src="assets/owl3.jpg" alt="Lazy Owl Image"></div>
71
+ <div class="item"><img class="lazyOwl" data-src="assets/owl4.jpg" alt="Lazy Owl Image"></div>
72
+ <div class="item"><img class="lazyOwl" data-src="assets/owl5.jpg" alt="Lazy Owl Image"></div>
73
+ <div class="item"><img class="lazyOwl" data-src="assets/owl6.jpg" alt="Lazy Owl Image"></div>
74
+ <div class="item"><img class="lazyOwl" data-src="assets/owl7.jpg" alt="Lazy Owl Image"></div>
75
+ <div class="item"><img class="lazyOwl" data-src="assets/owl8.jpg" alt="Lazy Owl Image"></div>
76
+ <div class="item"><img class="lazyOwl" data-src="assets/owl1.jpg" alt="Lazy Owl Image"></div>
77
+ <div class="item"><img class="lazyOwl" data-src="assets/owl2.jpg" alt="Lazy Owl Image"></div>
78
+ <div class="item"><img class="lazyOwl" data-src="assets/owl3.jpg" alt="Lazy Owl Image"></div>
79
+ <div class="item"><img class="lazyOwl" data-src="assets/owl4.jpg" alt="Lazy Owl Image"></div>
80
+ <div class="item"><img class="lazyOwl" data-src="assets/owl5.jpg" alt="Lazy Owl Image"></div>
81
+ <div class="item"><img class="lazyOwl" data-src="assets/owl6.jpg" alt="Lazy Owl Image"></div>
82
+ <div class="item"><img class="lazyOwl" data-src="assets/owl7.jpg" alt="Lazy Owl Image"></div>
83
+ <div class="item"><img class="lazyOwl" data-src="assets/owl8.jpg" alt="Lazy Owl Image"></div>
84
+ </div>
85
+
86
+ </div>
87
+ </div>
88
+ </div>
89
+
90
+ </div>
91
+
92
+ <div id="example-info">
93
+ <div class="container">
94
+ <div class="row">
95
+ <div class="span12">
96
+ <h1>Setup</h1>
97
+ <p>Delays loading of images. Images outside of viewport wont be loaded before user scrolls to them. Great for mobile devices to speed up page loadings.
98
+ </p>
99
+ <p>
100
+ Img need special class <code>class="lazyOwl"</code> and path to image in <code>data-src=""</code>:
101
+ <blockquote><code>&lt;img class="lazyOwl" data-src="path-to-your-image"&gt;</code></blockquote>
102
+ </p>
103
+ <ul class="nav nav-tabs" id="myTab">
104
+ <li class="active"><a href="#javascript">Javascript</a></li>
105
+ <li><a href="#HTML">HTML</a></li>
106
+ <li><a href="#CSS">CSS</a></li>
107
+ </ul>
108
+
109
+ <div class="tab-content">
110
+
111
+ <div class="tab-pane active" id="javascript">
112
+ <pre class="pre-show prettyprint linenums">
113
+ $(document).ready(function() {
114
+
115
+ $("#owl-demo").owlCarousel({
116
+ items : 4,
117
+ lazyLoad : true,
118
+ navigation : true
119
+ });
120
+
121
+ });
122
+ </pre>
123
+ </div>
124
+
125
+ <div class="tab-pane" id="HTML">
126
+ <pre class="pre-show prettyprint linenums">
127
+ &lt;div id="owl-demo" class="owl-carousel"&gt;
128
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl1.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
129
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl2.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
130
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl3.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
131
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl4.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
132
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl5.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
133
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl6.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
134
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl7.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
135
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl8.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
136
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl1.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
137
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl2.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
138
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl3.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
139
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl4.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
140
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl5.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
141
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl6.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
142
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl7.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
143
+ &lt;div class="item"&gt;&lt;img class="lazyOwl" data-src="assets/owl8.jpg" alt="Lazy Owl Image"&gt;&lt;/div&gt;
144
+ &lt;/div&gt;
145
+ </pre>
146
+ </div>
147
+
148
+ <div class="tab-pane" id="CSS">
149
+ <pre class="pre-show prettyprint linenums">
150
+ #owl-demo .item{
151
+ margin: 3px;
152
+ }
153
+ #owl-demo .item img{
154
+ display: block;
155
+ width: 100%;
156
+ height: auto;
157
+ }
158
+ </pre>
159
+ </div>
160
+ </div><!--End Tab Content-->
161
+
162
+ </div>
163
+ </div>
164
+ </div>
165
+ </div>
166
+
167
+ <div id="more">
168
+ <div class="container">
169
+
170
+ <div class="row">
171
+ <div class="span12">
172
+ <h1>More Demos</h1>
173
+ </div>
174
+ </div>
175
+
176
+ <div class="row demos-row">
177
+ <div class="span3">
178
+ <a href="images.html" class="demo-box">
179
+ <div class="demo-wrapper demo-images clearfix">
180
+ <div class="demo-slide"><div class="bg"></div></div>
181
+ <div class="demo-slide"><div class="bg"></div></div>
182
+ <div class="demo-slide"><div class="bg"></div></div>
183
+ </div>
184
+ <h3>Images</h3>
185
+ </a>
186
+ </div>
187
+
188
+ <div class="span3">
189
+ <a href="custom.html" class="demo-box">
190
+ <div class="demo-wrapper demo-custom clearfix">
191
+ <div class="demo-slide"><div class="bg"></div></div>
192
+ <div class="demo-slide"><div class="bg"></div></div>
193
+ <div class="demo-slide"><div class="bg"></div></div>
194
+ <div class="demo-slide"><div class="bg"></div></div>
195
+ <div class="demo-slide"><div class="bg"></div></div>
196
+ <div class="demo-slide"><div class="bg"></div></div>
197
+ <div class="demo-slide"><div class="bg"></div></div>
198
+ <div class="demo-slide"><div class="bg"></div></div>
199
+ <div class="demo-slide"><div class="bg"></div></div>
200
+ <div class="demo-slide"><div class="bg"></div></div>
201
+ </div>
202
+ <h3>Custom</h3>
203
+ </a>
204
+ </div>
205
+
206
+ <div class="span3">
207
+ <a href="itemsCustom.html" class="demo-box">
208
+ <div class="demo-wrapper demo-full clearfix">
209
+ <div class="demo-slide"><div class="bg"></div></div>
210
+ <div class="demo-slide"><div class="bg"></div></div>
211
+ <div class="demo-slide"><div class="bg"></div></div>
212
+ <div class="demo-slide"><div class="bg"></div></div>
213
+ </div>
214
+ <h3>Custom 2</h3>
215
+ </a>
216
+ </div>
217
+
218
+ <div class="span3">
219
+ <a href="one.html" class="demo-box">
220
+ <div class="demo-wrapper demo-one clearfix">
221
+ <div class="demo-slide"><div class="bg"></div></div>
222
+ </div>
223
+ <h3>One Slide</h3>
224
+ </a>
225
+ </div>
226
+
227
+ </div>
228
+ <div class="row demos-row">
229
+ <div class="span3">
230
+ <a href="json.html" class="demo-box">
231
+ <div class="demo-wrapper demo-Json clearfix">
232
+ <div class="demo-slide"><div class="bg"></div></div>
233
+ <div class="demo-slide"><div class="bg"></div></div>
234
+ <div class="demo-slide"><div class="bg"></div></div>
235
+ <div class="demo-slide"><div class="bg"></div></div>
236
+ <div class="demo-slide"><div class="bg"></div></div>
237
+ </div>
238
+ <h3>JSON</h3>
239
+ </a>
240
+ </div>
241
+
242
+ <div class="span3">
243
+ <a href="customJson.html" class="demo-box">
244
+ <div class="demo-wrapper demo-Json-custom clearfix">
245
+ <div class="demo-slide"><div class="bg"></div></div>
246
+ <div class="demo-slide"><div class="bg"></div></div>
247
+ <div class="demo-slide"><div class="bg"></div></div>
248
+ </div>
249
+ <h3>JSON Custom</h3>
250
+ </a>
251
+ </div>
252
+
253
+ <div class="span3">
254
+ <a href="lazyLoad.html" class="demo-box">
255
+ <div class="demo-wrapper demo-lazy clearfix">
256
+ <div class="demo-slide"><div class="bg"></div></div>
257
+ <div class="demo-slide"><div class="bg"></div></div>
258
+ <div class="demo-slide"><div class="bg"></div></div>
259
+ </div>
260
+ <h3>Lazy Load</h3>
261
+ </a>
262
+ </div>
263
+
264
+ <div class="span3">
265
+ <a href="autoHeight.html" class="demo-box">
266
+ <div class="demo-wrapper demo-height clearfix">
267
+ <div class="demo-slide"><div class="bg"></div></div>
268
+ </div>
269
+ <h3>Auto Height</h3>
270
+ </a>
271
+ </div>
272
+
273
+ </div>
274
+ </div>
275
+ </div>
276
+
277
+ <div id="footer">
278
+ <div class="container">
279
+ <div class="row">
280
+ <div class="span12">
281
+ <h5>Bartosz Wojciechowski 2013 / @OwlFonk /
282
+ <a href="mailto:owl@owlgraphic.com?subject=Hey Owl!">email</a> /
283
+ <a href="../changelog.html">changelog</a> /
284
+ <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EFSGXZS7V2U9N">donate</a> /
285
+ <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://owlgraphic.com/owlcarousel/" data-text="Awesome jQuery Owl Carousel Responsive Plugin" data-via="OwlFonk" data-count="none" data-hashtags="owlcarousel"></a>
286
+ <script>
287
+ var owldomain = window.location.hostname.indexOf("owlgraphic");
288
+ if(owldomain !== -1){
289
+ !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
290
+ }
291
+ </script>
292
+ </h5>
293
+ </div>
294
+ </div>
295
+ </div>
296
+ </div>
297
+
298
+
299
+ <script src="../assets/js/jquery-1.9.1.min.js"></script>
300
+ <script src="../owl-carousel/owl.carousel.js"></script>
301
+
302
+
303
+ <!-- Demo -->
304
+
305
+ <style>
306
+ #owl-demo .item{
307
+ margin: 3px;
308
+ }
309
+ #owl-demo .item img{
310
+ display: block;
311
+ width: 100%;
312
+ height: auto;
313
+ }
314
+ </style>
315
+
316
+
317
+ <script>
318
+ $(document).ready(function() {
319
+
320
+ $("#owl-demo").owlCarousel({
321
+ items : 4,
322
+ lazyLoad : true,
323
+ navigation : true
324
+ });
325
+
326
+ });
327
+ </script>
328
+
329
+
330
+ <script src="../assets/js/bootstrap-collapse.js"></script>
331
+ <script src="../assets/js/bootstrap-transition.js"></script>
332
+ <script src="../assets/js/bootstrap-tab.js"></script>
333
+
334
+ <script src="../assets/js/google-code-prettify/prettify.js"></script>
335
+ <script src="../assets/js/application.js"></script>
336
+
337
+ </body>
338
+ </html>
@@ -0,0 +1,515 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Owl Carousel - Content Manipulations</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <meta name="description" content="jQuery Responsive Carousel - Owl Carusel">
8
+ <meta name="author" content="Bartosz Wojciechowski">
9
+
10
+ <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,600,700' rel='stylesheet' type='text/css'>
11
+ <link href="../assets/css/bootstrapTheme.css" rel="stylesheet">
12
+ <link href="../assets/css/custom.css" rel="stylesheet">
13
+
14
+ <!-- Owl Carousel Assets -->
15
+ <link href="../owl-carousel/owl.carousel.css" rel="stylesheet">
16
+ <link href="../owl-carousel/owl.theme.css" rel="stylesheet">
17
+
18
+ <!-- Prettify -->
19
+ <link href="../assets/js/google-code-prettify/prettify.css" rel="stylesheet">
20
+
21
+
22
+ <!-- Le fav and touch icons -->
23
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
24
+ <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
25
+ <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
26
+ <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
27
+ <link rel="shortcut icon" href="../assets/ico/favicon.png">
28
+ </head>
29
+ <body>
30
+
31
+ <div id="top-nav" class="navbar navbar-fixed-top">
32
+ <div class="navbar-inner">
33
+ <div class="container">
34
+ <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
35
+ <span class="icon-bar"></span>
36
+ <span class="icon-bar"></span>
37
+ <span class="icon-bar"></span>
38
+ </button>
39
+ <div class="nav-collapse collapse">
40
+ <ul class="nav pull-right">
41
+ <li><a href="../index.html"><i class="icon-chevron-left"></i> Back to Frontpage</a></li>
42
+ <li><a href="../owl.carousel.zip" class="download download-on" data-spy="affix" data-offset-top="450">Download</a></li>
43
+ </ul>
44
+ <ul class="nav pull-left">
45
+
46
+ </ul>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ </div>
51
+
52
+ <div id="title">
53
+ <div class="container">
54
+ <div class="row">
55
+ <div class="span12">
56
+ <h1>Content manipulations.</h1>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+
62
+ <div id="demo">
63
+ <div class="container">
64
+ <div class="row">
65
+
66
+ <div class="span10">
67
+ <div id="owl-demo" class="owl-carousel">
68
+ <div class="item dodgerBlue"><h1>Start</h1></div>
69
+ </div>
70
+ </div>
71
+
72
+ <div class="span2">
73
+
74
+ <div class="left">
75
+ <a href="" class="btn add">Add Item</a>
76
+ </div>
77
+
78
+ <div class="left">
79
+ <a href="" class="btn remove">Remove Item</a>
80
+ </div>
81
+
82
+ <div class="left">
83
+ <a class="btn reinit" href="">Reinit + singlItem</a>
84
+ </div>
85
+
86
+ <div class="left">
87
+ <a class="btn destroy" href="">Destroy</a>
88
+ </div>
89
+
90
+ <div class="left">
91
+ <a class="btn rebuild" href="">Rebuild</a>
92
+ </div>
93
+
94
+ </div>
95
+
96
+ </div>
97
+ </div>
98
+
99
+ </div>
100
+
101
+ <div id="example-info">
102
+ <div class="container">
103
+ <div class="row">
104
+ <div class="span12">
105
+ <h1>Setup</h1>
106
+ <p>See buttons on top right? Great! Now have a play with them and you get the idea. Thats all. If you have any questions let me know on <a href="https://github.com/OwlFonk/OwlCarousel">github</a> </p>
107
+ <ul class="nav nav-tabs" id="myTab">
108
+ <li class="active"><a href="#javascript">Javascript</a></li>
109
+ <li><a href="#HTML">HTML</a></li>
110
+ <li><a href="#CSS">CSS</a></li>
111
+ </ul>
112
+
113
+ <div class="tab-content">
114
+
115
+ <div class="tab-pane active" id="javascript">
116
+ <pre class="pre-show prettyprint linenums">
117
+ $(document).ready(function() {
118
+
119
+ var owl = $("#owl-demo"),
120
+ i = 0,
121
+ textholder,
122
+ booleanValue = false;
123
+
124
+ //init carousel
125
+ owl.owlCarousel();
126
+
127
+ /*
128
+ addItem() method add new slides on given position
129
+
130
+ Syntax:
131
+ owldata.addItem(htmlString, targetPosition)
132
+
133
+ First parameter(mandatory) "htmlString" accept string like this:
134
+ var newItem = "&lt;div&gt;new Item&lt;/div&gt;"
135
+
136
+ Second parameter "targetPosition" is optional and accept number values.
137
+ To add item at the end of carousel you could use -1 value. Last item is default value.
138
+ */
139
+
140
+ $('.add').on("click", function(e){
141
+ e.preventDefault();
142
+ i += 1;
143
+ var content = "&lt;div class=\"item dodgerBlue\"&gt;&lt;h1&gt;"+i+"&lt;/h1&gt;&lt;/div&gt;";
144
+ owl.data('owlCarousel').addItem(content);
145
+ });
146
+
147
+ /*
148
+ Next new owl method is .removeItem()
149
+
150
+ Syntax:
151
+ owldata.removeItem(targetPosition)
152
+
153
+ Where parameter "targetPosition" is target item you will remove.
154
+ targetPosition is optional. Default value is last item (-1);
155
+ */
156
+
157
+ $('.remove').on("click", function(e){
158
+ e.preventDefault();
159
+ i -= 1;
160
+ if(i&lt;=0)i=0;
161
+ $("#owl-demo").data('owlCarousel').removeItem();
162
+ });
163
+
164
+ /*
165
+ destroy() method unwrap whole plugin and leave original pre carousel structure
166
+
167
+ Syntax:
168
+ owldata.destroy();
169
+ */
170
+
171
+ $('.destroy').click(function(e){
172
+ e.preventDefault()
173
+ $("#owl-demo").data('owlCarousel').destroy();
174
+ });
175
+
176
+ /*
177
+ reinit() method reinitialize plugin
178
+
179
+ Syntax:
180
+ owldata.reinit(newOptions)
181
+
182
+ Yes! you can reinit plugin with new options. Old options
183
+ will be overwritten if exist or added if new.
184
+
185
+ You can easly add new content by ajax or change old options with reinit method.
186
+ */
187
+
188
+ $('.reinit').click(function(e){
189
+ e.preventDefault()
190
+ if(booleanValue === true){
191
+ booleanValue = false;
192
+ } else if(booleanValue === false){
193
+ booleanValue = true;
194
+ }
195
+
196
+ owl.data('owlCarousel').reinit({
197
+ singleItem : booleanValue
198
+ });
199
+ })
200
+
201
+ /*
202
+ Well, if you destroyed plugin why not resurect it?
203
+ */
204
+
205
+ $('.rebuild').click(function(e){
206
+ e.preventDefault()
207
+ owl.owlCarousel();
208
+ });
209
+
210
+ });
211
+ </pre>
212
+
213
+ </div>
214
+
215
+ <div class="tab-pane" id="HTML">
216
+ <pre class="pre-show prettyprint linenums">
217
+ &lt;div id="owl-demo" class="owl-carousel"&gt;
218
+ &lt;div class="item dodgerBlue"&gt;&lt;h1&gt;Start&lt;/h1&gt;&lt;/div&gt;
219
+ &lt;/div&gt;
220
+ </pre>
221
+ </div>
222
+
223
+ <div class="tab-pane" id="CSS">
224
+ <pre class="pre-show prettyprint linenums">
225
+ #owl-demo .item{
226
+ display: block;
227
+ padding: 54px 0px;
228
+ margin: 5px;
229
+ color: #FFF;
230
+ -webkit-border-radius: 3px;
231
+ -moz-border-radius: 3px;
232
+ border-radius: 3px;
233
+ text-align: center;
234
+ }
235
+ .left{
236
+ text-align: left;
237
+ margin-bottom: 10px;
238
+ }
239
+ .left .btn {
240
+ display: block;
241
+ }
242
+ </pre>
243
+ </div>
244
+ </div><!--End Tab Content-->
245
+
246
+ </div>
247
+ </div>
248
+ </div>
249
+ </div>
250
+
251
+ <div id="more">
252
+ <div class="container">
253
+
254
+ <div class="row">
255
+ <div class="span12">
256
+ <h1>More Demos</h1>
257
+ </div>
258
+ </div>
259
+
260
+ <div class="row demos-row">
261
+ <div class="span3">
262
+ <a href="images.html" class="demo-box">
263
+ <div class="demo-wrapper demo-images clearfix">
264
+ <div class="demo-slide"><div class="bg"></div></div>
265
+ <div class="demo-slide"><div class="bg"></div></div>
266
+ <div class="demo-slide"><div class="bg"></div></div>
267
+ </div>
268
+ <h3>Images</h3>
269
+ </a>
270
+ </div>
271
+
272
+ <div class="span3">
273
+ <a href="custom.html" class="demo-box">
274
+ <div class="demo-wrapper demo-custom clearfix">
275
+ <div class="demo-slide"><div class="bg"></div></div>
276
+ <div class="demo-slide"><div class="bg"></div></div>
277
+ <div class="demo-slide"><div class="bg"></div></div>
278
+ <div class="demo-slide"><div class="bg"></div></div>
279
+ <div class="demo-slide"><div class="bg"></div></div>
280
+ <div class="demo-slide"><div class="bg"></div></div>
281
+ <div class="demo-slide"><div class="bg"></div></div>
282
+ <div class="demo-slide"><div class="bg"></div></div>
283
+ <div class="demo-slide"><div class="bg"></div></div>
284
+ <div class="demo-slide"><div class="bg"></div></div>
285
+ </div>
286
+ <h3>Custom</h3>
287
+ </a>
288
+ </div>
289
+
290
+ <div class="span3">
291
+ <a href="itemsCustom.html" class="demo-box">
292
+ <div class="demo-wrapper demo-full clearfix">
293
+ <div class="demo-slide"><div class="bg"></div></div>
294
+ <div class="demo-slide"><div class="bg"></div></div>
295
+ <div class="demo-slide"><div class="bg"></div></div>
296
+ <div class="demo-slide"><div class="bg"></div></div>
297
+ </div>
298
+ <h3>Custom 2</h3>
299
+ </a>
300
+ </div>
301
+
302
+ <div class="span3">
303
+ <a href="one.html" class="demo-box">
304
+ <div class="demo-wrapper demo-one clearfix">
305
+ <div class="demo-slide"><div class="bg"></div></div>
306
+ </div>
307
+ <h3>One Slide</h3>
308
+ </a>
309
+ </div>
310
+
311
+ </div>
312
+ <div class="row demos-row">
313
+ <div class="span3">
314
+ <a href="json.html" class="demo-box">
315
+ <div class="demo-wrapper demo-Json clearfix">
316
+ <div class="demo-slide"><div class="bg"></div></div>
317
+ <div class="demo-slide"><div class="bg"></div></div>
318
+ <div class="demo-slide"><div class="bg"></div></div>
319
+ <div class="demo-slide"><div class="bg"></div></div>
320
+ <div class="demo-slide"><div class="bg"></div></div>
321
+ </div>
322
+ <h3>JSON</h3>
323
+ </a>
324
+ </div>
325
+
326
+ <div class="span3">
327
+ <a href="customJson.html" class="demo-box">
328
+ <div class="demo-wrapper demo-Json-custom clearfix">
329
+ <div class="demo-slide"><div class="bg"></div></div>
330
+ <div class="demo-slide"><div class="bg"></div></div>
331
+ <div class="demo-slide"><div class="bg"></div></div>
332
+ </div>
333
+ <h3>JSON Custom</h3>
334
+ </a>
335
+ </div>
336
+
337
+ <div class="span3">
338
+ <a href="lazyLoad.html" class="demo-box">
339
+ <div class="demo-wrapper demo-lazy clearfix">
340
+ <div class="demo-slide"><div class="bg"></div></div>
341
+ <div class="demo-slide"><div class="bg"></div></div>
342
+ <div class="demo-slide"><div class="bg"></div></div>
343
+ </div>
344
+ <h3>Lazy Load</h3>
345
+ </a>
346
+ </div>
347
+
348
+ <div class="span3">
349
+ <a href="autoHeight.html" class="demo-box">
350
+ <div class="demo-wrapper demo-height clearfix">
351
+ <div class="demo-slide"><div class="bg"></div></div>
352
+ </div>
353
+ <h3>Auto Height</h3>
354
+ </a>
355
+ </div>
356
+
357
+ </div>
358
+ </div>
359
+ </div>
360
+
361
+ <div id="footer">
362
+ <div class="container">
363
+ <div class="row">
364
+ <div class="span12">
365
+ <h5>Bartosz Wojciechowski 2013 / @OwlFonk /
366
+ <a href="mailto:owl@owlgraphic.com?subject=Hey Owl!">email</a> /
367
+ <a href="../changelog.html">changelog</a> /
368
+ <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EFSGXZS7V2U9N">donate</a> /
369
+ <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://owlgraphic.com/owlcarousel/" data-text="Awesome jQuery Owl Carousel Responsive Plugin" data-via="OwlFonk" data-count="none" data-hashtags="owlcarousel"></a>
370
+ <script>
371
+ var owldomain = window.location.hostname.indexOf("owlgraphic");
372
+ if(owldomain !== -1){
373
+ !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
374
+ }
375
+ </script>
376
+ </h5>
377
+ </div>
378
+ </div>
379
+ </div>
380
+ </div>
381
+
382
+ <script src="../assets/js/jquery-1.9.1.min.js"></script>
383
+ <script src="../owl-carousel/owl.carousel.js"></script>
384
+
385
+
386
+ <!-- Demo -->
387
+
388
+ <style>
389
+ #owl-demo .item{
390
+ display: block;
391
+ padding: 54px 0px;
392
+ margin: 5px;
393
+ color: #FFF;
394
+ -webkit-border-radius: 3px;
395
+ -moz-border-radius: 3px;
396
+ border-radius: 3px;
397
+ text-align: center;
398
+ }
399
+ .left{
400
+ text-align: left;
401
+ margin-bottom: 10px;
402
+ }
403
+ .left .btn {
404
+ display: block;
405
+ }
406
+ </style>
407
+
408
+
409
+ <script>
410
+ $(document).ready(function() {
411
+
412
+ var owl = $("#owl-demo"),
413
+ i = 0,
414
+ textholder,
415
+ booleanValue = false;
416
+
417
+ //init carousel
418
+ owl.owlCarousel();
419
+
420
+ /*
421
+ addItem() method add new slides on given position
422
+
423
+ Syntax:
424
+ owldata.addItem(htmlString, targetPosition)
425
+
426
+ First parameter(mandatory) "htmlString" accept string like this:
427
+ var newItem = "<div>new Item</div>"
428
+
429
+ Second parameter "targetPosition" is optional and accept number values.
430
+ To add item at the end of carousel you could use -1 value. Last item is default value.
431
+ */
432
+
433
+ $('.add').on("click", function(e){
434
+ e.preventDefault();
435
+ i += 1;
436
+ var content = "<div class=\"item dodgerBlue\"><h1>"+i+"</h1></div>";
437
+ owl.data('owlCarousel').addItem(content);
438
+ });
439
+
440
+ /*
441
+ Next new owl method is .removeItem()
442
+
443
+ Syntax:
444
+ owldata.removeItem(targetPosition)
445
+
446
+ Where parameter "targetPosition" is target item you will remove.
447
+ targetPosition is optional. Default value is last item (-1);
448
+ */
449
+
450
+ $('.remove').on("click", function(e){
451
+ e.preventDefault();
452
+ i -= 1;
453
+ if(i<=0)i=0;
454
+ $("#owl-demo").data('owlCarousel').removeItem();
455
+ });
456
+
457
+ /*
458
+ destroy() method unwrap whole plugin and leave original pre carousel structure
459
+
460
+ Syntax:
461
+ owldata.destroy();
462
+ */
463
+
464
+ $('.destroy').click(function(e){
465
+ e.preventDefault()
466
+ $("#owl-demo").data('owlCarousel').destroy();
467
+ });
468
+
469
+ /*
470
+ reinit() method reinitialize plugin
471
+
472
+ Syntax:
473
+ owldata.reinit(newOptions)
474
+
475
+ Yes! you can reinit plugin with new options. Old options
476
+ will be overwritten if exist or added if new.
477
+
478
+ You can easly add new content by ajax or change old options with reinit method.
479
+ */
480
+
481
+ $('.reinit').click(function(e){
482
+ e.preventDefault()
483
+ if(booleanValue === true){
484
+ booleanValue = false;
485
+ } else if(booleanValue === false){
486
+ booleanValue = true;
487
+ }
488
+
489
+ owl.data('owlCarousel').reinit({
490
+ singleItem : booleanValue
491
+ });
492
+ })
493
+
494
+ /*
495
+ Well, if you destroyed plugin why not resurect it?
496
+ */
497
+
498
+ $('.rebuild').click(function(e){
499
+ e.preventDefault()
500
+ owl.owlCarousel();
501
+ });
502
+
503
+ });
504
+ </script>
505
+
506
+
507
+ <script src="../assets/js/bootstrap-collapse.js"></script>
508
+ <script src="../assets/js/bootstrap-transition.js"></script>
509
+ <script src="../assets/js/bootstrap-tab.js"></script>
510
+
511
+ <script src="../assets/js/google-code-prettify/prettify.js"></script>
512
+ <script src="../assets/js/application.js"></script>
513
+
514
+ </body>
515
+ </html>