Guest User

Untitled

a guest
Mar 10th, 2018
31
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function project_custom_script()
  2. {
  3.  
  4. ?>
  5. <script>
  6. jQuery(document).ready(function($){
  7. // Project Scroll Js
  8. jQuery('#newCarouselpro .item').each(function(){
  9.  
  10. var next = $(this).next();
  11. if (!next.length) {
  12. next = jQuery(this).siblings(':first');
  13. }
  14. next.children(':first-child').clone().appendTo($(this));
  15.  
  16. for (var i=1;i<3;i++) {
  17. next=next.next();
  18. if (!next.length) {
  19. next = $(this).siblings(':first');
  20. }
  21.  
  22. next.children(':first-child').clone().appendTo($(this));
  23. }
  24. });
  25.  
  26. });
  27. </script>
  28. <?php
  29. }
  30. add_action('wp_footer','project_custom_script');
  31. ?>
RAW Paste Data