Vukane

Sydney clicable slides

Sep 29th, 2020
13
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function($){
  2.  
  3. if( $('.header-slider').length ){
  4.  
  5. var slideLink1 = '<a href="https://www.demo.savemoz.com/para-mim/eventos-ekspi"></a>';
  6. var slideLink2 = '<a href="https://www.demo.savemoz.com/projectos-produtos/ekspi-net"></a>';
  7. var slideLink3 = '<a href="https://www.demo.savemoz.com/artistas-associados/as-nossas-estrelas"></a>';
  8. var slideLink4 = '<a href="https://www.demo.savemoz.com/sobre-nos/missao"></a>';
  9. var slideLink5 = '<a href="https://www.demo.savemoz.com/projectos-produtos/funda-mundi/responsabilidade-social"></a>';
  10.  
  11. //Hide the default button
  12. $('.slide-inner a').hide();
  13.  
  14. if($('.slide-item:nth-of-type(1)').length){
  15. $('.slide-item:nth-of-type(1)').wrapInner(slideLink1);
  16. }
  17.  
  18. if($('.slide-item:nth-of-type(2)').length){
  19. $('.slide-item:nth-of-type(2)').wrapInner(slideLink2);
  20. }
  21.  
  22. if($('.slide-item:nth-of-type(3)').length){
  23. $('.slide-item:nth-of-type(3)').wrapInner(slideLink3);
  24. }
  25.  
  26. if($('.slide-item:nth-of-type(4)').length){
  27. $('.slide-item:nth-of-type(4)').wrapInner(slideLink4);
  28. }
  29.  
  30. if($('.slide-item:nth-of-type(5)').length){
  31. $('.slide-item:nth-of-type(5)').wrapInner(slideLink5);
  32. }
  33.  
  34. }
  35.  
  36. })(jQuery);
RAW Paste Data