-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.html
392 lines (351 loc) · 10.2 KB
/
about.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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Merriweather&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;500&display=swap" rel="stylesheet">
<title>Mental Health Quiz</title>
<style>
body{
font-family: 'Comfortaa', cursive;
background-color: rgb(21, 50, 101);
}
h1{
font-size: 50px;
}
h3{
font-size: 30px;
}
#nav{
height: 75px;
background-color: #153265;/*#A9A9A9;/*rgb(255, 255, 240); /*rgb(236, 235, 228);/*rgb(255, 255, 240);*/
padding-top: 20px;
position: fixed;
padding-left: 20px;
z-index: 10;
width: 100%;
}
/*#nav img{
float:left;
height: 50px;
}*/
#nav h1{
float: left;
color: #FFFFF0; /*rgb(21, 50, 101); /*rgb(120, 133, 133); /*rgb(236, 235, 228);*/
}
#nav li{
margin-top: 25px;
float: right;
margin-right: 30px;
border-left: solid #FFFFF0 2px;
padding-left: 30px;
}
#nav li a{
color: #FFFFF0;;
text-decoration: none;
}
#nav li a:hover{
color: #FFFFF0;;
}
#nav ul{
list-style: none;
color: rgb(0, 94, 160);
display: block;
}
#about{
padding-right: 50px;
}
#hero{
position: relative;
width: 100%;
height: 850px;
margin-bottom: 0px;
background-color: #153265; /*rgb(236, 235, 228);/* rgb(255, 255, 240); /*rgb(120, 133, 133);*/
}
#hero img{
width: 100%;
height: 600px;
margin-bottom: 0;
}
#text-box{
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgb(21, 50, 101); /*rgba(0,0,0, 0.8); /* Black w/opacity/see-through */
color: rgb(236, 235, 228);
font-weight: bold;
border: 3px solid #f1f1f1;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;
width: 80%;
height: 50%;
padding: 20px;
text-align: center;
}
#text-box h1{
font-size: 150px;
margin-top: 75px;
}
.scroll{
position: absolute;
top: 86%;
left: 50%;
transform: translate(-50%,-50%);
z-index: 5;
}
.scroll span{
display: block;
width: 30px;
height: 30px;
border-bottom: 5px solid #FFFFF0;/*#005ea0; /*#06A8FF;*/
border-right: 5px solid #FFFFF0;/*#005ea0; /*#06A8FF;*/
transform: rotate(45deg);
margin: -10px;
animation: animate 2s infinite;
}
.scroll span:nth-child(2){
animation-delay: -0.2s;
}
.scroll span:nth-child(3){
animation-delay: -0.4s;
}
@keyframes animate {
0%{
opacity: 0;
transform: rotate(45deg) translate(-20px,-20px);
}
50%{
opacity: 1;
}
100%{
opacity: 0;
transform: rotate(45deg) translate(20px,20px);
}
}
#featured h1{
text-align: center;
color: #FFFFF0;
}
#featured p{
text-align: center;
margin-top: 8px;
color: #FFFFF0;
/*color: rgb(0, 94, 160);*/
}
#top-boxes{
padding-bottom: 20px;
margin-left: 175px;
}
#blank{
height: 0px;
width: 100%;
clear: both;
}
.container {
position: relative;
width: 40%;
float: left;
margin-top: 30px;
margin-right: 50px;
margin-bottom: 50px;
}
.image {
display: block;
width: 100%;
height: auto;
max-height: 450px;
}
.overlay {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: 100%;
width: 100%;
opacity: 0;
transition: .5s ease;
background-color: #FFFFF0;
}
.container:hover .overlay {
opacity: 0.8;
}
.text {
color: rgb(21, 50, 101);
/*font-size: 20px;*/
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
text-align: center;
}
footer{
margin-top: 100px;
height: 30px;
width: 100%;
background-color: rgb(21, 50, 101);
padding-top: 10px;
padding-bottom: 5px;
bottom: 0;
margin-bottom: 0;
clear: both;
color: rgb(255, 255, 240);
}
footer p{
text-align: center;
color: rgb(255, 255, 240);
}
footer a{
text-decoration: none;
}
</style>
</head>
<body>
<div id="nav">
<!--<a href="index.html"> <img src="images/AR.png"> </a>-->
<a href = "index.html"> <h1>Mental Health Quiz</h1> </a>
<ul>
<li id="about"><a href="about.html">ABOUT</a></li>
<li><a href="resources.html">RESOURCES</a></li>
<li><a href="quiz.html">TAKE THE QUIZ</a></li>
</ul>
</div>
<div id="hero">
<div id="text-box">
<h1>About</h1>
<h3>Learn the ins and outs of mental health and what you should do after you take our quiz.</h3>
</div>
<div class="scroll">
<span></span>
<span></span>
<span></span>
</div>
</div>
<div id="featured">
<h1> Info </h1>
<h1> _________________ </h1>
<p> Learn more about anxiety, depression, and what to do if you need help. </p>
</div>
<div id="top-boxes">
<div class="container">
<img src="images/stress.jpg" alt="Avatar" class="image">
<div class="overlay">
<div class="text">
<h1> Anxiety </h1>
<p> A mental health disorder characterized by feelings of worry, anxiety, or fear that are strong enough to interfere with one's daily activities
Examples of anxiety disorders include panic attacks, obsessive-compulsive disorder, and post-traumatic stress disorder.
Symptoms include stress that's out of proportion to the impact of the event, inability to set aside a worry, and restlessness.
Treatment includes counseling or medications, including antidepressants. </p>
</div>
</div>
</div>
<div class="container">
<img src="images/heart.jpg" alt="Avatar" class="image">
<div class="overlay">
<div class="text">
<h1> Depression </h1>
<p> A mental health disorder characterized by persistently depressed mood or loss of interest in activities, causing significant impairment in daily life.
Possible causes include a combination of biological, psychological, and social sources of distress. You may feel sad for a long period of time or lose interest in things that you normally love doing, both of which are the most well known symptoms of depression. This can lead to many other behavioral or physical symptoms, including changes in sleep, appetit, energy level, concentration, daily behavior, or self-esteem. Depression can also be associated with thoughts of suicide. You can try a new hobby like gardening during this quarantine, exercising, and taking walks.</p>
</div>
</div>
</div>
</div>
<div id="top-boxes">
<div class="container">
<img src="images/talk.jpg" alt="Avatar" class="image">
<div class="overlay">
<div class="text">
<h1> Our Quiz </h1>
<p> Often times, people don't know if they show symptoms of mental health issues, and the high cost of healthcare can also make it seem like it's not worth it to go. This quiz is by no means a complete diagnoses, but rather a starting point so that people can feel that when they go to their appointment, they really should go to one. </p>
</div>
</div>
</div>
<div class="container">
<img src="images/help.jpg" alt="Avatar" class="image">
<div class="overlay">
<div class="text">
<h1> What's the next step? </h1>
<p> Since we are not healthcare professionals, the next step is to get into contact with a licensed professional. There, they can really diagnose you for a mental health issue, and they can make you feel better by giving you the right treatments. </p>
</div>
</div>
</div>
</div>
<footer>
<a href = "about.html"> <p>Back to top</p> </a>
</footer>
<script>
//importPackage("Packages.Users.student.Desktop.mentalhealth");
/*window.alert == null;
alert(validatePassword("akshaya", "ravi"));
delete window.alert; // true
alert(validatePassword("akshaya", "ravi")); // win*/
//document.getElementById("demo").innerHTML = validatePassword("akshaya", "ravi");
/*var slideIndex = 0;
carousel();
function carousel() {
var i;
var x = document.getElementsByClassName("mySlides");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
slideIndex++;
if (slideIndex > x.length) {slideIndex = 1}
x[slideIndex-1].style.display = "block";
setTimeout(carousel, 3000); // Change image every 2 seconds
}*/
/*object.addEventListener("click", myScript);
object.onclick = function(){myScript};
document.getElementById("button").onClick = function vp(){
alert("hello");
validatePassword("akshaya", "ravi");
}*/
/*$(function() {
$('a[href*=#]').on('click', function(e) {
e.preventDefault();
$('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top}, 500, 'linear');
});
});*/
/*(window.alert(5 + 6);
//document.getElementById("demo").innerHTML = 5 + 6;
var username = "akshaya"
var password = "ravi"*/
/*function validatePassword(username, password){
window.alert("hi!");
var myClass = Java.type("Users.student.eclipse-workspace.mhproj.src.Accounts")
//var vp = myClass.validatePassword(username, password);
window.alert("h");
//var acc = new Users.student.eclipse-workspace.Misc..src.Accounts();
//var acc = new Packages.com.student.eclipse-workspace.src.Accounts();
//var acc = Users.student.eclipse-workspace.mhproj.src.Accounts();
//var acc = Packages.Accounts();
//var acc = Packages.Users.student.Desktop.mentalhealth.Accounts();
//var acc = Packages.Users.student.Desktop.mentalhealth.Accounts().validatePassword(username, password);
window.alert("hello ");
//var tf = acc.validatePassword(username, password);
//window.alert("hello " + tf);
/*if(tf == true){
window.alert("Login successful");
}
else{
window.alert("Login failed");
}*/
//return{
//5+6;
//result: tf;
//result: acc.validatePassword (username, password);
//}
//return{
//result: acc.validatePassword (username, password);
//alert(result);
//result = "hi";
//}
//return 5+6;
//return 5 + 6
//}
</script>
</body>
</html>