-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
63 lines (58 loc) · 1.92 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Owl Carousel Aria</title>
<link rel="stylesheet" href="/node_modules/owl.carousel/dist/assets/owl.carousel.min.css" />
<script src="/node_modules/jquery/dist/jquery.js"></script>
<script src="/node_modules/owl.carousel/dist/owl.carousel.min.js"></script>
<script src="/src/js/owl.carousel.aria.js"></script>
<script src="/main.js"></script>
<style>
.owl-carousel {
background: #ccc;
}
.owl-carousel .owl-carousel {
background: blue;
}
.owl-carousel div[aria-hidden=false] {
background: green;
}
.owl-carousel button.owl-dot {
width: 30px;
height: 30px;
border: 2px solid red;
background: green !important;
display: inline-block;
margin: 5px;
}
</style>
</head>
<body>
<h1>Single</h1>
<div class="owl-carousel owl-main">
<div> 1 </div>
<div> 2 </div>
<div> <button>Klick mich</button></div>
<div> 4 <span tabindex="2">gut</span> </div>
<div> 5</div>
<div> 6 </div>
<div> 7 </div>
</div>
<h1>Nested</h1>
<div class="owl-carousel owl-main">
<div>
<div class="owl-carousel owl-nested">
<div> Sub 1 </div>
<div> Sub 2 </div>
<div> Sub 3 </div>
</div>
</div>
<div> 2 </div>
<div> 3 </div>
<div> 4 </div>
</div>
<div style="margin-bottom:300px"></div>
<button id="destroy">destroy owl carousel</button>
</body>
</html>