Changeset 25998 for extensions/Slimi/template/index.tpl
- Timestamp:
- Dec 17, 2013, 11:25:38 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Slimi/template/index.tpl
r18812 r25998 145 145 146 146 {if !empty($THUMBNAILS)} 147 <ul class="thumbnails" id="thumbnails">148 147 {$THUMBNAILS} 149 </ul> 148 {footer_script}{literal} 149 $('.jcarousel') 150 .jcarousel({ 151 wrap: 'circular' 152 }) 153 .jcarouselAutoscroll({ 154 autostart: false 155 }); 156 157 $('.jcarousel-control-prev') 158 .on('jcarouselcontrol:active', function() { 159 $(this).removeClass('inactive'); 160 }) 161 .on('jcarouselcontrol:inactive', function() { 162 $(this).addClass('inactive'); 163 }) 164 .jcarouselControl({ 165 target: '-=1' 166 }); 167 168 $('.jcarousel-control-next') 169 .on('jcarouselcontrol:active', function() { 170 $(this).removeClass('inactive'); 171 }) 172 .on('jcarouselcontrol:inactive', function() { 173 $(this).addClass('inactive'); 174 }) 175 .jcarouselControl({ 176 target: '+=1' 177 }); 178 {/literal}{/footer_script} 150 179 {/if} 151 180 152 181 {if empty($THUMBNAILS)} 153 {if !empty($CATEGORIES)}{$CATEGORIES}{/if} 182 {if !empty($CATEGORIES)}{$CATEGORIES} 183 {footer_script}{literal} 184 $('.jcarousel') 185 .jcarousel({ 186 wrap: 'circular' 187 }) 188 .jcarouselAutoscroll({ 189 interval: 3000, 190 target: '+=1', 191 autostart: true 192 }); 193 194 $('.jcarousel-control-prev') 195 .on('jcarouselcontrol:active', function() { 196 $(this).removeClass('inactive'); 197 }) 198 .on('jcarouselcontrol:inactive', function() { 199 $(this).addClass('inactive'); 200 }) 201 .jcarouselControl({ 202 target: '-=1' 203 }); 204 205 $('.jcarousel-control-next') 206 .on('jcarouselcontrol:active', function() { 207 $(this).removeClass('inactive'); 208 }) 209 .on('jcarouselcontrol:inactive', function() { 210 $(this).addClass('inactive'); 211 }) 212 .jcarouselControl({ 213 target: '+=1' 214 }); 215 216 $('.jcarousel') 217 .on('mouseenter', function(){ 218 $(this).jcarouselAutoscroll('stop') 219 }) 220 .on('mouseleave', function(){ 221 $(this).jcarouselAutoscroll('start') 222 }); 223 {/literal}{/footer_script} 224 225 {/if} 154 226 {/if} 155 227
Note: See TracChangeset
for help on using the changeset viewer.