-
Notifications
You must be signed in to change notification settings - Fork 0
/
earlydiseasedetection - Copy.html
190 lines (182 loc) · 6.22 KB
/
earlydiseasedetection - Copy.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Early Disease Detection - AquaBrain Net</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/shadcn-ui@1.0.0/dist/shadcn.min.css">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.container {
width: 80%;
margin: auto;
overflow: hidden;
}
.header {
background: #333;
color: #fff;
padding-top: 30px;
min-height: 70px;
border-bottom: #0779e4 3px solid;
}
.header a, .header h1 {
color: #fff;
text-decoration: none;
text-transform: uppercase;
margin: 0 15px;
}
.main-content {
background: #fff;
padding: 20px;
margin-top: 20px;
}
.chart {
width: 100%;
margin: 20px 0;
}
table {
width: 100%;
margin: 20px 0;
border-collapse: collapse;
}
table, th, td {
border: 1px solid #ddd;
padding: 8px;
}
th {
background-color: #f2f2f2;
}
.tooltip {
position: relative;
display: inline-block;
cursor: pointer;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 220px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -110px;
opacity: 0;
transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
</style>
</head>
<body>
<header class="header">
<div class="container">
<h1>AquaBrain Net: Early Disease Detection</h1>
</div>
</header>
<div class="container main-content">
<h2>Overview</h2>
<p>Our innovative AquaBrain Net system utilizes cutting-edge technology to detect diseases at an early stage in aquatic environments. This page provides insights into our recent detection activities.</p>
<!-- Chart container -->
<div class="chart" id="diseaseChart"></div>
<!-- Disease Detection Data Table -->
<table>
<thead>
<tr>
<th>Date</th>
<th>Disease Detected</th>
<th>Severity</th>
<th>Action Taken</th>
</tr>
</thead>
<tbody>
<tr>
<td>2024-06-01</td>
<td><span class="tooltip" data-tooltip="No disease detected on this date.">None</span></td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>2024-06-02</td>
<td><span class="tooltip" data-tooltip="Mild infection detected.">Infection</span></td>
<td>Mild</td>
<td>Administered treatment</td>
</tr>
<tr>
<td>2024-06-03</td>
<td><span class="tooltip" data-tooltip="No disease detected on this date.">None</span></td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>2024-06-04</td>
<td><span class="tooltip" data-tooltip="Severe infection detected. Immediate action required.">Infection</span></td>
<td>Severe</td>
<td>Quarantine and treat</td>
</tr>
<tr>
<td>2024-06-05</td>
<td><span class="tooltip" data-tooltip="No disease detected on this date.">None</span></td>
<td>-</td>
<td>-</td>
</tr>
</tbody>
</table>
</div>
<!-- Include Plotly.js -->
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script>
// JavaScript code for Plotly.js
const dates = ['2024-06-01', '2024-06-02', '2024-06-03', '2024-06-04', '2024-06-05'];
const severity = [0, 1, 0, 2, 0];
const data = [{
x: dates,
y: severity,
type: 'scatter',
mode: 'lines+markers',
fill: 'tozeroy',
marker: {color: 'rgba(255, 99, 132, 1)'},
line: {color: 'rgba(255, 99, 132, 1)'}
}];
const layout = {
title: 'Disease Severity Over Time',
xaxis: {
title: 'Date'
},
yaxis: {
title: 'Severity',
tickvals: [0, 1, 2],
ticktext: ['No Disease', 'Mild Infection', 'Severe Infection'],
range: [0, 2.5]
}
};
Plotly.newPlot('diseaseChart', data, layout);
</script>
<!-- Tooltips JavaScript -->
<script>
document.querySelectorAll('.tooltip').forEach(item => {
item.addEventListener('mouseover', event => {
const tooltipText = document.createElement('span');
tooltipText.className = 'tooltiptext';
tooltipText.innerHTML = event.target.dataset.tooltip;
event.target.appendChild(tooltipText);
});
item.addEventListener('mouseout', event => {
event.target.querySelector('.tooltiptext').remove();
});
});
</script>
</body>
</html>