-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
227 lines (225 loc) · 7 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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="https://glitch.com/favicon.ico" />
<style>
h1 {text-align : center}
p {text-align : center}
div {text-align : center}
* {box-sizing: border-box}
body {font-family: Times New Roman, sans-serif; margin:0}
body{background-color: lightpink}
h2{font-size: 20px}
h2 {text-align : left}
h3{font-size: 15px}
h3{text-align: left}
.mySlides {display: none}
img {vertical-align: middle;}
/* Slideshow Container */
.slideshow-container
{
max-width: 1000px;
position: relative;
margin: auto;
}
/* Next & Previous Buttons */
.prev, .next
{
cursor: pointer;
position: absolute;
top: 25%;
left: 30.2%;
width: auto;
padding: 16px;
margin-top: -22px;
color: white;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}
/* Position the "Next Button" to the Right ("Previous Button" is Already Auto-Positioned to the Left)*/
.next
{
right: 0;
border-radius: 3px 0 0 3px;
width: 20px;
}
/* On Hover, Add a Black Background Color With a Little Bit See-Through */
.prev:hover, .next:hover
{
background-color: rgba(0,0,0,0.8);
}
/* Caption Text */
.text
{
color: #f2f2f2;
font-size: 15px;
padding: 8px 12px;
position: absolute;
bottom: 8px;
width: 100%;
text-align: center;
}
/* Number Text (1/3 etc) */
.numbertext
{
color: #f2f2f2;
font-size: 12px;
padding: 8px 12px;
position: absolute;
top: 0;
left: 48%;
}
/* The Dots Below the Pictures */
.dot
{
cursor: pointer;
height: 15px;
width: 15px;
margin: 0 2px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
transition: background-color 0.6s ease;
}
/*Changes the Color of the Dots When Hovered Over*/
.active, .dot:hover
{
background-color: #717171;
}
/* Fading Animation */
.fade
{
animation-name: fade;
animation-duration: 1.5s;
}
@keyframes fade
{
from {opacity: .4}
to {opacity: 1}
}
/* On Smaller Screens, Decrease Text Size */
@media only screen and (max-width: 300px)
{
.prev, .next,.text {font-size: 11px}
}
</style>
</head>
<body>
<div class="slideshow-container">
<div class="mySlides fade">
<div class="numbertext">1 / 5</div>
<img src="https://globalgrasshopper.com/wp-content/uploads/2012/11/The-Rockies-Canada.webp" style="width:50%">
<div class="text">The Rockies</div>
</div>
<div class="mySlides fade">
<div class="numbertext">2 / 5</div>
<img src="https://dynaimage.cdn.cnn.com/cnn/q_auto,w_900,c_fill,g_auto,h_506,ar_16:9/http%3A%2F%2Fcdn.cnn.com%2Fcnnnext%2Fdam%2Fassets%2F140630124917-12-canada-most-beautiful-places.jpg" style="width:50%">
<div class="text">The Toronto Waterfront</div>
</div>
<div class="mySlides fade">
<div class="numbertext">3 / 5</div>
<img src="https://lp-cms-production.imgix.net/2020-12/Ottawa-Winter-Skyline.jpg" style="width:50%">
<div class="text">Ottawa</div>
</div>
<div class="mySlides fade">
<div class="numbertext">4 / 5</div>
<img src="https://spacetourismguide.com/wp-content/uploads/2019/05/Northern-Lights-in-Canada.jpeg" style="width:50%">
<div class="text">Auroras Boreales/Northern Lights</div>
</div>
<div class="mySlides fade">
<div class="numbertext">5 / 5</div>
<img src="https://static01.nyt.com/images/2019/03/10/travel/00PTG-ONTARIO-slide-6Z48/10PTG-ONTARIO-slide-6Z48-jumbo.jpg" style="width:50%">
<div class="text">The Shores of Lake Superior</div>
</div>
</div>
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
<br>
<div style="text-align:center">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
<span class="dot" onclick="currentSlide(4)"></span>
<span class="dot" onclick="currentSlide(5)"></span>
</div>
<script>
let slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n)
{
showSlides(slideIndex += n);
}
function currentSlide(n)
{
showSlides(slideIndex = n);
}
function showSlides(n)
{
let i;
let slides = document.getElementsByClassName("mySlides");
let dots = document.getElementsByClassName("dot");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++)
{
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++)
{
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
}
</script>
<h1>
Welcome to Canada
</h1>
<h2>
Visa
</h2>
<h3>
-Visa is not necessary for stays under 180 days <br>
-You just need a valid U.S. pasport
</h3>
<h2>
Major Cities
</h2>
<h3>
-Toronto <br>
-Ottawa <br>
-Vancouver <br>
-Montreal <br>
-Quebec <br>
</h3>
<h2>
Language
</h2>
<h3>
-Both English and French are official languages of Canada <br>
-They are spoken in different parts
</h3>
<h2>
Culture
</h2>
<h3>
-Canada is very similar to the U.S. culturally <br>
-Canadians have a reputation of being very friendly
</h3>
<h2>
Flight Tickets
</h2>
<h3>
-
<a href="https://www.expedia.com/Destinations-In-Canada.d31.Flight-Destinations?regionId=31&langid=1033&semcid=US.MULTILOBF.GOOGLE.DL-c-EN.FLIGHT&semdtl=a1932776990.b147363343780.r11a5d7891a7874b6ed9435a9a6dfa19f0659b21ad20f2e9bbc3e73f3532425a3b.g1kwd-296848162685.i1.d1582885408866.e1c.j19026945.k1.f1.n1.l1g.h1e.m1&gclid=CjwKCAiAlp2fBhBPEiwA2Q10DwvApXihroqZgZ2DLgSF5zxi864VpbDH4D3YZVOIBM3GAclgzT_9TBoCwOQQAvD_BwE">click here</a>
</h3>
<div style = "position: relative; left: 39.7%;">
<button onclick = "document.location ='https://slaycation.glitch.me/'" style = "background-color: #b3e6db; border: none; border-radius: 12px; height: 40px; font-family: Times New Roman">Want to Explore a Different Country? <br>Go Back to Home Page</button>
</div>
</body>
</html>