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,569 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Owl Carousel - Synced Owls</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
+ <link href="../assets/js/google-code-prettify/prettify.css" rel="stylesheet">
19
+
20
+ <!-- Le fav and touch icons -->
21
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
22
+ <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
23
+ <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
24
+ <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
25
+ <link rel="shortcut icon" href="../assets/ico/favicon.png">
26
+ </head>
27
+ <body>
28
+
29
+ <div id="top-nav" class="navbar navbar-fixed-top">
30
+ <div class="navbar-inner">
31
+ <div class="container">
32
+ <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
33
+ <span class="icon-bar"></span>
34
+ <span class="icon-bar"></span>
35
+ <span class="icon-bar"></span>
36
+ </button>
37
+ <div class="nav-collapse collapse">
38
+ <ul class="nav pull-right">
39
+ <li><a href="../index.html"><i class="icon-chevron-left"></i> Back to Frontpage</a></li>
40
+ <li><a href="../owl.carousel.zip" class="download download-on" data-spy="affix" data-offset-top="450">Download</a></li>
41
+ </ul>
42
+ <ul class="nav pull-left">
43
+
44
+ </ul>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ </div>
49
+
50
+ <div id="title">
51
+ <div class="container">
52
+ <div class="row">
53
+ <div class="span12">
54
+ <h1>Synced Owls</h1>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </div>
59
+
60
+ <div id="demo">
61
+ <div class="container">
62
+ <div class="row">
63
+ <div class="span12">
64
+
65
+ <div id="sync1" class="owl-carousel">
66
+ <div class="item"><h1>1</h1></div>
67
+ <div class="item"><h1>2</h1></div>
68
+ <div class="item"><h1>3</h1></div>
69
+ <div class="item"><h1>4</h1></div>
70
+ <div class="item"><h1>5</h1></div>
71
+ <div class="item"><h1>6</h1></div>
72
+ <div class="item"><h1>7</h1></div>
73
+ <div class="item"><h1>8</h1></div>
74
+ <div class="item"><h1>9</h1></div>
75
+ <div class="item"><h1>10</h1></div>
76
+ <div class="item"><h1>11</h1></div>
77
+ <div class="item"><h1>12</h1></div>
78
+ <div class="item"><h1>13</h1></div>
79
+ <div class="item"><h1>14</h1></div>
80
+ <div class="item"><h1>15</h1></div>
81
+ <div class="item"><h1>16</h1></div>
82
+ <div class="item"><h1>17</h1></div>
83
+ <div class="item"><h1>18</h1></div>
84
+ <div class="item"><h1>19</h1></div>
85
+ <div class="item"><h1>20</h1></div>
86
+ <div class="item"><h1>21</h1></div>
87
+ <div class="item"><h1>22</h1></div>
88
+ <div class="item"><h1>23</h1></div>
89
+ </div>
90
+
91
+ <div id="sync2" class="owl-carousel">
92
+ <div class="item" ><h1>1</h1></div>
93
+ <div class="item" ><h1>2</h1></div>
94
+ <div class="item" ><h1>3</h1></div>
95
+ <div class="item" ><h1>4</h1></div>
96
+ <div class="item" ><h1>5</h1></div>
97
+ <div class="item" ><h1>6</h1></div>
98
+ <div class="item" ><h1>7</h1></div>
99
+ <div class="item" ><h1>8</h1></div>
100
+ <div class="item" ><h1>9</h1></div>
101
+ <div class="item"><h1>10</h1></div>
102
+ <div class="item"><h1>11</h1></div>
103
+ <div class="item"><h1>12</h1></div>
104
+ <div class="item"><h1>13</h1></div>
105
+ <div class="item"><h1>14</h1></div>
106
+ <div class="item"><h1>15</h1></div>
107
+ <div class="item"><h1>16</h1></div>
108
+ <div class="item"><h1>17</h1></div>
109
+ <div class="item"><h1>18</h1></div>
110
+ <div class="item"><h1>19</h1></div>
111
+ <div class="item"><h1>20</h1></div>
112
+ <div class="item"><h1>21</h1></div>
113
+ <div class="item"><h1>22</h1></div>
114
+ <div class="item"><h1>23</h1></div>
115
+ </div>
116
+
117
+
118
+ </div>
119
+ </div>
120
+ </div>
121
+
122
+ </div>
123
+
124
+ <div id="example-info">
125
+ <div class="container">
126
+ <div class="row">
127
+ <div class="span12">
128
+ <h1>Setup</h1>
129
+ <p>This is an example of using two synced Owl Carousel. This is not out of the box function, rather a demo or even "how to".
130
+ </p>
131
+ <ul class="nav nav-tabs" id="myTab">
132
+ <li class="active"><a href="#javascript">Javascript</a></li>
133
+ <li><a href="#HTML">HTML</a></li>
134
+ <li><a href="#CSS">CSS</a></li>
135
+ </ul>
136
+
137
+ <div class="tab-content">
138
+
139
+ <div class="tab-pane active" id="javascript">
140
+ <pre class="pre-show prettyprint linenums">
141
+ $(document).ready(function() {
142
+
143
+ var sync1 = $("#sync1");
144
+ var sync2 = $("#sync2");
145
+
146
+ sync1.owlCarousel({
147
+ singleItem : true,
148
+ slideSpeed : 1000,
149
+ navigation: true,
150
+ pagination:false,
151
+ afterAction : syncPosition,
152
+ responsiveRefreshRate : 200,
153
+ });
154
+
155
+ sync2.owlCarousel({
156
+ items : 15,
157
+ itemsDesktop : [1199,10],
158
+ itemsDesktopSmall : [979,10],
159
+ itemsTablet : [768,8],
160
+ itemsMobile : [479,4],
161
+ pagination:false,
162
+ responsiveRefreshRate : 100,
163
+ afterInit : function(el){
164
+ el.find(".owl-item").eq(0).addClass("synced");
165
+ }
166
+ });
167
+
168
+ function syncPosition(el){
169
+ var current = this.currentItem;
170
+ $("#sync2")
171
+ .find(".owl-item")
172
+ .removeClass("synced")
173
+ .eq(current)
174
+ .addClass("synced")
175
+ if($("#sync2").data("owlCarousel") !== undefined){
176
+ center(current)
177
+ }
178
+ }
179
+
180
+ $("#sync2").on("click", ".owl-item", function(e){
181
+ e.preventDefault();
182
+ var number = $(this).data("owlItem");
183
+ sync1.trigger("owl.goTo",number);
184
+ });
185
+
186
+ function center(number){
187
+ var sync2visible = sync2.data("owlCarousel").owl.visibleItems;
188
+ var num = number;
189
+ var found = false;
190
+ for(var i in sync2visible){
191
+ if(num === sync2visible[i]){
192
+ var found = true;
193
+ }
194
+ }
195
+
196
+ if(found===false){
197
+ if(num>sync2visible[sync2visible.length-1]){
198
+ sync2.trigger("owl.goTo", num - sync2visible.length+2)
199
+ }else{
200
+ if(num - 1 === -1){
201
+ num = 0;
202
+ }
203
+ sync2.trigger("owl.goTo", num);
204
+ }
205
+ } else if(num === sync2visible[sync2visible.length-1]){
206
+ sync2.trigger("owl.goTo", sync2visible[1])
207
+ } else if(num === sync2visible[0]){
208
+ sync2.trigger("owl.goTo", num-1)
209
+ }
210
+
211
+ }
212
+
213
+ });
214
+ </pre>
215
+
216
+ </div>
217
+
218
+ <div class="tab-pane" id="HTML">
219
+ <pre class="pre-show prettyprint linenums">
220
+ &lt;div id="sync1" class="owl-carousel"&gt;
221
+ &lt;div class="item"&gt;&lt;h1&gt;1&lt;/h1&gt;&lt;/div&gt;
222
+ &lt;div class="item"&gt;&lt;h1&gt;2&lt;/h1&gt;&lt;/div&gt;
223
+ &lt;div class="item"&gt;&lt;h1&gt;3&lt;/h1&gt;&lt;/div&gt;
224
+ &lt;div class="item"&gt;&lt;h1&gt;4&lt;/h1&gt;&lt;/div&gt;
225
+ &lt;div class="item"&gt;&lt;h1&gt;5&lt;/h1&gt;&lt;/div&gt;
226
+ &lt;div class="item"&gt;&lt;h1&gt;6&lt;/h1&gt;&lt;/div&gt;
227
+ &lt;div class="item"&gt;&lt;h1&gt;7&lt;/h1&gt;&lt;/div&gt;
228
+ &lt;div class="item"&gt;&lt;h1&gt;8&lt;/h1&gt;&lt;/div&gt;
229
+ &lt;div class="item"&gt;&lt;h1&gt;9&lt;/h1&gt;&lt;/div&gt;
230
+ &lt;div class="item"&gt;&lt;h1&gt;10&lt;/h1&gt;&lt;/div&gt;
231
+ &lt;div class="item"&gt;&lt;h1&gt;11&lt;/h1&gt;&lt;/div&gt;
232
+ &lt;div class="item"&gt;&lt;h1&gt;12&lt;/h1&gt;&lt;/div&gt;
233
+ &lt;div class="item"&gt;&lt;h1&gt;13&lt;/h1&gt;&lt;/div&gt;
234
+ &lt;div class="item"&gt;&lt;h1&gt;14&lt;/h1&gt;&lt;/div&gt;
235
+ &lt;div class="item"&gt;&lt;h1&gt;15&lt;/h1&gt;&lt;/div&gt;
236
+ &lt;div class="item"&gt;&lt;h1&gt;16&lt;/h1&gt;&lt;/div&gt;
237
+ &lt;div class="item"&gt;&lt;h1&gt;17&lt;/h1&gt;&lt;/div&gt;
238
+ &lt;div class="item"&gt;&lt;h1&gt;18&lt;/h1&gt;&lt;/div&gt;
239
+ &lt;div class="item"&gt;&lt;h1&gt;19&lt;/h1&gt;&lt;/div&gt;
240
+ &lt;div class="item"&gt;&lt;h1&gt;20&lt;/h1&gt;&lt;/div&gt;
241
+ &lt;div class="item"&gt;&lt;h1&gt;21&lt;/h1&gt;&lt;/div&gt;
242
+ &lt;div class="item"&gt;&lt;h1&gt;22&lt;/h1&gt;&lt;/div&gt;
243
+ &lt;div class="item"&gt;&lt;h1&gt;23&lt;/h1&gt;&lt;/div&gt;
244
+ &lt;/div&gt;
245
+ &lt;div id="sync2" class="owl-carousel"&gt;
246
+ &lt;div class="item"&gt;&lt;h1&gt;1&lt;/h1&gt;&lt;/div&gt;
247
+ &lt;div class="item"&gt;&lt;h1&gt;2&lt;/h1&gt;&lt;/div&gt;
248
+ &lt;div class="item"&gt;&lt;h1&gt;3&lt;/h1&gt;&lt;/div&gt;
249
+ &lt;div class="item"&gt;&lt;h1&gt;4&lt;/h1&gt;&lt;/div&gt;
250
+ &lt;div class="item"&gt;&lt;h1&gt;5&lt;/h1&gt;&lt;/div&gt;
251
+ &lt;div class="item"&gt;&lt;h1&gt;6&lt;/h1&gt;&lt;/div&gt;
252
+ &lt;div class="item"&gt;&lt;h1&gt;7&lt;/h1&gt;&lt;/div&gt;
253
+ &lt;div class="item"&gt;&lt;h1&gt;8&lt;/h1&gt;&lt;/div&gt;
254
+ &lt;div class="item"&gt;&lt;h1&gt;9&lt;/h1&gt;&lt;/div&gt;
255
+ &lt;div class="item"&gt;&lt;h1&gt;10&lt;/h1&gt;&lt;/div&gt;
256
+ &lt;div class="item"&gt;&lt;h1&gt;11&lt;/h1&gt;&lt;/div&gt;
257
+ &lt;div class="item"&gt;&lt;h1&gt;12&lt;/h1&gt;&lt;/div&gt;
258
+ &lt;div class="item"&gt;&lt;h1&gt;13&lt;/h1&gt;&lt;/div&gt;
259
+ &lt;div class="item"&gt;&lt;h1&gt;14&lt;/h1&gt;&lt;/div&gt;
260
+ &lt;div class="item"&gt;&lt;h1&gt;15&lt;/h1&gt;&lt;/div&gt;
261
+ &lt;div class="item"&gt;&lt;h1&gt;16&lt;/h1&gt;&lt;/div&gt;
262
+ &lt;div class="item"&gt;&lt;h1&gt;17&lt;/h1&gt;&lt;/div&gt;
263
+ &lt;div class="item"&gt;&lt;h1&gt;18&lt;/h1&gt;&lt;/div&gt;
264
+ &lt;div class="item"&gt;&lt;h1&gt;19&lt;/h1&gt;&lt;/div&gt;
265
+ &lt;div class="item"&gt;&lt;h1&gt;20&lt;/h1&gt;&lt;/div&gt;
266
+ &lt;div class="item"&gt;&lt;h1&gt;21&lt;/h1&gt;&lt;/div&gt;
267
+ &lt;div class="item"&gt;&lt;h1&gt;22&lt;/h1&gt;&lt;/div&gt;
268
+ &lt;div class="item"&gt;&lt;h1&gt;23&lt;/h1&gt;&lt;/div&gt;
269
+ &lt;/div&gt;
270
+ </pre>
271
+ </div>
272
+
273
+ <div class="tab-pane" id="CSS">
274
+ <pre class="pre-show prettyprint linenums">
275
+ #sync1 .item{
276
+ background: #0c83e7;
277
+ padding: 80px 0px;
278
+ margin: 5px;
279
+ color: #FFF;
280
+ -webkit-border-radius: 3px;
281
+ -moz-border-radius: 3px;
282
+ border-radius: 3px;
283
+ text-align: center;
284
+ }
285
+ #sync2 .item{
286
+ background: #C9C9C9;
287
+ padding: 10px 0px;
288
+ margin: 5px;
289
+ color: #FFF;
290
+ -webkit-border-radius: 3px;
291
+ -moz-border-radius: 3px;
292
+ border-radius: 3px;
293
+ text-align: center;
294
+ cursor: pointer;
295
+ }
296
+ #sync2 .item h1{
297
+ font-size: 18px;
298
+ }
299
+ #sync2 .synced .item{
300
+ background: #0c83e7;
301
+ }
302
+
303
+ </pre>
304
+ </div>
305
+ </div><!--End Tab Content-->
306
+
307
+ </div>
308
+ </div>
309
+ </div>
310
+ </div>
311
+
312
+ <div id="more">
313
+ <div class="container">
314
+
315
+ <div class="row">
316
+ <div class="span12">
317
+ <h1>More Demos</h1>
318
+ </div>
319
+ </div>
320
+
321
+ <div class="row demos-row">
322
+ <div class="span3">
323
+ <a href="images.html" class="demo-box">
324
+ <div class="demo-wrapper demo-images clearfix">
325
+ <div class="demo-slide"><div class="bg"></div></div>
326
+ <div class="demo-slide"><div class="bg"></div></div>
327
+ <div class="demo-slide"><div class="bg"></div></div>
328
+ </div>
329
+ <h3>Images</h3>
330
+ </a>
331
+ </div>
332
+
333
+ <div class="span3">
334
+ <a href="custom.html" class="demo-box">
335
+ <div class="demo-wrapper demo-custom clearfix">
336
+ <div class="demo-slide"><div class="bg"></div></div>
337
+ <div class="demo-slide"><div class="bg"></div></div>
338
+ <div class="demo-slide"><div class="bg"></div></div>
339
+ <div class="demo-slide"><div class="bg"></div></div>
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 class="demo-slide"><div class="bg"></div></div>
344
+ <div class="demo-slide"><div class="bg"></div></div>
345
+ <div class="demo-slide"><div class="bg"></div></div>
346
+ </div>
347
+ <h3>Custom</h3>
348
+ </a>
349
+ </div>
350
+
351
+ <div class="span3">
352
+ <a href="itemsCustom.html" class="demo-box">
353
+ <div class="demo-wrapper demo-full clearfix">
354
+ <div class="demo-slide"><div class="bg"></div></div>
355
+ <div class="demo-slide"><div class="bg"></div></div>
356
+ <div class="demo-slide"><div class="bg"></div></div>
357
+ <div class="demo-slide"><div class="bg"></div></div>
358
+ </div>
359
+ <h3>Custom 2</h3>
360
+ </a>
361
+ </div>
362
+
363
+ <div class="span3">
364
+ <a href="one.html" class="demo-box">
365
+ <div class="demo-wrapper demo-one clearfix">
366
+ <div class="demo-slide"><div class="bg"></div></div>
367
+ </div>
368
+ <h3>One Slide</h3>
369
+ </a>
370
+ </div>
371
+
372
+ </div>
373
+ <div class="row demos-row">
374
+ <div class="span3">
375
+ <a href="json.html" class="demo-box">
376
+ <div class="demo-wrapper demo-Json clearfix">
377
+ <div class="demo-slide"><div class="bg"></div></div>
378
+ <div class="demo-slide"><div class="bg"></div></div>
379
+ <div class="demo-slide"><div class="bg"></div></div>
380
+ <div class="demo-slide"><div class="bg"></div></div>
381
+ <div class="demo-slide"><div class="bg"></div></div>
382
+ </div>
383
+ <h3>JSON</h3>
384
+ </a>
385
+ </div>
386
+
387
+ <div class="span3">
388
+ <a href="customJson.html" class="demo-box">
389
+ <div class="demo-wrapper demo-Json-custom clearfix">
390
+ <div class="demo-slide"><div class="bg"></div></div>
391
+ <div class="demo-slide"><div class="bg"></div></div>
392
+ <div class="demo-slide"><div class="bg"></div></div>
393
+ </div>
394
+ <h3>JSON Custom</h3>
395
+ </a>
396
+ </div>
397
+
398
+ <div class="span3">
399
+ <a href="lazyLoad.html" class="demo-box">
400
+ <div class="demo-wrapper demo-lazy clearfix">
401
+ <div class="demo-slide"><div class="bg"></div></div>
402
+ <div class="demo-slide"><div class="bg"></div></div>
403
+ <div class="demo-slide"><div class="bg"></div></div>
404
+ </div>
405
+ <h3>Lazy Load</h3>
406
+ </a>
407
+ </div>
408
+
409
+ <div class="span3">
410
+ <a href="autoHeight.html" class="demo-box">
411
+ <div class="demo-wrapper demo-height clearfix">
412
+ <div class="demo-slide"><div class="bg"></div></div>
413
+ </div>
414
+ <h3>Auto Height</h3>
415
+ </a>
416
+ </div>
417
+
418
+ </div>
419
+ </div>
420
+ </div>
421
+
422
+
423
+
424
+ <div id="footer">
425
+ <div class="container">
426
+ <div class="row">
427
+ <div class="span12">
428
+ <h5>Bartosz Wojciechowski 2013 / @OwlFonk /
429
+ <a href="mailto:owl@owlgraphic.com?subject=Hey Owl!">email</a> /
430
+ <a href="../changelog.html">changelog</a> /
431
+ <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EFSGXZS7V2U9N">donate</a> /
432
+ <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>
433
+ <script>
434
+ var owldomain = window.location.hostname.indexOf("owlgraphic");
435
+ if(owldomain !== -1){
436
+ !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');
437
+ }
438
+ </script>
439
+ </h5>
440
+ </div>
441
+ </div>
442
+ </div>
443
+ </div>
444
+
445
+
446
+ <script src="../assets/js/jquery-1.9.1.min.js"></script>
447
+ <script src="../owl-carousel/owl.carousel.js"></script>
448
+
449
+
450
+ <!-- Demo -->
451
+
452
+ <style>
453
+ #sync1 .item{
454
+ background: #0c83e7;
455
+ padding: 80px 0px;
456
+ margin: 5px;
457
+ color: #FFF;
458
+ -webkit-border-radius: 3px;
459
+ -moz-border-radius: 3px;
460
+ border-radius: 3px;
461
+ text-align: center;
462
+ }
463
+ #sync2 .item{
464
+ background: #C9C9C9;
465
+ padding: 10px 0px;
466
+ margin: 5px;
467
+ color: #FFF;
468
+ -webkit-border-radius: 3px;
469
+ -moz-border-radius: 3px;
470
+ border-radius: 3px;
471
+ text-align: center;
472
+ cursor: pointer;
473
+ }
474
+ #sync2 .item h1{
475
+ font-size: 18px;
476
+ }
477
+ #sync2 .synced .item{
478
+ background: #0c83e7;
479
+ }
480
+ </style>
481
+
482
+
483
+ <script>
484
+ $(document).ready(function() {
485
+
486
+ var sync1 = $("#sync1");
487
+ var sync2 = $("#sync2");
488
+
489
+ sync1.owlCarousel({
490
+ singleItem : true,
491
+ slideSpeed : 1000,
492
+ navigation: true,
493
+ pagination:false,
494
+ afterAction : syncPosition,
495
+ responsiveRefreshRate : 200,
496
+ });
497
+
498
+ sync2.owlCarousel({
499
+ items : 15,
500
+ itemsDesktop : [1199,10],
501
+ itemsDesktopSmall : [979,10],
502
+ itemsTablet : [768,8],
503
+ itemsMobile : [479,4],
504
+ pagination:false,
505
+ responsiveRefreshRate : 100,
506
+ afterInit : function(el){
507
+ el.find(".owl-item").eq(0).addClass("synced");
508
+ }
509
+ });
510
+
511
+ function syncPosition(el){
512
+ var current = this.currentItem;
513
+ $("#sync2")
514
+ .find(".owl-item")
515
+ .removeClass("synced")
516
+ .eq(current)
517
+ .addClass("synced")
518
+ if($("#sync2").data("owlCarousel") !== undefined){
519
+ center(current)
520
+ }
521
+
522
+ }
523
+
524
+ $("#sync2").on("click", ".owl-item", function(e){
525
+ e.preventDefault();
526
+ var number = $(this).data("owlItem");
527
+ sync1.trigger("owl.goTo",number);
528
+ });
529
+
530
+ function center(number){
531
+ var sync2visible = sync2.data("owlCarousel").owl.visibleItems;
532
+
533
+ var num = number;
534
+ var found = false;
535
+ for(var i in sync2visible){
536
+ if(num === sync2visible[i]){
537
+ var found = true;
538
+ }
539
+ }
540
+
541
+ if(found===false){
542
+ if(num>sync2visible[sync2visible.length-1]){
543
+ sync2.trigger("owl.goTo", num - sync2visible.length+2)
544
+ }else{
545
+ if(num - 1 === -1){
546
+ num = 0;
547
+ }
548
+ sync2.trigger("owl.goTo", num);
549
+ }
550
+ } else if(num === sync2visible[sync2visible.length-1]){
551
+ sync2.trigger("owl.goTo", sync2visible[1])
552
+ } else if(num === sync2visible[0]){
553
+ sync2.trigger("owl.goTo", num-1)
554
+ }
555
+ }
556
+
557
+ });
558
+ </script>
559
+
560
+
561
+ <script src="../assets/js/bootstrap-collapse.js"></script>
562
+ <script src="../assets/js/bootstrap-transition.js"></script>
563
+ <script src="../assets/js/bootstrap-tab.js"></script>
564
+
565
+ <script src="../assets/js/google-code-prettify/prettify.js"></script>
566
+ <script src="../assets/js/application.js"></script>
567
+
568
+ </body>
569
+ </html>