hi there so i started this project this week but I'm having trouble getting slick.js to work , I tried it with images and with normal text but it does not work , am I importing slick.js in a wrong way?
the index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>project</title>
<link rel="stylesheet" href="style.css">
<!-- bootstrap-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!--slick (for sliders)-->
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>
</head>
<body>
<main>
<div class="container-fluid p-0">
<div class="site-slider">
<div class="slider-one">
<div>
<img src="./Images/1.png">
</div>
<div>
<img src="./Images/2.jpg">
</div>
<div>
<img src="./Images/3.jpg">
</div>
</div>
</div>
</div>
</main>
<footer></footer>
<!--js-->
<script type="text/javascript" src="main.js"></script>
<!-- Bootstrap Js-->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<!-- end -->
<!--Slick Js (for Sliders)-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js" integrity="sha512-XtmMtDEcNz2j7ekrtHvOVR4iwwaD6o/FUJe6+Zq+HgcCsk3kj4uSQQR8weQ2QVj1o0Pk6PwYLohm206ZzNfubg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- end -->
</body>
</html>
the main.js
$('.slider-one').slick();
it does not show any buttons or sliders like it should , images are displayed as if slick.js was not there please help !
Aucun commentaire:
Enregistrer un commentaire