Toggle navigation
Toggle navigation
This project
Loading...
Sign in
오지민
/
HomePurchaseAgePrediction
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
김민기
2021-06-09 21:45:10 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
076132c9c0db56762ebb2f788f157f8a3f39f480
076132c9
1 parent
e96c7143
Get Loc From User
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
main.html
server.js
main.html
View file @
076132c
...
...
@@ -39,6 +39,15 @@
/>
</div>
<div>
거주지역
<input
type=
"text"
id=
"address"
name=
"address"
placeholder=
"(도/시/구/동)을 입력해주세요."
/>
</div>
<div>
<input
class=
"btn"
type=
"submit"
value=
"SUBMIT"
/>
</div>
</form>
...
...
server.js
View file @
076132c
const
express
=
require
(
"express"
);
const
path
=
require
(
"path"
);
const
request
=
require
(
"request"
);
var
address
;
const
app
=
express
();
app
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
"kakao"
)));
...
...
@@ -16,5 +16,7 @@ app.get("/", function (req, res) {
});
app
.
get
(
"/geolocation"
,
function
(
req
,
res
)
{
address
=
req
.
query
.
address
;
console
.
log
(
address
);
res
.
sendFile
(
path
.
join
(
__dirname
+
"/kakao/kakaomap.html"
));
});
...
...
Please
register
or
login
to post a comment