-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsymptoms.html
163 lines (146 loc) · 6.15 KB
/
symptoms.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
<!DOCTYPE html>
<html>
<head>
<title>Disorders and symptoms</title>
<style>
body {
margin: 0;
height: 100vh; /* Full height */
display: flex;
flex-direction: column; /* Stack elements vertically */
align-items: center; /* Center horizontally */
justify-content: center; /* Center vertically */
background-color: #f0f0f0; /* Light background color */
font-family: Arial, sans-serif; /* Font style */
background: repeating-linear-gradient(
60deg, /* Angle of the stripes */
skyblue, /* Mint color replacing pink */
pink,
white 10px, /* Color of the second stripe */
white 20px /* Height of the second stripe */
)
}
a{
text-decoration:none ;
text-align: center;
display: flex;
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
/* Full height of the viewport */
margin: 0;
}
.welcome-text {
font-size: 60px; /* Increased font size for the welcome text */
color: #333; /* Text color */
text-align: center; /* Center the text */
font-weight: bolder;
font-style: italic;
text-align: center; /* Center text */
margin-bottom: 20px; /* Space below the title */
}
.container {
text-align: center; /* Center the dropdown */
margin-bottom: 20px; /* Space below the dropdown */
}
select {
padding: 10px; /* Add some padding */
font-size: 16px; /* Increase font size */
border: 1px solid #ccc; /* Border around the dropdown */
border-radius: 4px; /* Rounded corners */
cursor: pointer; /* Pointer cursor on hover */
}
#paragraphDisplay {
text-align: center; /* Center text in the paragraph display */
margin-top: 20px; /* Space above the paragraph display */
font-size: 25px; /* Font size for the paragraph */
}
ul {
list-style-type: none; /* Remove bullet points */
padding: 0; /* Remove padding */
}
.a {
color: skyblue; /* Link color */
text-decoration: underline; /* Underline links */
}
.logo {
position: absolute; /* Absolute positioning for the logo */
top: 2px; /* Space from the top */
left: 2px; /* Space from the left */
width: 180px; /* Set a width for the logo */
height: 120px; /* Maintain aspect ratio */
}
</style>
</head>
<body>
<img src="/logo.jpg" alt="Logo" class="logo">
<div class="welcome-text">
<u>
<h2 class="welcome-text">Disorders and symptoms</h2>
</u>
</div>
<div class="container">
<select id="nameSelect" onchange="showParagraph()">
<option value="" disabled selected>Choose a Symptom</option>
<option value="disorder1">Dysmennorhea (Painful Periods)</option>
<option value="disorder2">Amenorrhea (Absence Of Periods) </option>
<option value="disorder3">Menorrhagia (Heavy Periods)</option>
<option value="disorder4">Oligomenorrhea (Infrequent Periods)</option>
<option value="others">Others</option>
</select>
</div>
<a href="/welcome2.html">Go Back to Home Page</a>
<!-- Paragraph will appear here -->
<div id="paragraphDisplay"></div>
<script>
function showParagraph() {
var select = document.getElementById("nameSelect");
var paragraphDiv = document.getElementById("paragraphDisplay");
// Object containing paragraphs with bullet points for each person
var paragraphs = {
disorder1: `
<ul>
<li><u><b>Dysmenorrhea (Painful Periods)</b></u></li>
<br>
<li><u>Symptoms:</u> Severe Cramps, Back Pain, Nausea, Headaches, and Diarrhea.</li>
<br>
<li><a href='medications.html'>Click Here</a> For Medications</li>
</ul>
`,
disorder2: `
<ul>
<li><u><b>Amenorrhea (Absence of Periods)</b></u></li>
<br>
<li><u>Symptoms:</u> Absence of Menstrual Periods for Three or more Cycles </li>
<br>
<li><a href='medications.html'>Click Here</a> For Medications</li>
</ul>`,
disorder3: `
<ul>
<li><b><u>Menorrhagia (Heavy Periods)</b></u></li>
<br>
<li><u>Symptoms:</u> Extremely Heavy Bleeding, Passing Large clots, and Periods lasting longer than a week.</li>
<br>
<li><a href='medications.html'>Click Here</a> For Medications</li>
</ul>`,
disorder4: `
<ul>
<li><b><u>Oligomenorrhea (Infrequent Periods)</b></u></li>
<br>
<li><u>Symptoms:</u> Irregular or infrequent Periods, often with Cycles longer than 35 days.</li>
<br>
<li><a href='medications.html'>Click Here</a> For Medications</li>
</ul>`,
others: `
<ul>
<li>Consult your Personal Doctor</li>`,
};
// Get the selected value
var selectedName = select.value;
// Display the corresponding bullet points
if(selectedName) {
paragraphDiv.innerHTML = paragraphs[selectedName];
}
}
</script>
</body>
</html>