V
V
Vasily Khryagin2018-11-18 20:17:45
JavaScript
Vasily Khryagin, 2018-11-18 20:17:45

Hello, the slick slider and anchor animation are not loading on the github, both of these scripts are written in jguery, so I think that's it?

Everything works at home, but not on the git. help me please

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
    <script src="slick/slick.min.js" type="text/javascript"></script>
    <script type="text/javascript">  
      $(document).ready(function(){
        $('.about-us__slider').slick({
          infinite: true,
          slidesToShow: 3,
          slidesToScroll: 1,
          arrows: true,
          prevArrow: '<img class="about-us__navigation-prevArrow" src="img/arrow.png">',
          nextArrow: '<img class="about-us__navigation-nextArrow" src="img/arrow.png">'
        });
      });
    </script>
    <!-- ***************** анимация якорей ************* -->
    <script type="text/javascript">
    $(function(){
            $("a[href^='#']").click(function(){
                    var _href = $(this).attr("href");
                    $("html, body").animate({scrollTop: $(_href).offset().top+"px"});
                    return false;
            });
    });
    </script>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2018-11-19
@402d

Git is not hosting. you can insert a picture from the same git into the readme via cdn.jsdelivr.net
github-pages perhaps you mean ?
check that master and head match. Most likely they did something wrong

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question