Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김동훈
/
OpenSource_Project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Donghoon Kim
2018-12-14 04:10:04 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b82ae0a9395933c4b010a9ea744fec738924b3ea
b82ae0a9
1 parent
461668a9
Change index.html
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
21 deletions
public/js/getPlaceList.js → api/getPlaceList.js
public/Rooms.html
public/index.html
public/js
/getPlaceList.js
→
api
/getPlaceList.js
View file @
b82ae0a
...
...
@@ -2,14 +2,6 @@ var map;
var
pos
;
var
infowindow
;
var
service
;
var
result_food
=
[];
var
result_entertainment
=
[];
var
result_room
=
[];
export
{
pos
as
posiiton
};
export
{
result_food
as
foodList
};
export
{
result_entertainment
as
entList
};
export
{
result_room
as
roomList
};
function
initMap
()
{
map
=
new
google
.
maps
.
Map
(
document
.
getElementById
(
'map'
),
{
...
...
@@ -62,7 +54,7 @@ function searchPlace(str, placeType) {
service
.
nearbySearch
({
location
:
pos
,
radius
:
500
,
type
:
[
'meal_takeaway'
]
type
:
[
str
.
toString
()
]
},
callback_foods
);
break
;
case
'entertainment'
:
...
...
@@ -76,7 +68,7 @@ function searchPlace(str, placeType) {
service
.
nearbySearch
({
location
:
pos
,
radius
:
500
,
type
:
[
'lodging'
]
type
:
[
str
.
toString
()
]
},
callback_rooms
);
break
;
default
:
...
...
public/Rooms.html
View file @
b82ae0a
...
...
@@ -9,8 +9,8 @@
<meta
name=
"description"
content=
""
>
<meta
name=
"author"
content=
""
>
<title>
저기어때
</title>
<title>
뭐라도해
</title>
<!-- Bootstrap core CSS-->
<link
href=
"vendor/bootstrap/css/bootstrap.min.css"
rel=
"stylesheet"
>
...
...
@@ -41,43 +41,43 @@
<!-- Sidebar -->
<ul
class=
"sidebar navbar-nav"
>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"index.html"
>
<i
class=
"fas fa-map-marker"
></i>
<span>
Map
</span>
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"Foods.html"
>
<i
class=
"fas fa-utensils"
area-hidden =
"true"
></i>
<span>
Foods
</span>
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"Entertainment.html"
>
<i
class=
"fas fa-gamepad"
></i>
<span>
Entertainment
</span>
</a>
</li>
<li
class=
"nav-item active"
>
<a
class=
"nav-link"
href=
"Rooms.html"
>
<i
class=
"fas fa-bed"
></i>
<span>
Rooms
</span>
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"Favorite.html"
>
<i
class=
"fas fa-heart"
></i>
<span>
Favorite
</span>
</a>
</li>
</ul>
<div
id=
"content-wrapper"
>
...
...
@@ -186,7 +186,7 @@
<i
class=
"fas fa-angle-up"
></i>
</a>
<!-- Bootstrap core JavaScript-->
<script
src=
"vendor/jquery/jquery.min.js"
></script>
...
...
public/index.html
View file @
b82ae0a
...
...
@@ -95,7 +95,14 @@
</ul>
<div
id=
"content-wrapper"
>
<script
type=
"text/javascript"
src=
"js/getPlaceList.js"
></script>
<script
type=
'text/javascript'
>
var
result_food
=
[];
var
result_entertainment
=
[];
var
result_room
=
[];
var
queryString
=
"?para1="
+
result_food
+
"¶2="
+
result_entertainment
+
"¶3="
+
result_room
;
window
.
location
.
href
=
"Foods.html"
+
queryString
;
</script>
<script
type=
"text/javascript"
src=
"../api/getPlaceList.js"
></script>
<div
id=
"map"
></div>
<script
src=
"https://maps.googleapis.com/maps/api/js?key=AIzaSyDg4CkUEEt_96n1ork1nL5t4E_SpdKrgMI&libraries=places&callback=initMap"
async
defer
></script>
<!-- Sticky Footer -->
...
...
Please
register
or
login
to post a comment