Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function project_custom_script()
- {
- ?>
- <script>
- jQuery(document).ready(function($){
- // Project Scroll Js
- jQuery('#newCarouselpro .item').each(function(){
- var next = $(this).next();
- if (!next.length) {
- next = jQuery(this).siblings(':first');
- }
- next.children(':first-child').clone().appendTo($(this));
- for (var i=1;i<3;i++) {
- next=next.next();
- if (!next.length) {
- next = $(this).siblings(':first');
- }
- next.children(':first-child').clone().appendTo($(this));
- }
- });
- });
- </script>
- <?php
- }
- add_action('wp_footer','project_custom_script');
- ?>
Add Comment
Please, Sign In to add comment