-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (49 loc) · 1.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cards Uchiha</title>
<link rel="stylesheet" href="/src/style.css">
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"
/>
<link rel="stylesheet" href="src/fontawesome-free-6.4.2-web/fontawesome-free-6.4.2-web/css/all.min.css">
<script src="https://code.jquery.com/jquery-3.7.1.js" ></script>
</head>
<body>
<h1>U c h i h a s
<span>Clique na imagem</span>
</h1>
<!-- Div para por o Swiper -->
<div class="swiper">
<div class="swiper-wrapper">
<!-- Aqui dentro serão gerados os slides pelo Jquery -->
</div>
<!-- Botões de navegação -->
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div> <br>
</body>
<script src="script.js"></script>
<!-- CDN para o SWIPER -->
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js">
</script>
<script type="module">
import Swiper from 'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.mjs'
const swiper = new Swiper('.swiper', {
// Parametros para o swiper
direction: 'horizontal',
loop: true,
keyboard: {
enabled: true,
onlyInViewport: false,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
</script>
</html>