-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUpside.html
More file actions
153 lines (118 loc) · 4 KB
/
Upside.html
File metadata and controls
153 lines (118 loc) · 4 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
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
<!DOCTYPE html>
<html>
<head>
<! -- and -->
<! -- Link the css document to this page -->
<link rel="stylesheet"
href="UpsideCSS.css">
<! -- set tne width of the viewport to the width of the device -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<! -- Create a navigation bar at the top of the page the a "Home", "About" and "Login" link—>
<div class="navbar">
<div class="dropdown">
<button class="dropbtn">M e n u
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="About.html">About</a>
<a href="Login.html">Login</a>
<a href="Upside.html">Home</a>
</div>
</div>
</div>
</head>
<! -- Create a header -->
<div class="header">
<h1>Upside</h1>
</div>
<body>
<! -- Create 3 uneven columns -->
<div class="row">
<! -- Add Gifs into the left column—>
<div class="column left">
<img src="https://thumbs.gfycat.com/TenderRigidJerboa-max-1mb.gif" alt="This is my animated image" height="180" width="180">
<pre>
</pre>
<img src="https://78.media.tumblr.com/35ee379e27f696e685c04fbd4b7eac28/tumblr_p7gm1imAOw1v8uw5go1_1280.gif" height="180" width="180">
<pre>
</pre>
<img src="https://media2.giphy.com/media/42CdVn2iqYSFNS8Os3/source.gif" height="300" width="300">
</div>
<! -- In the middle column add the slideshow -->
<div class="column middle">
<div class="slideshow-container">
<div class="mySlides fade">
<div class="numbertext">1</div>
<img src="https://i.ibb.co/ZThY2yj/Screen-Shot-2020-01-02-at-11-13-56-AM.png"width:90%">
<div class="text">Log into your account</div>
</div>
<div class="mySlides fade">
<div class="numbertext">2</div>
<img src="https://i.ibb.co/h8TcQnh/Screen-Shot-2020-01-02-at-11-05-19-AM.png" style="width:100%">
<div class="text">Tell us how you're feeling</div>
</div>
<div class="mySlides fade">
<div class="numbertext">3</div>
<img src="https://i.ibb.co/LYFrt1N/Screen-Shot-2020-01-02-at-11-14-34-AM.png"width:70%">
<div class="text">Learn why you're feeling that way</div>
</div>
</div>
<br>
<div style="text-align:center">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
<script>
var slideIndex = 0;
showSlides();
//Go through all of "mySlides"
//while i is less than the total number of slides, increase the value of i by 1
function showSlides() {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
// Make the slide with the index number of i visible
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
//Change which dots changes colour based on the slide
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
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";
// Change the slide ever 5000 iterations
setTimeout(showSlides, 5000);
}
</script>
</div>
<! -- Add subtext to the bottom of the slide show -->
<div class="column right">
<img src="https://media2.giphy.com/media/42CdVn2iqYSFNS8Os3/source.gif" height="300" width="300">
<img src="https://78.media.tumblr.com/35ee379e27f696e685c04fbd4b7eac28/tumblr_p7gm1imAOw1v8uw5go1_1280.gif" height="180" width="180">
<pre>
</pre>
<img src="https://thumbs.gfycat.com/TenderRigidJerboa-max-1mb.gif" alt="This is my animated image" height="180" width="180">
</div>
</div>
<script>
/* Toggle between adding and removing the "responsive" class to the navbar when the user clicks on the icon */
function myFunction() {
var x = document.getElementById("myNavbar");
if (x.className === "navbar") {
x.className += " responsive";
} else {
x.className = "navbar";
}
}
</script>
</body>
<div class="bnavbar">
<a href="Community.html">Community</a>
<a href="FAQ.html">FAQ</a>
<a href="Guidelines.html">Guidelines</a>
</div>
</html>