-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathguidelines.html
More file actions
80 lines (69 loc) · 2.19 KB
/
guidelines.html
File metadata and controls
80 lines (69 loc) · 2.19 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FAQ - Pet Jett</title>
<style>
.accordion {
background-color: #8bc34a;
color: #fff;
cursor: pointer;
padding: 12px;
width: 100%;
border: none;
text-align: left;
outline: none;
transition: 0.4s;
}
.active, .accordion:hover {
background-color: #d3eba9;
}
.arrow:after {
content: '\02795';
font-size: 12px;
color: #666;
float: right;
}
.active .arrow:after {
content: "\2796";
}
.panel {
padding: 0 12px;
background-color: white;
display: none;
overflow: hidden;
}
</style>
</head>
<body>
<h1>FAQ - Pet Jett</h1>
<button class="accordion">Do all pets need shots? <span class="arrow"></span></button>
<div class="panel">
<p>Yes, all furry friends must be up-to-date with their shots to hop on board!</p>
</div>
<button class="accordion">Can my pet chill with me in the cabin? <span class="arrow"></span></button>
<div class="panel">
<p>Of course! If your buddy plays by the rules and behaves well, they can chill with you .</p>
</div>
<button class="accordion">Any breed restrictions? <span class="arrow"></span></button>
<div class="panel">
<p>Nope, we love all breeds! Just keep an eye on aggressive behavior.</p>
</div>
<!-- We'll add more FAQs later -->
<script>
var acc = document.getElementsByClassName("accordion");
for (var i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.display === "block") {
panel.style.display = "none";
} else {
panel.style.display = "block";
}
});
}
</script>
</body>
</html>