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 17:31:58 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
eff3a20fb56abf11cccddf76b8d52a7bbef14215
eff3a20f
1 parent
9f7d064c
검색결과 없을때 예외처리
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
3 deletions
.vscode/launch.json
views/index.ejs
.vscode/launch.json
0 → 100644
View file @
eff3a20
{
//
Use
IntelliSense
to
learn
about
possible
attributes.
//
Hover
to
view
descriptions
of
existing
attributes.
//
For
more
information
,
visit
:
https
:
//go.microsoft.com/fwlink/?linkid=
830387
"version"
:
"0.2.0"
,
"configurations"
:
[
{
"type"
:
"pwa-chrome"
,
"request"
:
"launch"
,
"name"
:
"Open index.ejs"
,
"file"
:
"c:
\\
Users
\\
KSY
\\
Desktop
\\
4-1
\\
OpenSource
\\
Project
\\
views
\\
index.ejs"
}
]
}
\ No newline at end of file
views/index.ejs
View file @
eff3a20
...
...
@@ -5,7 +5,16 @@
<title>
코로나 백신 의료기관 조회
</title>
<!-- <link rel="stylesheet" href="/css/master.css"> -->
<
%if(typeof(info)!="undefined"){%>
<script>
try
{
if
(
'<%=info%>'
.
length
==
0
)
throw
new
error
();
}
catch
(
error
)
{
alert
(
"해당 지역 주변에 가능한 의료기관이 존재하지 않습니다."
);
location
.
href
=
'/'
;
}
</script>
<
% }%>
</head>
<body>
<center>
...
...
@@ -21,10 +30,12 @@
</p>
</form>
</center>
<div
id=
"map"
style=
"width:1300px;height:750px; margin-left:100px; float:left; "
></div>
<script
type=
"text/javascript"
src=
"https://dapi.kakao.com/v2/maps/sdk.js?appkey=35fccf4b4e2a3179187346f26ed3f988&libraries=services"
></script>
<
% if(typeof(info) != "undefined"){ %>
<div
style=
"overflow:scroll; width:500px; height:675px; padding:10px;float:right; margin-right:70px; border:1px solid black;"
>
<ol
id=
"placelist"
>
<
% for(i=0; i
<info
.
length
;
i
++){%
>
...
...
@@ -50,11 +61,12 @@
<hr>
</li>
<
%} %>
</
u
l>
</
o
l>
</div>
<
%} %>
<
% if(typeof(result) != "undefined"){ %>
<script>
var
mapContainer
=
document
.
getElementById
(
'map'
),
// 지도를 표시할 div
mapOption
=
{
...
...
@@ -122,7 +134,7 @@
};
}
</script>
<
% } %>
<
% } %>
</body>
</html>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment