-
Notifications
You must be signed in to change notification settings - Fork 0
/
alabama.html
122 lines (110 loc) · 4.44 KB
/
alabama.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!-- Allows the user to look at the state's information for road rules and a landmark -->
<!DOCTYPE html>
<html lang = "en">
<head>
<meta charset = "UTF-8">
<meta http-equiv = "X-UA-Compatible" content = "IE=edge">
<meta name = "viewport" content = "width = device-width, initial-scale = 1.0">
<title>RoadTrip Alabama</title>
<link rel = "stylesheet" href = "src/css/floridastyles.css">
<!-- Scripts -->
<script src="https://www.gstatic.com/firebasejs/8.3.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.3.1/firebase-database.js"></script>
<script src="src/scripts/initialize.js"></script>
<script defer src="src/scripts/state.js"></script>
</head>
<body style = "background-color: #98e0e5">
<h1 class = "title1">Welcome to</h1>
<h1 class = "title2">Alabama!</h1>
<h2 id="stateId" style.display="none">AL</h2>
<footer>
RoadTrip Project Created By Team 20: Anna Macinnis, Daisy Nguyen, Dynie Mesoneuvre, Noah Carrier
</footer>
<!-- ACCORDIAN SECTION -->
<style>
@font-face {
font-family: norwester;
src: url(/fonts/norwester.ttf);
}
.accordion {
background-color: #eee;
color: rgb(11, 11, 11);
cursor: pointer;
padding: 18px;
width: 49%;
border: none;
text-align: left;
outline: none;
font-size: 50px;
transition: 0.4s;
border-radius: 500px;
border: 8px solid #040404;
margin: 10px;
font-family: norwester;
left: 350px;
bottom: -20px;
position:relative;
}
.active, .accordion:hover {
background-color: rgb(144, 139, 139);
}
.panel {
padding: 0 18px;
display: none;
background-color: white;
overflow: hidden;
position: relative;
bottom: -20px;
font-family: norwester;
font-size: 23px;
width: 750px;
border: 8px solid #040404;
right: -300px;
}
.accordion:after {
content: "\➤"; /* Unicode character for "plus" sign (+) */
font-size: 50px;
color: rgb(3, 2, 2);
float: left;
margin-left: 20px;
margin-right: 10px;
}
.active:after {
content: "\▼"; /* Unicode character for "minus" sign (-) */
}
</style>
</head>
<body>
<button class="accordion">Road Rules</button>
<div class="panel">
<p id="AL-law">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
<!-- <button class="accordion">Fun Facts</button>
<div class="panel">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div> -->
<button id="AL-lmName" class="accordion">Landmark</button>
<div class="panel">
<p id="AL-lmDesc">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
<script>
var acc = document.getElementsByClassName("accordion");
var i;
for (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>
<!-- END OF ACCORDIAN SECTION -->
<!-- Goes back to the Plan Your Trip page -->
<button id = "goback_btn" onclick="window.location.href='plantrip.html';">New Trip!</button>
<button id = "backtolist_btn" onclick="window.location.href='trip.html';">Back To List!</button>
</body>
</html>