-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathanalysis.html
More file actions
395 lines (335 loc) · 18 KB
/
analysis.html
File metadata and controls
395 lines (335 loc) · 18 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
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
393
394
395
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dr.Dream</title> <!--위에 타이틀-->
<!-- Bootstrap Core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<!-- Plugin CSS -->
<link href="vendor/magnific-popup/magnific-popup.css" rel="stylesheet">
<!-- Theme CSS -->
<link href="css/creative.min.css" rel="stylesheet">
<link href="css/analysis.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body id="page-top">
<nav id="mainNav" class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span> Menu <i class="fa fa-bars"></i>
</button>
<a class="navbar-brand page-scroll" href="index.html">Dr.Dream</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li>
<a class="page-scroll" href="treat_main.html">원격진료</a>
</li>
<li>
<a class="page-scroll" href="analysis.html">증상분석</a>
</li>
<li>
<a class="page-scroll" href="later.html">상담후기</a>
</li>
<li>
<a class="page-scroll" href="signup.html">회원가입</a>
</li>
<li>
<a class="page-scroll" href="login.html">로그인</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<div id="introduce">
<h1><strong>Dr.dream에게 </strong><strong id="Highlight">분석받으세요</strong></h1>
<h3>빅데이터 기반 증상분석과 식이요법 추천을 통해 병을 예방할 수 있습니다</h3>
</div>
<div id="hr"></div>
<div id="hospital_button_div">
<button type="button" name="button" id="dermatology" onclick="test(this)">피부과</button>
<button type="button" name="button" id="urology" onclick="test(this)">비뇨기과</button>
<button type="button" name="button" id="eyes" onclick="test(this)">안과</button>
<button type="button" name="button" id="dentist" onclick="test(this)">치과</button>
</div>
<div id="check" style="text-align: center; font-size: 20px; padding-top:3%; width: 1500px">
<script src="vendor/jquery/jquery.min.js"></script>
<script type="text/javascript">
window.onload=function () {
var list = document.getElementById("check");
var derma =
["","가려움증","피부건조","피부염증","홍반","홍조",
"두드러기","소양감","작열감","습진성","피부병변",
"색소침착","두피비듬","구순염","좁쌀<br>여드름","얼굴각질",]
var input = "";
for (var i = 1; i < 16; i++) {
input += "<button onclick='change(this)' style='margin-top: 0px;' class=\"btn\" href=\"#\">";
input += "<p style='text-align:center;padding-top: 15px; font-size: 20px;'>" + derma[i] + "</p>"
input += "</button>";
input += "\u00A0\u00A0\u00A0\u00A0"
if ( i % 5 == 0)
input += "<br><br>";
}
list.innerHTML = input;
}
var checkpoint = 0;
var checkList = [];
var str = [];
var visible = none;
function test(test) {
checkpoint++;
if(checkpoint > 1) {
check.innerHTML = "";
}
var derma =
["","가려움증","피부건조","피부염증","홍반","홍조",
"두드러기","소양감","작열감","습진성","피부병변",
"색소침착","두피비듬","구순염","좁쌀<br>여드름","얼굴각질",]
var uro=
["","간지러움","혈뇨","농뇨","방광통증","잦은<br>화장실",
"소변통증","심한<br>소변냄새","혹","방광염","아랫 배<br>통증",
"잔뇨감","반점발생","잦은<br>야간뇨","배뇨통","잦은출혈"]
var eye=
["","눈통증","염증","충혈","간지러움","시력저하",
"눈앞<br>아지랑이<br>현상","흐림증상","잦은눈물","눈부심","시림증상",
"안면경련","안구결막","눈꺼풀<br>색상변화","암점","어지러움",]
var den=
["","충치","풍치","치아<br>비틀림","이 시림","이 흔들림",
"심한마모","치아통증","잇몸붓기","잇몸고름","잇몸에서<br>피남",
"음식물이<br>자주끼임","심한<br>입냄새","부모님의<br>틀니여부","잦은흡연","연분홍색<br>잇몸",
]
var myDiv = document.getElementById("check");
var val =test.id;
switch (val){
case "dermatology":
var list = document.getElementById('check');
var input = "";
for (var i = 1; i < 16; i++) {
input += "<button onclick='change(this)' style='margin-top: 0px;' class=\"btn\" href=\"#\">";
input += "<p style='text-align:center;padding-top: 15px; font-size: 20px;'>"+derma[i]+"</p>"
input += "</button>";
input +="\u00A0\u00A0\u00A0\u00A0"
if(i % 5 == 0)
input += "<br><br>";
}
list.innerHTML = input;
break;
case "urology":
var list = document.getElementById('check');
var input = "";
for (var i = 1; i < 16; i++) {
input += "<button onclick='change(this)' style='margin-top: 0px;' class=\"btn\" href=\"#\">";
input += "<p style='text-align:center; padding-top: 15px;font-size: 20px;'>"+uro[i]+"</p>"
input += "</button>";
input +="\u00A0\u00A0\u00A0\u00A0"
if(i %5 == 0)
input += "<br><br>";
}
list.innerHTML = input;
break;
case "eyes":
var list = document.getElementById('check');
var input = "";
for (var i = 1; i < 16; i++) {
input += "<button onclick='change(this)' style='margin-top: 0px;' class=\"btn\" href=\"#\">";
input += "<p style='text-align:center; padding-top: 15px;font-size: 20px;'>"+eye[i]+"</p>"
input += "</button>";
input +="\u00A0\u00A0\u00A0\u00A0"
if(i % 5== 0)
input += "<br><br>";
}
list.innerHTML = input;
break;
case "dentist":
var list = document.getElementById('check');
var input = "";
for (var i = 1; i < 16; i++) {
input += "<button onclick='change(this)' style='margin-top: 0px;' class=\"btn\" href=\"#\">";
input += "<p style='text-align:center; padding-top: 15px; font-size: 20px;'>"+den[i]+"</p>"
input += "</button>";
input +="\u00A0\u00A0\u00A0\u00A0"
if(i % 5 == 0)
input += "<br><br>";
}
list.innerHTML = input;
break;
}
}
</script>
</div>
<!-- jQuery -->
<script src="vendor/jquery/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<!-- Plugin JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
<script src="vendor/scrollreveal/scrollreveal.min.js"></script>
<script src="vendor/magnific-popup/jquery.magnific-popup.min.js"></script>
<!-- Theme JavaScript -->
<script src="js/creative.min.js"></script>
<br><br><br><br><br>
<center><button style="background-color: white; width: 300px" onclick=testing()><p style="color: #0092ff; font-size: 30px; margin-top: 5px;"><strong>분석하기</strong></p></button></center>
<script type="text/javascript">
function testing() {
str = [];
for(var i = 1; i<checkList.length; i++) {
if(checkList[i] != null)
str.push("\u00A0\u00A0"+checkList[i]);
}
$("#checkList").text(str);
chart();
}
</script>
<script type="text/javascript">
function chart() {
var chart = new CanvasJS.Chart("chartContainer",
{
title:{
text: "빅 데이터 분석 결과"
},
exportFileName: "Pie Chart",
exportEnabled: true,
animationEnabled: true,
legend:{
verticalAlign: "bottom",
horizontalAlign: "center"
},
data: [
{
type: "pie",
showInLegend: true,
toolTipContent: "{name}: <strong>{y}%</strong>",
indexLabel: "{name} {y}%",
dataPoints: [
{ y: 80, name: "아토피", exploded: true},
{ y: 5, name: "알레르기 반응"},
{ y: 15, name: "습진"},
]
}
]
});
chart.render();
var con = document.getElementById("disease");
con.style.display = 'block';
}
</script>
<div id="disease" style="display: none; background-color: #FFFFFF; padding-top:50px; margin-top:50px;" >
<div id="chart" style="flex-direction: column; flex: 1; padding-left:160px;">
<div id="chartContainer" style="height: 300px; float: left; width: 50%"></div>
<div style=" height: 400px; float: left; width: 50%">
<center><Text style="font-size: 15px; color: #0b0b0b;">
<p style="font-size: 70px"><br><strong>80%</strong></p>
<p style="font-size: 30px; margin-top: 50px;">분석결과 <strong style="color: #0092ff">아토피</strong>가 의심됩니다.</p>
</Text>
</center>
</div>
</div>
<center><Text style="color: #fff;font-size: 30px; font-family: 'Teko', sans-serif">.</Text></center>
<hr class="primary"/>
<div class="panel panel-primary" align="center" style="height: 500px; color:white; font-size: 35px ; font-family: 'Open Sans', sans-serif; background-color:#0092ff">
<p style="font-size:40px; padding-top:30px;">아토피란?</p>
<center><Text style="padding-left:150px; float: left; width: 50%; height: 300px; text-align:left; font-size: 20px; color: #FFFFFF;">
<br><br><br>
말 그대로 다양한 원인이 복잡하게 뒤엉켜 발병하고 완화 개발을 반복한다.<br>
원인이 복잡하고 다양하는 것은 그만큼 치료가 어렵다는 것을 뜻한다. 아토피<br>
소인에 의한 알레르기 질환으로 알레르기 피부염, 알레르기성비염, 천식, <br>
알레르기성 결막염, 아토피성 두드러기 등이 있으며 이들 질환은 단독 또는 <br>
여러 질환이 동시에 나타날 수 있다.<br>
</Text></center>
<br>
<center>
<div style="float:left; width:800px; height:250px; background-color:white; margin-left:60px; padding-top:24px; padding-left:24px;">
<img style="float: left; width: 250px; height: 200px;" src="./img/info1.jpg">
<img style="float: left; width: 250px; height: 200px; padding-left:24px;" src="./img/info2.jpg">
<img style="float: left; width: 250px; height: 200px; padding-left:24px;" src="./img/info3.jpg">
</div>
</center>
</div>
<div align="center" style="font-size: 30px ; font-family: 'Open Sans', sans-serif; background-color: white; padding-top:20px;">
<p style="font-size: 40px; color: #0092ff"><strong>아토피를 낫게 하려면?</strong></p>
</div>
<center><table border="3" style="width:80%; border-bottom:hidden; border-left: hidden; border-top-color: #0092ff ; border-right: hidden; " summary="">
<tr>
<th style="width: 10%;"><br><br><br><center><p style="">식이요법</p></center><br><br><br></th>
<td>
<center><p style="">녹황색야채, 과일, 율무, 조, 현미, 찹쌀, 녹두, 우엉, 가지, 다시마, 미역, 김, 고구마, 감자, 마, 밤, 표고버섯, 대추, 포도, 검은깨, 토마토</p></center>
</td>
</tr>
</table>
</center>
<center><table border="3" style="width:80%; border-bottom:hidden; border-left: hidden; border-top-color: #0092ff ; border-right: hidden; " summary="">
<tr>
<th style="width: 10%"><br><br><br><center><p style="">주의해야 할 음식</p></center><br><br><br></th>
<td>
<center><p style="">우유, 유제품, 달걀, 쵸콜릿, 오징어, 낙지, 고등어, 새우, 게, 홍합, 튀김류, 꿀, 견과류(호두, 잣, 땅콩), 밀가루음식(과자, 빵), 인스턴트음식(라면, 피자, 햄)</p></center>
</td>
</tr>
</table>
</center>
<center><table border="3" style="width:80%;border-bottom-color: #0092ff; border-left: hidden; border-top-color: #0092ff ; border-right: hidden; " summary="">
<th style="width: 10%"><br><br><br><center><p style="">좋은 습관</p></center><br><br><br></th>
<td>
<center><p style="text-align:left; padding-left:30px;"><br>
1. 집안의 적정온도와 습도를 유지하기 => 여름철의 경우 실내온도 25도 습도 50%가 적당하며, 겨울철의 경우 실내온도 18~21도 습도 50~60%를 유지하는 것이 좋다.<br><br>
2. 집을 깨끗이 청소하고 실내를 수시로 환기하기 => 집먼지 진드기는 알레르기성 피부질환과 호흡기 질환을 유발시키는 가장 큰 원인이므로 집의 구석구석까지 청소하는 것이 필요하다.<br><br>
3. 땀을 잘 흡수하고 통기성이 좋은 옷을 입기 => 더운 여름에는 땀에 젖은 옷이 피부를 자극하여 가려움을 유발한다. 합성섬유로 된 옷을 피하고 통기성이 좋은 옷을 택하는 것이 좋다.<br><br>
4. 적당한 운동으로 노폐물을 배출하기 => 운동을 하면서 흘리는 땀을 통해 아토피를 유발하는 체내 노폐물과 독소가 함께 배출된다. 단! 지나친 운동으로 인한 땀은 역효과를 가져온다.<br><br>
5. 피부 청결을 유지하고 자외선 차단체를 바르기 => 외출 후에는 샤워나 목욕을 통하여 먼지와 노폐물을 씻어준다. 또한 보습제를 사용하여 피부를 보호하는 것이 바람직하다.<br><br>
</p></center>
</td>
</tr>
</table>
</center>
<br><br><br><br>
</div>
<script type="text/javascript" src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
<script>
function change(id) {
var temp = id.id;
if(temp != "checked"){
id.style.backgroundColor = "#fcc500";
id.style.border="1px solid #fcc500";
id.id = "checked";
id.style.color = "white";
}
if(temp == "checked"){
id.style.backgroundColor = "#0092ff";
id.style.border = "2px solid white";
id.id = "unchecked";
id.style.color = "white";
}
}
</script>
<!-- jQuery -->
<script src="vendor/jquery/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<!-- Plugin JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
<script src="vendor/scrollreveal/scrollreveal.min.js"></script>
<script src="vendor/magnific-popup/jquery.magnific-popup.min.js"></script>
<script src="//code.jquery.com/jquery-latest.min.js"></script>
<!-- Theme JavaScript -->
<script src="js/creative.min.js"></script>
</body>
</html>