SpongeBOB
Well-Known Coder
Hi everyone,
I try to make owl.carousel.js working.
I followed the instructions
but instead of having

I got :

here the html:
[CODE lang="html" title="The HTML"]<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Carousel test</title>
<link rel="stylesheet" href="static/OwlCarousel/owl.carousel.min.css">
<link rel="stylesheet" href="static/OwlCarousel/assets/owl.theme.default.min.css">
</head>
<body bgcolor="#1c1c1c" text="#E1E1E1">
<div class="owl-carousel">
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
</div>
<script src="static/jquery/jquery-3.6.0.min"></script>
<script src="static/OwlCarousel/owl.carousel.min.js"></script>
<script>
$(document).ready(function() {
var owl = $('.owl-carousel');
owl.owlCarousel({
margin: 10,
nav: true,
loop: true,
responsive: {
0: {
items: 1
},
600: {
items: 3
},
1000: {
items: 5
}
}
})
})
</script>
</body>
</html>[/CODE]
[CODE title="The directory structure"].
| test.html
|
\---static
|
+---jquery
| jquery-3.6.0.min.js
|
\---OwlCarousel
| owl.carousel.min.js
|
\---assets
ajax-loader.gif
owl.carousel.css
owl.carousel.min.css
owl.theme.default.css
owl.theme.default.min.css
owl.theme.green.css
owl.theme.green.min.css
owl.video.play.png[/CODE]
Any ideas ?
I try to make owl.carousel.js working.
I followed the instructions
but instead of having

I got :

here the html:
[CODE lang="html" title="The HTML"]<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Carousel test</title>
<link rel="stylesheet" href="static/OwlCarousel/owl.carousel.min.css">
<link rel="stylesheet" href="static/OwlCarousel/assets/owl.theme.default.min.css">
</head>
<body bgcolor="#1c1c1c" text="#E1E1E1">
<div class="owl-carousel">
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
</div>
<script src="static/jquery/jquery-3.6.0.min"></script>
<script src="static/OwlCarousel/owl.carousel.min.js"></script>
<script>
$(document).ready(function() {
var owl = $('.owl-carousel');
owl.owlCarousel({
margin: 10,
nav: true,
loop: true,
responsive: {
0: {
items: 1
},
600: {
items: 3
},
1000: {
items: 5
}
}
})
})
</script>
</body>
</html>[/CODE]
[CODE title="The directory structure"].
| test.html
|
\---static
|
+---jquery
| jquery-3.6.0.min.js
|
\---OwlCarousel
| owl.carousel.min.js
|
\---assets
ajax-loader.gif
owl.carousel.css
owl.carousel.min.css
owl.theme.default.css
owl.theme.default.min.css
owl.theme.green.css
owl.theme.green.min.css
owl.video.play.png[/CODE]
Any ideas ?

