Automatically Append Vertical Nav to SlideDeck Spines


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2. $('.skin-slidedeck .slidedeck').slidedeck().loaded(function(){
  3. $('.skin-slidedeck .slidedeck dd:has(".slidesVertical")').each(function(i){
  4. if( $(this).find('.slidesVertical li').length > 1 ){
  5. var index = $('.skin-slidedeck .slidedeck dd').index( $(this) ) + 1;
  6. $('.skin-slidedeck dl.slidedeck .slide_'+ index +' .verticalSlideNav').appendTo('.skin-slidedeck dl.slidedeck .spine_'+ index +'');
  7. }
  8. });
  9. }).vertical();
  10. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.