Toggle navigation
Toggle navigation
This project
Loading...
Sign in
zuzitsu
/
UR_Village
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Suyeon Jung
2020-12-09 03:49:44 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
23082fe2d63efd2a6e77f8f2263b77c2f06cdb2c
23082fe2
1 parent
3e7b26f7
Fix error in userArea function and Modify shop view
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
routes/category.js
views/results/safe.ejs
views/results/shop.ejs
routes/category.js
View file @
23082fe
...
...
@@ -146,7 +146,11 @@ let sigun = [{
]
// 결과 중 사용자 근처인지 검사하기 위한 함수
let
userArea
=
function
(
target
,
targetKey
,
user
)
{
if
(
target
[
targetKey
].
includes
(
user
))
{
if
(
target
[
targetKey
]
!=
null
&&
target
[
targetKey
].
includes
(
user
))
{
console
.
log
(
'param1'
,
target
[
targetKey
]);
console
.
log
(
'param2'
,
user
);
console
.
log
(
'result'
,
target
[
targetKey
].
includes
(
user
))
return
true
;
}
else
{
return
false
;
...
...
views/results/safe.ejs
View file @
23082fe
...
...
@@ -21,7 +21,7 @@
</tbody>
</table>
<hr
style="border:dotted 1px gray; width : 50%;
">
<hr
class="divide
">
<h4>💡 보안등 현황</h4>
<table class="table">
...
...
views/results/shop.ejs
View file @
23082fe
...
...
@@ -26,6 +26,6 @@
<p class
="sum">총 쇼핑몰
개수 :
<p class
="sum">총 시장 및 마트
개수 :
<%=shops.length%>
</p>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment