How to know which JQuery is working or in what file it is

4

I am trying to put a ScrollTo but it is not being applied because it is hitting another JQuery that has a floating button that makes it > click directs to the top of the page, then I want to find the JQuery that had the template by default but I can not find out where it is.
This is the JQuery that I want to put on and it's colliding with another one and I say this crashing because if it's loading the JQuery.

ScrollTo:

jQuery(document).ready(function($) {
  $('a[href^="#"]').bind('click.smoothscroll',function (e) {
    e.preventDefault();
    var target = this.hash,
        $target = $(target);

    $('html, body').stop().animate( {
      'scrollTop': $target.offset().top-40
    }, 900, 'swing', function () {
      window.location.hash = target;
    } );
  } );
} );
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>


<ul role="tablist">
  <li class="active" id="p1"><a href="#pane1" role="tab">Section 1</a></li>
  <li id="p2"><a href="#pane2" role="tab">Section 2</a></li>
  <li id="p3"><a href="#pane3" role="tab">Section 3</a></li>
</ul>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div id="pane1">Primera parte</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div id="pane2">Segunda parte</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div id="pane3">Tercera parte</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>

Button that comes up from the template:

<a href="#" class="scrollup">
   <i class="fa fa-angle-up"></i>
</a>  

    
asked by Javier fr 25.07.2017 в 16:44
source

1 answer

1

To check that a function is running you can put a console.log('ejecuta'); or alert('ejecuta'); in it, for example, with console.log you will see it in the element inspector console, with alert a message will appear on the page, so you can see where the problem is coming from.

If you have tried this once you do not find a solution to the problem, tell me and I will help you.

Luck.

    
answered by 27.07.2017 в 00:02