Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question