Toggle navigation
Toggle navigation
This project
Loading...
Sign in
오원석
/
StarCraft2 Build Recommendation
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
신기성
2018-12-14 01:13:02 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6918661d8845df1eff21182a1a18a16f7b55fdcf
6918661d
1 parent
1f65bbcd
routing
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
13 deletions
app.js
views/index.ejs
app.js
View file @
6918661
...
...
@@ -24,7 +24,7 @@ app.get('/', function(req,res){
});
});
app
.
get
(
'/
build/create
'
,
function
(
req
,
res
,
next
){
app
.
get
(
'/
recommend
'
,
function
(
req
,
res
,
next
){
fs
.
readFile
(
'index.ejs'
,
function
(
err
,
data
){
res
.
writeHead
(
200
,{
'Content-Type'
:
'text/html'
});
res
.
end
(
data
);
...
...
views/index.ejs
View file @
6918661
...
...
@@ -5,11 +5,7 @@
<link
href=
"//netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"
rel=
"stylesheet"
media=
"screen"
>
<link
href=
"/static/core/style.css"
rel=
"stylesheet"
media=
"screen"
>
<script
type=
"text/javascript"
src=
"node_modules/jquery/dist/jquery.js"
></script>
<script
type=
"text/javascript"
>
$
().
ready
(
function
(){
alert
(
"StarCraft2 Build Recommendation Project"
);
});
</script>
<script
async=
""
src=
"//www.google-analytics.com/analytics.js"
></script>
<script
type=
"text/javascript"
async=
""
src=
"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"
></script>
<title>
StarCraft 2 Build Recommendation Project
</title>
...
...
@@ -21,11 +17,52 @@
<p
stype=
"fond-family:verdana;"
>
StarCraft 2 Build Recommendation Project
</p>
<br>
<br>
<img
src=
"/imgs"
alt=
"StarCraft2 LOGO image"
>
<div
class=
"col-md-3"
>
<form
action=
"/build/create"
id=
"searchform"
action
method=
"get"
>
<form
action=
"/recommend"
id=
"searchform"
action
method=
"get"
>
<div
id=
"div_id_server"
class=
"form-group"
>
<label
for=
"id_server"
class=
"control-label "
>
서버
</label>
<div
class=
"controls"
>
<select
class=
"select form-control"
id=
"id_server"
name=
"region"
>
<option
value=
"KR"
>
한국/대만
</option>
<option
value=
"AM"
>
미국
</option>
<option
value=
"CN"
>
중국
</option>
<option
value=
"EU"
>
유럽
</option>
</select>
</div>
</div>
<div
id=
"div_id_myRace"
class=
"form-group"
>
<label
for=
"id_myRace"
class=
"control-label "
>
내 종족
</label>
<div
class=
"controls"
>
<select
class=
"select form-control"
id=
"id_myRace"
name=
"myRace"
>
<option
value=
"terran"
>
테란
</option>
<option
value=
"zerg"
>
저그
</option>
<option
value=
"protoss"
>
프로토스
</option>
</select>
</div>
</div>
<div
id=
"div_id_race"
class=
"form-group"
>
<label
for=
"id_race"
class=
"control-label "
>
상대 종족
</label>
<div
class=
"controls"
>
<select
class=
"select form-control"
id=
"id_race"
name=
"race"
>
<option
value=
"terran"
>
테란
</option>
<option
value=
"zerg"
>
저그
</option>
<option
value=
"protoss"
>
프로토스
</option>
</select>
</div>
</div>
<div
id=
"div_id_name"
class=
"form-group"
>
<label
for=
"id_name"
class=
"control-label "
>
상대 아이디
...
...
@@ -40,10 +77,14 @@
<input
value=
"빌드 추천!"
type=
"submit"
/>
</form>
<
%= length%>
<a
class=
"btn btn-primary"
href=
"/build/create/"
>
빌드
</a>
<
%= top%>
<br>
<
%=ejs_momentum%>
<
%=ejs_terran_proficiency%>
<
%=ejs_zerg_proficiency%>
<
%=ejs_protoss_proficiency%>
<
%=ejs_primary_race%>
<
%=ejs_win_rate%>
<br>
<br>
<a
href=
"https://starcraft2.com/ko-kr/game"
>
Official Site
</a>
...
...
Please
register
or
login
to post a comment