Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김서연
/
Corona_Vaccination_Medical_Institution
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
3
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김서연
2021-05-30 14:38:02 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9f7d064cff3e173519fe667f0888c6c2c95a4837
9f7d064c
1 parent
9013e959
휴무일 여부 추가 & 시간 전처리
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
app.js
views/index.ejs
app.js
View file @
9f7d064
...
...
@@ -78,10 +78,9 @@ app.post('/',function(req,res,next){
eachtime
.
push
(
''
);
else
eachtime
.
push
(
searchList
[
i
].
endTm
.
substr
(
2
,
2
));
if
(
eachtime
==
null
)
eachtime
.
push
(
''
);
else
timeList
.
push
(
eachtime
);
timeList
.
push
(
eachtime
);
}
res
.
render
(
'index'
,
{
result
:
JSON
.
stringify
(
searchList
),
info
:
searchList
,
timeList
:
timeList
});
...
...
views/index.ejs
View file @
9f7d064
...
...
@@ -2,7 +2,7 @@
<html>
<head>
<meta
charset=
"utf-8"
>
<title>
여러개 마커에 이벤트 등록하기1
</title>
<title>
코로나 백신 의료기관 조회
</title>
<!-- <link rel="stylesheet" href="/css/master.css"> -->
...
...
@@ -30,9 +30,20 @@
<
% for(i=0; i
<info
.
length
;
i
++){%
>
<li
class=
"item"
>
<div
class=
"info"
>
<span><strong>
<
%= info[i].orgnm%>
</strong></span><br>
<span>
점심시간 :
<
%=timeList[i][0]%>:
<
%=timeList[i][1]%>~
<
%=timeList[i][2]%>:
<
%=timeList[i][3] %>
</span><br>
<span>
진료시간 :
<
%=timeList[i][4]%>:
<
%=timeList[i][5]%>~
<
%=timeList[i][6]%>:
<
%=timeList[i][7] %>
</span><br>
<span><strong>
<
%= info[i].orgnm%>
</strong></span>
<
%if(info[i].hldyYn=='N') {%>
<span
style=
"color:red"
>
(당일 휴무)
</span>
<
%}else { %>
<span
style=
"color:green"
>
(정상운영)
</span>
<
%}%>
<br>
<
% if(timeList[i][0]!=""
&&
timeList[i][1]!=""
&&
timeList[i][2]!=""
&&
timeList[i][3]!=""){%>
<span>
점심시간 :
<
%=timeList[i][0]%>:
<
%=timeList[i][1]%>~
<
%=timeList[i][2]%>:
<
%=timeList[i][3] %>
</span><br>
<
%}%>
<
% if(timeList[i][4]!=""
&&
timeList[i][5]!=""
&&
timeList[i][6]!=""
&&
timeList[i][7]!=""){%>
<span>
진료시간 :
<
%=timeList[i][4]%>:
<
%=timeList[i][5]%>~
<
%=timeList[i][6]%>:
<
%=timeList[i][7] %>
</span><br>
<
%}%>
<span
style=
"color:gray"
class=
"jibun gray"
>
<
%=info[i].orgZipaddr%>
</span><br>
<span
style=
"color:blue"
class=
"tel"
>
<
%=info[i].orgTlno%>
</span><br>
</div>
...
...
Please
register
or
login
to post a comment