-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
53 lines (49 loc) · 2.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Popovers & Tooltips</title>
<!-- <link href="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" rel="stylesheet"/> -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<style>
@media (max-width: 1200px) {
.main {
flex-direction: column;
height: 120vh;
align-items: center;
justify-content: space-around;
}
}
</style>
</head>
<body style="margin: 5%;">
<div class="main" style="display: flex; gap: 10%;">
<div class="content1" style="display: flex; flex-direction: column; width: 300px;">
<img src="header-A380-own-the-sky-homepage--big.jpg" height="200px" width="300px" />
<button type="button" class="btn btn-info" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="top" data-bs-title="Info" data-bs-content="Top popover. Here's how it looks like.">
Popover on top
</button>
</div>
<div class="content2" style="display: flex; flex-direction: column; width: 300px;">
<img src="A300B-in-flight_0.jpg" height="200px" width="300px" />
<button type="button" class="btn btn-info" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="bottom" data-bs-title="Info" data-bs-content="Bottom popover. Notice how popover placement should be chosen keeping in mind that you mustn't hide other content on your page.">
Popover on bottom
</button>
</div>
<div class="content3" style="display: flex; flex-direction: column; width: 300px;">
<img src="A350-1000-in-flight.jpg" height="200px" width="300px" />
<button type="button" class="btn btn-info" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="right" data-bs-title="Content" data-bs-trigger="focus" data-bs-content="Right popover. You can also place popovers on either side. Notice how this popover is dismissable.">
Popover on a side
</button>
</div>
</div>
<script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<script>
const popoverTriggerList = document.querySelectorAll('[data-bs-toggle="popover"]')
const popoverList = [...popoverTriggerList].map(popoverTriggerEl => new bootstrap.Popover(popoverTriggerEl))
</script>
</body>
</html>