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-05-29 20:28:13 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f60e6a86072e8f134e1e9346c8f84b5ad3acfcb5
f60e6a86
1 parent
d8fcfe5a
public 추가
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
16 deletions
main.html
style.css → public/css/style.css
src/background.jpg → public/src/background.jpg
server.js
main.html
View file @
f60e6a8
...
...
@@ -5,7 +5,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<title>
HomePurchaseAgePrediction
</title>
<link
rel=
"stylesheet"
href=
"style.css"
/>
<link
rel=
"stylesheet"
href=
"
css/
style.css"
/>
<link
rel=
"preconnect"
href=
"https://fonts.gstatic.com"
/>
<link
href=
"https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;500;900&display=swap"
...
...
@@ -20,7 +20,7 @@
사용자의 위치기반으로 집 구매 시기를 예측해드립니다 (사용자 위치 근처의
집을 찾아드립니다)
</h4>
<form
action=
"/geolocation"
method
=
"POST"
>
<form
action=
"/geolocation"
method
=
"POST"
>
<div>
연봉(단위:만 원)
<input
...
...
style.css
→
public/css/
style.css
View file @
f60e6a8
...
...
@@ -26,7 +26,7 @@ h4 {
body
{
background-color
:
var
(
--main-bg-color
);
background
:
no-repeat
fixed
50%
50%
url("./src/background.jpg")
;
background
:
no-repeat
fixed
50%
50%
url(".
.
/src/background.jpg")
;
color
:
var
(
--point-color
);
}
...
...
src/background.jpg
→
public/
src/background.jpg
View file @
f60e6a8
217 KB
server.js
View file @
f60e6a8
const
express
=
require
(
'express'
);
const
path
=
require
(
'path'
);
const
request
=
require
(
'request'
);
const
express
=
require
(
"express"
);
const
path
=
require
(
"path"
);
const
request
=
require
(
"request"
);
const
app
=
express
();
app
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
'kakao'
)));
app
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
"kakao"
)));
app
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
"public"
)));
app
.
listen
(
8080
,
function
(
req
,
res
)
{
console
.
log
(
"server started at 8080"
);
app
.
listen
(
8080
,
function
(
req
,
res
)
{
console
.
log
(
"server started at 8080"
);
});
app
.
get
(
'/'
,
function
(
req
,
res
)
{
res
.
sendFile
(
path
.
join
(
__dirname
+
"/main.html"
));
app
.
get
(
"/"
,
function
(
req
,
res
)
{
res
.
sendFile
(
path
.
join
(
__dirname
+
"/main.html"
));
});
app
.
post
(
'/geolocation'
,
function
(
req
,
res
){
res
.
sendFile
(
path
.
join
(
__dirname
+
"/kakao/kakaomap.html"
));
});
\ No newline at end of file
app
.
post
(
"/geolocation"
,
function
(
req
,
res
)
{
res
.
sendFile
(
path
.
join
(
__dirname
+
"/kakao/kakaomap.html"
));
});
...
...
Please
register
or
login
to post a comment